mirror of
https://github.com/screentinker/screentinker.git
synced 2026-06-29 09:23:16 -06:00
Self-contained examples for the PiP overlay API (POST /api/pip), each with a CSP-safe query-param overlay (external JS), config.example.json, zero runtime deps, an offline test, and a README: - PIP-Announce-Broadcast manual one-shot message to a screen/group - PIP-Weather-Widget Open-Meteo current conditions (keyless) - PIP-Air-Quality Open-Meteo US AQI widget (keyless) - PIP-Crypto-Ticker CoinGecko price strip (keyless) - PIP-News-Ticker scrolling RSS/Atom headlines - PIP-Room-Status-Calendar ICS-driven Available/Busy room sign - PIP-Event-Countdown client-side countdown, auto-clears at zero - PIP-Welcome-Board rotating welcome/birthday cards from CSV - PIP-Fundraiser-Thermometer goal-progress bar from local/URL JSON - PIP-QR-Rotator rotating QR codes, encoded client-side - PIP-Incident-Webhook event-driven: red on firing, clear on resolved Also includes the CAP-AU (NSW RFS) and US NWS/NOAA emergency-alert monitors that push expiry-aware PiP overlays. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
30 lines
807 B
JSON
30 lines
807 B
JSON
{
|
|
"feed_url": "https://www.rfs.nsw.gov.au/feeds/majorIncidentsCAP.xml",
|
|
"poll_interval_sec": 120,
|
|
|
|
"api_base": "https://signage.example.com",
|
|
"api_token": "st_REPLACE_WITH_A_FULL_SCOPE_TOKEN",
|
|
|
|
"overlay_base_url": "https://signage.example.com/alerts/alert-overlay.html",
|
|
|
|
"alert_levels": ["Watch and Act", "Emergency Warning"],
|
|
|
|
"screens": [
|
|
{ "name": "Foyer TV", "lat": -33.8688, "lon": 151.2093, "device_id": "DEVICE_OR_GROUP_ID_1" },
|
|
{ "name": "Cafe board", "lat": -33.7969, "lon": 151.2870, "device_id": "DEVICE_OR_GROUP_ID_2" }
|
|
],
|
|
|
|
"overlay": {
|
|
"position": "center",
|
|
"width": 900,
|
|
"height": 320,
|
|
"opacity": 1,
|
|
"border_radius": 16,
|
|
"colors": {
|
|
"Emergency Warning": "CC0000",
|
|
"Watch and Act": "E8730C",
|
|
"Advice": "F2C200"
|
|
}
|
|
}
|
|
}
|