update last post about netatmo-driver

main
Dominic Reich 1 year ago
parent 3c12cf09f2
commit 6bcc04d506
Signed by: dominic
GPG Key ID: BC9D6AE1A3BE169A

@ -3,7 +3,7 @@
title = 'Update weewx-netatmo extension' title = 'Update weewx-netatmo extension'
summary = 'Upgrade the authentication method from _password_ to _preauthenticated refresh_token_' summary = 'Upgrade the authentication method from _password_ to _preauthenticated refresh_token_'
date = '2023-07-15T17:02:10+02:00' date = '2023-07-15T17:02:10+02:00'
lastmod = '2023-07-21T21:07:06+0000' lastmod = '2023-07-23T15:16:24+0000'
categories = [ 'amateur-radio' ] categories = [ 'amateur-radio' ]
tags = [ 'wx', 'weewx', 'netatmo', 'server', 'selfhost' ] tags = [ 'wx', 'weewx', 'netatmo', 'server', 'selfhost' ]
@ -69,3 +69,30 @@ A restart of WeeWX should fetch the data again.
$ doas rcctl restart weewx $ doas rcctl restart weewx
``` ```
## Problems on a Raspberry Pi?
I'm not sure about the cause of this behaviour, but **Andreas DG0LFL** reported, that his
Raspberry Pi 4 (running Debian 10 Buster) could not update the token so he solved this by
creating `/etc/systemd/system/weewx.timer` with the following contents:
```ini
[Unit]
Description=WeeWX-Timer
[Timer]
OnBootSec=5min
OnUnitActiveSec=120min
Unit=weewx.service
[Install]
WantedBy=multi-user.target
```
As for my understanding this should start `weewx.service` 5 minutes after system boot as well as
every 120 minutes after the services last start.
He had noticed, that the netatmo-driver wasn't updating the token so it got invalid after 10800
seconds (3 hours).
You would probably need to run `systemctl enable weewx.timer` to enable the timer.

Loading…
Cancel
Save