aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Wilken2024-08-26 10:11:13 +0200
committerTimo Wilken2024-08-26 10:11:13 +0200
commit9eb0b850b1eebfaed365a6bb9119e73de8c692c2 (patch)
tree0d99a35472c2e3c953603c153206ba4653f73d7f
parent4c094c7c89e41389cfa6b1925d717e78a0b3aa15 (diff)
Fetch electricity consumption info later
-rw-r--r--tw/services/personal-data-exporter.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/tw/services/personal-data-exporter.scm b/tw/services/personal-data-exporter.scm
index 80e85622..e3f7d4a3 100644
--- a/tw/services/personal-data-exporter.scm
+++ b/tw/services/personal-data-exporter.scm
@@ -168,12 +168,13 @@ create table if not exists \"conso_max_power\" (\"time\" timestamp primary key,
#:user #$user)
;; Process the previous day's data during the night.
- #~(job "0 4 * * *" #$(conso-fetch-command config) #:user #$user)
+ ;; Don't do this too early, else we get a 404 status from the server.
+ #~(job "0 7 * * *" #$(conso-fetch-command config) #:user #$user)
;; Back up electricity consumption database. The other data can
;; be easily recreated from the source data, but this data
;; becomes inaccessible after 2 years via the API.
- #~(job "0 5 * * *" #$(conso-backup-command config) #:user #$user))))
+ #~(job "15 7 * * *" #$(conso-backup-command config) #:user #$user))))
(define (personal-data-shepherd-services config)
(match-record config <personal-data-exporter-configuration> (user group ledger-file ledger-locale)