From 9eb0b850b1eebfaed365a6bb9119e73de8c692c2 Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Mon, 26 Aug 2024 10:11:13 +0200 Subject: Fetch electricity consumption info later --- tw/services/personal-data-exporter.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tw/services') 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 (user group ledger-file ledger-locale) -- cgit v1.2.3