Fix worker status polling init/interval and repair describe script syntax

This commit is contained in:
hbrain 2026-05-31 19:26:25 +02:00
parent 8a91cec6c3
commit 85419507cf
2 changed files with 6 additions and 6 deletions

View file

@ -122,12 +122,12 @@ PROMPT=$(cat <<EOF
Look at these captured frames from a trip. Look at these captured frames from a trip.
Before the actual description write just one quoted sentence (ONE sentence only!!) in Danish that will sound like quoting Victor Borge: entertainer with the elegance ofa concert pianist and the mischievous humor of a master storyteller. He is known having an aura of effortless sophistication, and telling clever jokes that nobody sees Before the actual description write just one quoted sentence (ONE sentence only!!) in Danish that will sound like quoting Victor Borge: entertainer with the elegance ofa concert pianist and the mischievous humor of a master storyteller. He is known having an aura of effortless sophistication, and telling clever jokes that nobody sees
coming. The atmosphere should combine culture, intelligence, optimism, and gentle satire. Refined, warm, charismatic, and playful. Realistic, cinematic, highly detailed. coming. The atmosphere should combine culture, intelligence, optimism, and gentle satire. Refined, warm, charismatic, and playful. Realistic, cinematic, highly detailed. End it with an newline and empty row.
"$PERSONALITY" "$PERSONALITY"
Now synthesize what you saw on the pictures (use English here) into one single, coherent description (make it not less than 768 and not more than 1024 characters) Now synthesize what you saw on the pictures (use English here) into one single, coherent description (make it not less than 768 and not more than 1024 characters)
that summarizes the overall experience for motorcycle/travel blog: You are the main character riding your beloved Yamaha FJR. that summarizes the overall experience for motorcycle/travel blog: You are the main character.
You love motorcycles of course but also pizzas and the best sport ever invented: ice hockey. And allways do some roasting for fun..profanities are allowed here..
Title: "$TITLE" Title: "$TITLE"
Location: "$LOCATION" Location: "$LOCATION"

View file

@ -1368,7 +1368,7 @@ function applySwitchPayload(payload){
} }
</script> </script>
<script> <script>
(function(){ document.addEventListener('DOMContentLoaded', function(){
const box=document.getElementById('job-status'); const box=document.getElementById('job-status');
if(!box) return; if(!box) return;
function fmt(job){ function fmt(job){
@ -1434,8 +1434,8 @@ function applySwitchPayload(payload){
} }
} }
updateJobs(); updateJobs();
setInterval(updateJobs,30000); setInterval(updateJobs,32000);
})(); });
</script></main> </script></main>
<footer>Input dirs are saved under <code>in-dir/</code>.</footer> <footer>Input dirs are saved under <code>in-dir/</code>.</footer>
<footer class="site-footer admin-footer"><div class="admin-left"><nav class="tabs"><a class="<?= $tab==='new'?'active':'' ?>" href="new.php?tab=new">New</a><a class="<?= $tab==='edit'?'active':'' ?>" href="new.php?tab=edit">Edit</a><a class="<?= $tab==='videos'?'active':'' ?>" href="new.php?tab=videos">Videos</a></nav></div><div id="job-status" class="job-status"<?= empty($runningJobs) ? ' hidden' : '' ?>><?php foreach($runningJobs as $job): ?><span class="job-dot"></span><span><?=h(str_replace('_', ' ', $job['name']))?></span><?php if(!empty($job['started_at'])): ?><span class="job-age">(<?=h(format_job_age($job['started_at']))?>)</span><?php endif; ?><?php endforeach; ?></div><div class="admin-right"><a class="logout-link" href="logout.php">Log off</a></div></footer> <footer class="site-footer admin-footer"><div class="admin-left"><nav class="tabs"><a class="<?= $tab==='new'?'active':'' ?>" href="new.php?tab=new">New</a><a class="<?= $tab==='edit'?'active':'' ?>" href="new.php?tab=edit">Edit</a><a class="<?= $tab==='videos'?'active':'' ?>" href="new.php?tab=videos">Videos</a></nav></div><div id="job-status" class="job-status"<?= empty($runningJobs) ? ' hidden' : '' ?>><?php foreach($runningJobs as $job): ?><span class="job-dot"></span><span><?=h(str_replace('_', ' ', $job['name']))?></span><?php if(!empty($job['started_at'])): ?><span class="job-age">(<?=h(format_job_age($job['started_at']))?>)</span><?php endif; ?><?php endforeach; ?></div><div class="admin-right"><a class="logout-link" href="logout.php">Log off</a></div></footer>