Load config, harden processing and notifications
- Actually load configs/config.yaml at startup (init_config was commented out) - Add timeouts and error handling to all HTTP calls; run blocking requests in threads; serialize processing with a lock; run initial check in background - URL-encode Telegram messages and HTML-escape scraped data - Fix GPV crash on empty schedule, 00:00 end time, date sorting and fallback format - Parse PO table per row; fix daily reminder check and change detection - Use per-instance timestamps in dataclasses; robust config value parsing - Matrix: use v3 PUT send endpoint; strip secrets from logged errors - Resolve templates/static/test paths relative to the project; use lifespan - Move debug GPV data to test/data_gpv.json; add CLAUDE.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
e3367c6a2e
commit
22fc8b38bf
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"current": {
|
||||
"gav": {
|
||||
"message": "Черга спеціальних аварійних відключень (СГАВ):",
|
||||
"queue": null
|
||||
},
|
||||
"hasQueue": "yes",
|
||||
"note": "Станом на 21:05 14.01.2026 за вказаним особовим рахунком '30014180' споживач підпадає під чергу '5.1' Графіку погодинного відключення(ГПВ)",
|
||||
"queue": 5,
|
||||
"sgav": {
|
||||
"message": "Черга спеціальних аварійних відключень (СГАВ):",
|
||||
"queue": null
|
||||
},
|
||||
"subQueue": 1
|
||||
},
|
||||
"schedule": [
|
||||
{
|
||||
"createdAt": "14.01.2026 19:11",
|
||||
"eventDate": "15.04.2026",
|
||||
"queues": {
|
||||
"5.1": [
|
||||
{
|
||||
"from": "07:30",
|
||||
"shutdownHours": "07:30-11:00",
|
||||
"status": 1,
|
||||
"to": "11:00"
|
||||
},
|
||||
{
|
||||
"from": "14:30",
|
||||
"shutdownHours": "14:30-20:00",
|
||||
"status": 1,
|
||||
"to": "20:00"
|
||||
},
|
||||
{
|
||||
"from": "22:00",
|
||||
"shutdownHours": "22:00-00:00",
|
||||
"status": 1,
|
||||
"to": "00:00"
|
||||
}
|
||||
]
|
||||
},
|
||||
"scheduleApprovedSince": "14.04.2026 19:11"
|
||||
},
|
||||
{
|
||||
"createdAt": "13.04.2026 20:28",
|
||||
"eventDate": "14.04.2026",
|
||||
"queues": {
|
||||
"5.1": [
|
||||
{
|
||||
"from": "03:00",
|
||||
"shutdownHours": "03:00-07:00",
|
||||
"status": 1,
|
||||
"to": "07:00"
|
||||
},
|
||||
{
|
||||
"from": "11:00",
|
||||
"shutdownHours": "11:00-17:30",
|
||||
"status": 1,
|
||||
"to": "17:30"
|
||||
}
|
||||
]
|
||||
},
|
||||
"scheduleApprovedSince": "14.04.2026 09:56"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user