Simplify status interface
Deploy Solar Relay / deploy (push) Successful in 1m2s

This commit is contained in:
franzz committed 2026-11-02 23:14:13 +01:00
1 parent cd7ddd3cf6
commit 89621bc7c3
15 files changed
+289 -74

No files matched your search

+3 -2
View File
@@ -102,7 +102,7 @@ def _parser():
commands.add_parser("sample", help="Record one observation and print its normalized readings")
commands.add_parser("upload", help="Upload the pending queue, stopping on the first failure")
commands.add_parser("status", help="Show local archive/queue status without contacting the inverter")
commands.add_parser("prune", help="Delete records acknowledged more than retention_days ago")
commands.add_parser("prune", help="Delete expired whole local days after acknowledgement retention")
for name, help_text in [
("export", "Export archived samples as JSON Lines, including already uploaded samples"),
("replay", "Requeue archived samples for upload, preserving their IDs"),
@@ -125,7 +125,8 @@ def main(argv=None):
until = date_bound(args.until, config.collector.timezone)
if start is not None and until is not None and start >= until:
raise ValueError("--from must be earlier than --until")
store = Store(config.collector.archive, config.collector.retention_days)
store = Store(config.collector.archive, config.collector.retention_days,
timezone_name=config.collector.timezone)
if args.command == "run":
return _run(config, store)
if args.command == "sample":