Re: NetAtmo Wetterdaten HOWTO
Verfasst: 20.02.2022, 16:13
Funktioniert die neue Anleitung auch für Homematic CCU 2?
Bisher mit dem alten Script ging die Einbindung von Netatmo bei mir. War zwar auch nicht einfach das ans Laufen zu bringen aber nach fast einem Jahr habe ich dann doch noch geschaftt. Jetzt geht es seit dem letzen Software Update von CCU 2 und Add- ons leider nicht mehr. Außer dem Software update habe ich nichts geändert, vorher ging alles gut, jetzt nicht mehr.
Das Netatmo.tcl habe ich nicht geändert, scheinbar findet e die credentials aber nicht mehr.
Habe jetzt in Netatmo die app zurückgesetzt und neue clientID und clientSecret eingetragen.
Kommt trotzdem immer die Fehlermeldung unten.
Mit der neuen Anleitung komme ich nicht klar und der alte funktioniert auch nicht mehr.
Wo ist der Fehler?
/usr/local/addons/netatmo$ tclsh /usr/local/addons/netatmo/netatmo.tcl
debug: script has started
warn: no stored credentials found
debug: requesting new token
debug: response was HTTP/1.1 400
Server: nginx
Date: Sun, 20 Feb 2022 15:10:11 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Expires: 0
Cache-Control: no-cache, must-revalidate
X-XSS-Protection: 1; mode=block
Access-Control-Allow-Origin: *
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Powered-By: Netatmo
{"error":"invalid_grant"} % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 158 0 0 100 158 0 128 0:00:01 0:00:01 --:--:-- 128
100 158 0 0 100 158 0 70 0:00:02 0:00:02 --:--:-- 70
100 158 0 0 100 158 0 48 0:00:03 0:00:03 --:--:-- 48
100 158 0 0 100 158 0 37 0:00:04 0:00:04 --:--:-- 37
100 158 0 0 100 158 0 30 0:00:05 0:00:05 --:--:-- 30
100 158 0 0 100 158 0 25 0:00:06 0:00:06 --:--:-- 0
100 158 0 0 100 158 0 21 0:00:07 0:00:07 --:--:-- 0
100 183 0 25 100 158 3 19 0:00:08 0:00:08 --:--:-- 5
100 183 0 25 100 158 3 19 0:00:08 0:00:08 --:--:-- 6
debug: parsing authentication result
debug: returncode is 400
debug: access token is
debug: refresh token is
can't read "expiresin": no such variable
while executing
"log debug "expires in $expiresin""
(procedure "parseOAuthResponse" line 14)
invoked from within
"parseOAuthResponse [requestToken $clientId $clientSecret $username $password"
invoked from within
"if { [file exists $cfgfile] == 1} {
log info "found stored credentials"
loadAccessToken
set now [clock seconds]
..."
(file "/usr/local/addons/netatmo/netatmo.tcl" line 162)
Bisher mit dem alten Script ging die Einbindung von Netatmo bei mir. War zwar auch nicht einfach das ans Laufen zu bringen aber nach fast einem Jahr habe ich dann doch noch geschaftt. Jetzt geht es seit dem letzen Software Update von CCU 2 und Add- ons leider nicht mehr. Außer dem Software update habe ich nichts geändert, vorher ging alles gut, jetzt nicht mehr.
Das Netatmo.tcl habe ich nicht geändert, scheinbar findet e die credentials aber nicht mehr.
Habe jetzt in Netatmo die app zurückgesetzt und neue clientID und clientSecret eingetragen.
Kommt trotzdem immer die Fehlermeldung unten.
Mit der neuen Anleitung komme ich nicht klar und der alte funktioniert auch nicht mehr.
Wo ist der Fehler?
/usr/local/addons/netatmo$ tclsh /usr/local/addons/netatmo/netatmo.tcl
debug: script has started
warn: no stored credentials found
debug: requesting new token
debug: response was HTTP/1.1 400
Server: nginx
Date: Sun, 20 Feb 2022 15:10:11 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Expires: 0
Cache-Control: no-cache, must-revalidate
X-XSS-Protection: 1; mode=block
Access-Control-Allow-Origin: *
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Powered-By: Netatmo
{"error":"invalid_grant"} % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 158 0 0 100 158 0 128 0:00:01 0:00:01 --:--:-- 128
100 158 0 0 100 158 0 70 0:00:02 0:00:02 --:--:-- 70
100 158 0 0 100 158 0 48 0:00:03 0:00:03 --:--:-- 48
100 158 0 0 100 158 0 37 0:00:04 0:00:04 --:--:-- 37
100 158 0 0 100 158 0 30 0:00:05 0:00:05 --:--:-- 30
100 158 0 0 100 158 0 25 0:00:06 0:00:06 --:--:-- 0
100 158 0 0 100 158 0 21 0:00:07 0:00:07 --:--:-- 0
100 183 0 25 100 158 3 19 0:00:08 0:00:08 --:--:-- 5
100 183 0 25 100 158 3 19 0:00:08 0:00:08 --:--:-- 6
debug: parsing authentication result
debug: returncode is 400
debug: access token is
debug: refresh token is
can't read "expiresin": no such variable
while executing
"log debug "expires in $expiresin""
(procedure "parseOAuthResponse" line 14)
invoked from within
"parseOAuthResponse [requestToken $clientId $clientSecret $username $password"
invoked from within
"if { [file exists $cfgfile] == 1} {
log info "found stored credentials"
loadAccessToken
set now [clock seconds]
..."
(file "/usr/local/addons/netatmo/netatmo.tcl" line 162)