4efe30508b
- dashboard_publisher.py: standalone candle-close daemon that atomically writes snapshot.json/news.json/dashboard.html to an Apache-served dir (DASHBOARD_OUT_DIR). Fully independent of telegram_bot/oanda_daemon — local confirmation map + boundary math, no imports either way, no new deps, no open port. Due-TF classification from the RAW wake time. - static/dashboard.html: self-contained dark page — hero rail, four TF cards (score bar, 3x3 indicator grid, MTF, setup, reasons), DeepSeek market context, week economic calendar, scored newswire. Clock offset from the HTTP Date header (publish-time epoch is stale between closes). - news_engine.get_week_events(): additive read-only accessor over the cached FF week; no signal path calls it. - deploy/: systemd unit + live-server (LAMP/SELinux) checklist. - test_all.py: Module 20 (9 tests) + get_week_events test; 296 green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Wc9ZoqKLYBT2QJcpRWKoGm
24 lines
752 B
Desktop File
24 lines
752 B
Desktop File
# systemd unit for the XAU/USD static dashboard publisher.
|
|
# Install (as root, on the live server):
|
|
# cp deploy/gold-dashboard.service /etc/systemd/system/
|
|
# systemctl daemon-reload && systemctl enable --now gold-dashboard
|
|
# See deploy/README-dashboard.md for the full checklist.
|
|
|
|
[Unit]
|
|
Description=XAU/USD dashboard publisher (writes static JSON/HTML for Apache)
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
# Adjust to the account that owns /home/Forex/ForexBot2:
|
|
User=Forex
|
|
WorkingDirectory=/home/Forex/ForexBot2
|
|
Environment=DASHBOARD_OUT_DIR=/var/www/html/gold-dashboard
|
|
ExecStart=/home/Forex/ForexBot2/venv/bin/python dashboard_publisher.py
|
|
Restart=always
|
|
RestartSec=30
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|