update old (newest) netatmo post

main
Dominic Reich 12 months ago
parent d33193c397
commit 0b3d1c441c
Signed by: dominic
GPG Key ID: BC9D6AE1A3BE169A

@ -3,7 +3,7 @@ title = 'Update weewx-netatmo extension'
aliases = '/posts/2023-07-15-update-weewx-netatmo-extension'
summary = 'Upgrade the authentication method from *password* to *preauthenticated refresh_token*'
date = '2023-07-15T17:02:10+02:00'
lastmod = '2023-11-18T21:58:00+0000'
lastmod = '2023-12-10T16:34:13+0000'
categories = [ 'amateur-radio' ]
tags = [ 'wx', 'weewx', 'netatmo', 'server', 'selfhost' ]
@ -69,6 +69,23 @@ A restart of WeeWX should fetch the data again.
$ doas rcctl restart weewx
```
## Random failure on authentication to netatmo server
It sometimes happens at my server that I only get a 400 response:
~~~plain
weewxd: netatmo: netatmo-client: failed attempt 1 of 5 to get data: HTTP Error 400:
weewxd: netatmo: netatmo-client: failed attempt 2 of 5 to get data: HTTP Error 400:
weewxd: netatmo: netatmo-client: failed attempt 3 of 5 to get data: HTTP Error 400:
weewxd: netatmo: netatmo-client: failed attempt 4 of 5 to get data: HTTP Error 400:
weewxd: netatmo: netatmo-client: failed attempt 5 of 5 to get data: HTTP Error 400:
weewxd: netatmo: netatmo-client: failed to get data after 5 attempts
~~~
![showing the menu](update-refresh-token.png "`read_station` is all you need")
I don't have found a solution for this yet...
## Problems on a Raspberry Pi?
I'm not sure about the cause of this behaviour, but **Andreas DG0LFL** reported, that his

Loading…
Cancel
Save