diff --git a/alerts.db b/alerts.db new file mode 100644 index 0000000..e69de29 diff --git a/index.html b/index.html index 87f2f26..22bc051 100644 --- a/index.html +++ b/index.html @@ -442,26 +442,27 @@ async function updateWeather() { updateWeather(); setInterval(updateWeather, 60000); // every minute -// === CLAUDE BUDGET PACE === +// === CLAUDE BUDGET PACE — only show when usage > 75% === async function updateClaudeUsage() { const el = document.getElementById('claude-usage'); try { const r = await fetch('/api/claude-usage'); const d = await r.json(); - if (d.pace != null) { + if (d.usage != null && d.usage > 75) { el.textContent = `pace ${d.pace}%`; el.title = `Budget pace: ${d.timePct}% of week elapsed, ${d.usage}% used`; - // Color: <90 green, 90-100 white, >100 red el.className = d.pace < 90 ? 'good' : d.pace <= 100 ? 'ok' : 'crit'; } else { el.textContent = ''; + el.className = ''; } } catch(e) { el.textContent = ''; + el.className = ''; } } updateClaudeUsage(); -setInterval(updateClaudeUsage, 60000); // every minute (pace changes with time) +setInterval(updateClaudeUsage, 300000); // every 5 min (no need to be faster) // === NEWS STREAMS === const topicEmoji = { markets: '🏦', ai: '🤖', news: '📰', nabl: '📉', politics: '🏛️', infrastructure: '🔧', netherlands: '🇳🇱' }; diff --git a/tts/c4d5b43d-29ec-4c44-a7d0-8dad68110ba4.mp3 b/tts/c4d5b43d-29ec-4c44-a7d0-8dad68110ba4.mp3 new file mode 100644 index 0000000..465e779 Binary files /dev/null and b/tts/c4d5b43d-29ec-4c44-a7d0-8dad68110ba4.mp3 differ