Update leaderboard data 2026-03-23 02:00:13
Overview
What’s Included
docs/index.html
scripts/generate_leaderboard.py
docs/data.json
shift_stats_*.json
.github/workflows/pages-data.yml
.gitignore
.env
How It Works
ppfd_telegram_alerts_v3.2.py
shift_stats_YYYY-MM-DD.json
Setup Steps
main
master
docs/
SHIFT_STATS_DIR
C:\Users\County\python alerts
Within a few minutes, Pages will serve the site and begin refreshing as docs/data.json updates.
Telegram Alerts (Fast)
BOT_TOKEN
CHAT_ID
Optional: Run the bot on a self‑hosted runner
runs-on: self-hosted
timeout-minutes
Notes
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
Overview
What’s Included
docs/index.html: static page for GitHub Pages.scripts/generate_leaderboard.py: buildsdocs/data.jsonfrom localshift_stats_*.jsonfiles..github/workflows/pages-data.yml: scheduled workflow (every 5 minutes) that regenerates and commitsdocs/data.json..gitignore: avoids committing logs,.env, stats, and binaries.How It Works
ppfd_telegram_alerts_v3.2.py) already writesshift_stats_YYYY-MM-DD.jsoneach shift.docs/data.jsonback to GitHub.docs/index.htmlanddocs/data.jsonat a public URL.Setup Steps
main/masterand folderdocs/.SHIFT_STATS_DIRwith the absolute path of your stats folder, e.g.C:\Users\County\python alertsWithin a few minutes, Pages will serve the site and begin refreshing as
docs/data.jsonupdates.Telegram Alerts (Fast)
ppfd_telegram_alerts_v3.2.pylocally via Task Scheduler/Service (recommended) or as a long‑running job on a self‑hosted runner.BOT_TOKEN,CHAT_ID, and TAPO credentials to environment variables or a local.envonly.Optional: Run the bot on a self‑hosted runner
runs-on: self-hostedand a largetimeout-minutes.Notes
shift_stats_*.jsonfiles aren’t present, the page will show “No runs recorded.” Populate them by letting the bot run.docs/index.html(default 60s) and the cron schedule in.github/workflows/pages-data.yml.