matthewwall / weewx-netatmo

weewx driver for netatmo weather station
GNU General Public License v3.0
7 stars 15 forks source link

HTTP Error 400 #2 #9

Closed Kammi61871 closed 5 years ago

Kammi61871 commented 5 years ago

I get this error to but i can't fix it. weewx 3.9.1

failed attempt 5 of 5 to get data: HTTP Error 400 Netatmo.py DRIVER_VERSION = "0.14"

changed line 270 from net to com changed line 523 to "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"

weewx config netatmo wrote manually

netatmo-client: failed attempt 1 of 5 to get data: HTTP Error 400: Feb 21 20:32:43 raspberrypi weewx[22182]: netatmo: netatmo-client: waiting 10 seconds before retry Feb 21 20:32:53 raspberrypi weewx[22182]: netatmo: netatmo-client: url: https://api.netatmo.com/oauth2/token data: username=myuser%40t-online.de&grant_type=password&client_id=myid&scope=read_station&client_secret=mysecret&password=mypw hdr: {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'}

Feb 21 20:33:24 raspberrypi weewx[22182]: netatmo: netatmo-client: failed attempt 5 of 5 to get data: HTTP Error 400: Feb 21 20:33:24 raspberrypi weewx[22182]: netatmo: netatmo-client: waiting 10 seconds before retry Feb 21 20:33:34 raspberrypi weewx[22182]: netatmo: netatmo-client: failed to get data after 5 attempts Feb 21 20:33:34 raspberrypi weewx[22182]: netatmo: netatmo-client: next update in 300 seconds