Gesendet von iPhone mit Tapatalk
Loxberry Netatmo Weather PlugIn
Einklappen
X
-
Welche Port hattest du vorher eingestellt, als es nicht funktioniert hat?
Gesendet von iPhone mit Tapatalk -
Hab das Plugin mittlerweile am Laufen. Vielen Dank an Michael!!!!
Mir ist aber aufgefallen, dass jedes 2. bis 3. Mal einloggen der Loginversuch schief geht. D.h. dass nicht alle 5 Minuten neue Daten kommen, sondern nur alle 10 Minuten.
Folgendes steht dann im Log, obwohl davor und danach mit den gleichen Daten eingeloggt wird.
2022-04-17 16:00:02 root INFO using plugin log file /opt/loxberry/log/plugins/netatmo-weather/netatmo-weather.log
2022-04-17 16:00:02 root INFO using system configuration file /opt/loxberry/config/system/general.json
2022-04-17 16:00:02 root INFO Miniserver ip address: 192.168.178.65
2022-04-17 16:00:02 urllib3.connectionpool DEBUG Starting new HTTPS connection (1): auth.netatmo.com:443
2022-04-17 16:00:04 urllib3.connectionpool DEBUG https://auth.netatmo.com:443 "GET /en-us/access/login HTTP/1.1" 200 None
2022-04-17 16:00:04 root INFO Successfully got session cookie from https://auth.netatmo.com/en-us/access/login
2022-04-17 16:00:04 root INFO Found _token value ['0GS8E0RoK5BbqX0A8dUzeDdAv6Fsqtxc5Zxxxxx'] in response from https://auth.netatmo.com/en-us/access/login
2022-04-17 16:00:29 urllib3.connectionpool DEBUG https://auth.netatmo.com:443 "POST /access/postlogin?next_url=https%3A%2F%2Fmy.netatmo.com%2F app%2Fstation%2F HTTP/1.1" 302 418
2022-04-17 16:00:29 urllib3.connectionpool DEBUG https://auth.netatmo.com:443 "GET /en-us/access/login HTTP/1.1" 200 None
2022-04-17 16:00:29 root INFO Successfully logged in using username xxxxxxxxxxxxx@gmail.com and password xxxxxxxxxx to https://auth.netatmo.com/access/postlogin
2022-04-17 16:00:29 root CRITICAL No netatmocomaccess_token value found in session cookie - probably wrong username/password
Es ist kein großes Problem, aber ich wundere mich schon wieso das so ist.
Hast sonst noch jemand das Problem oder eine Lösung?
Kommentar
-
hey, hat jemand auch mit Netatmo Probleme, bekomme keine UDP Signale mehr?
Hab in 2 Häusern Loxberry laufen mit dem Plugin, beide Häuser übertragen nichts mehr an den MiniServer!Kommentar
-
Bei mir ist es genauso - bekomme seit gestern 15:50 Uhr keine Daten mehr vom Plugin. Im Loxberry Log steht folgendes:
2022-05-10 12:35:07 root ERROR Unable to contact https://auth.netatmo.com/access/postlogin
2022-05-10 12:35:07 root CRITICAL Error: 419
-
-
Auch hier keine Daten mehr von Netatmo. Denke der Fehler liegt auf der Seite von Netatmo, da ich weder bei dem PlugIn noch in der Loxone was geändert habe. Hier der Log aus dem Loxberry:
PHP-Code:python3 /opt/loxberry/data/plugins/netatmo-weather/netatmo.py --config /opt/loxberry/config/plugins/netatmo-weather/netatmo.cfg Number of arguments: 3 arguments. Argument List: ['/opt/loxberry/data/plugins/netatmo-weather/netatmo.py', '--config', '/opt/loxberry/config/plugins/netatmo-weather/netatmo.cfg'] using plugin log file netatmo-weather.log using system configuration file /opt/loxberry/config/system/general.json Miniserver ip address: 192.xx.xx.xx Starting new HTTPS connection (1): auth.netatmo.com:443 https://auth.netatmo.com:443 "GET /en-us/access/login HTTP/1.1" 200 None Successfully got session cookie from https://auth.netatmo.com/en-us/access/login Found _token value [] in response from https://auth.netatmo.com/en-us/access/login https://auth.netatmo.com:443 "POST /access/postlogin HTTP/1.1" 419 6627 Unable to contact https://auth.netatmo.com/access/postlogin Error: 419
Kommentar
-
Bei mir geht es auch nicht mehr. Es scheint, dass Netatmo etwas an ihrem Webinterface geändert hat. Ich muss mir das in Ruhe anschauen.
Ein Ticket bei Netatmo bringt nichts, da Netatmo weder das Plugin noch den Weg wie das Plugin die Daten ausliest unterstützt.Kommentar
-
Hallo zusammen,
ich habe einen Quick-Fix eingebaut - zumindest bei mir funktionierts damit. Hierzu müsst ihr diese Datei aus meinem GitHub Repository nehmen:
A Plugin for Loxberry to send Netatmo Weather Station data to your Loxone Miniserver - michaelmiklis/loxberry-plugin-netatmo-weather
ladet diese auf euren Loxberry und ersetzt die Plugin Datei "/opt/loxberry/data/plugins/netatmo-weather/netatmo.py".
Ich komm erst am Wochenende dazu das ganze ausgiebiger zu testen und eine neue Version des Plugins zu paketieren. Vielleicht hilft es euch ja zur Überbrückung.
Kommentar
-
Jep. Mit verändertem phyton file geht es wieder. ABER scheinbar wurde etwas bei den übermittelten Werten verändert.
Vorher hatte ich in der Loxone Befehleserkennung z.B.
"Stationsname.Temperature=/v"
Jetzt kommen die Werte pauschal mit
"Meine Station".Temperatur=22,3 rein
Daher musste ich nun in der Loxone jede Befehlserkennung von "Stationsname" auf "Meine Station" abändern.
Aber alles geht nun wieder :-D -
nachdem ich es endlich geschafft hatte das file von github runterzuladen (gibt es da einen button den man klicken kann oder wie macht man das im normalfall / hab mir dann die dektop-app installiert, damit konnt ichs dann öffnen und separat abspeichern) hat alles wunderbar geklappt / thx für den workaround
-
Kommentar
-
Danke für den Tipp mit den Explorer :-) Ersatz der Datei hat bei mir geklappt und es kommt zumindest wieder etwas an. CO2 Werte in App stimmen. Muss jetzt aber wohl noch tiefer schauen, was anzupassen ist. Mein MDT Glastaster zeigt leider statt 621 nur noch 600 ppm ( obwohl bei Lox schon die 621 angekommen ). Vor dem Ersetzen der Datei war er bei 632 ppm mit seinem alten Wert stehen geblieben. Auch die Temp Werte machen noch Probleme. Muss da in den nächsten Tagen mal mehr Zeit investieren .....Kommentar
-
DaCro
Hallo zusammen, ich habe ein Loxberry PlugIn für die Netatmo Wetterstationen erstellt: https://wiki.loxberry.de/plugins/netatmo_weather/start (http://plugins.loxberry.de/plugin/netatmo-weather/) In diesem Thread kann über alles rund um das PlugIn (Probleme, Erweiterungen, etc.) diskutiert werden. Viel Spass Michael
"Stationsname.Temperature=/v"
Jetzt kommen die Werte pauschal mit
"Meine Station".Temperatur=22,3 rein
Bei mir steht hier der Name meiner StationKommentar
-
Hallo,
ich habe die Version 2.0.6 veröffentlicht. Neben dem Fix mit dem Geänderten Login, gibt es auch eine zusätzliche Troubleshooting-Möglichkeit für euch. So kann durch den Parameter --apibody wenn man das Plugin über SSH ausführt, das JSON Ergebnis der Netatmo API 1:1 angezeigt werden:
python3 /opt/loxberry/data/plugins/netatmo-weather/netatmo.py --logfile=$LBPLOG/netatmo-weather/netatmo-weather.log --configfile=$LBPCONFIG/netatmo-weather/netatmo.cfg --apibody
Weitere Infos in der Readme:
https://github.com/michaelmiklis/loxberry-plugin-netatmo-weather#step-2-execute-plugin-locally-using-ssh-connection
Update geht entweder über die Pluginverwaltung als Pre-Release oder über den Download Link:
Kommentar
-
Hi Michael, vielen Dank fürs Update. Läuft super.
Ich habe allerdings Dein neues Argument --apibody getestet und bekomme folgenden Ausgabe:
loxberry@loxberry:~ $ python3 /opt/loxberry/data/plugins/netatmo-weather/netatmo.py --logfile= $LBPLOG/netatmo-weather/netatmo-weather.log --configfile=$LBPCONFIG/netatmo-weather/netatmo.cf g --apibody
Number of arguments: 4 arguments.
Argument List: ['/opt/loxberry/data/plugins/netatmo-weather/netatmo.py', '--logfile=/opt/loxbe rry/log/plugins/netatmo-weather/netatmo-weather.log', '--configfile=/opt/loxberry/config/plugi ns/netatmo-weather/netatmo.cfg', '--apibody']
usage: netatmo.py [-h] [--debug] [--debugip DEBUGIP] [--debugport DEBUGPORT]
[--logfile LOGFILE] [--configfile CONFIGFILE]
netatmo.py: error: unrecognized arguments: --apibody
Das Argument fehlt wohl in der ZIP. Über Pluginverwaltung konnte ich keine PreRelease Version sehen.Zuletzt geändert von devME; 30.05.2022, 13:01. -
devME welche Version des Plugins hast du aktuell im Einsatz? Wird im Loxberry Plugin Manager angezeigt.
-
-
Hallo Michael,
ich habe leider auch mit der neuen Beta Version 2.0.6 regelmäßig Login Probleme. Wann es klappt und wann nicht konnte ich bisher leider nicht nachvollziehen. Habe bei Netatmo schon das PW geändert und das Plugin komplett gelöscht und neu installiert.
Code:2022-06-08 23:30:02 root INFO using plugin log file /opt/loxberry/log/plugins/netatmo-weather/netatmo-weather.log 2022-06-08 23:30:02 root INFO using system configuration file /opt/loxberry/config/system/general.json 2022-06-08 23:30:02 root INFO Miniserver ip address: 192.168.yyy.zzz 2022-06-08 23:30:02 urllib3.connectionpool DEBUG Starting new HTTPS connection (1): auth.netatmo.com:443 2022-06-08 23:30:03 urllib3.connectionpool DEBUG https://auth.netatmo.com:443 "GET /en-us/access/login HTTP/1.1" 200 None 2022-06-08 23:30:03 root INFO Successfully got session cookie from https://auth.netatmo.com/en-us/access/login 2022-06-08 23:30:12 urllib3.connectionpool DEBUG https://auth.netatmo.com:443 "GET /access/csrf HTTP/1.1" 200 52 2022-06-08 23:30:12 root INFO Found _token value vfg22cjqBZWm3UNkSHVN59Tu53y2G0lGdFFG3R51 in response from https://auth.netatmo.com/access/csrf 2022-06-08 23:30:30 urllib3.connectionpool DEBUG https://auth.netatmo.com:443 "POST /access/postlogin?next_url=https%3A%2F%2Fmy.netatmo.com%2F app%2Fstation%2F HTTP/1.1" 302 390 2022-06-08 23:30:30 urllib3.connectionpool DEBUG https://auth.netatmo.com:443 "GET /access/csrf HTTP/1.1" 200 52 2022-06-08 23:30:30 root INFO Successfully logged in using username abc@xxxxxxxxx.net and password xxxxxxxxxx to https://auth.netatmo.com/access/postlogin 2022-06-08 23:30:30 root CRITICAL No netatmocomaccess_token value found in session cookie - probably wrong username/password
Code:2022-06-08 23:35:02 root INFO using plugin log file /opt/loxberry/log/plugins/netatmo-weather/netatmo-weather.log 2022-06-08 23:35:02 root INFO using system configuration file /opt/loxberry/config/system/general.json 2022-06-08 23:35:02 root INFO Miniserver ip address: 192.168.yyy.zzz 2022-06-08 23:35:02 urllib3.connectionpool DEBUG Starting new HTTPS connection (1): auth.netatmo.com:443 2022-06-08 23:35:03 urllib3.connectionpool DEBUG https://auth.netatmo.com:443 "GET /en-us/access/login HTTP/1.1" 200 None 2022-06-08 23:35:03 root INFO Successfully got session cookie from https://auth.netatmo.com/en-us/access/login 2022-06-08 23:35:07 urllib3.connectionpool DEBUG https://auth.netatmo.com:443 "GET /access/csrf HTTP/1.1" 200 52 2022-06-08 23:35:07 root INFO Found _token value 1qeqi8v1urcmDht1WEZKUviSVj3P2wTVkFhxTkzp in response from https://auth.netatmo.com/access/csrf 2022-06-08 23:35:16 urllib3.connectionpool DEBUG https://auth.netatmo.com:443 "POST /access/postlogin?next_url=https%3A%2F%2Fmy.netatmo.com%2F app%2Fstation%2F HTTP/1.1" 302 386 2022-06-08 23:35:16 urllib3.connectionpool DEBUG Starting new HTTPS connection (1): my.netatmo.com:443 2022-06-08 23:35:16 urllib3.connectionpool DEBUG https://my.netatmo.com:443 "GET /app/station/ HTTP/1.1" 200 None 2022-06-08 23:35:16 root INFO Successfully logged in using username abc@xxxxxxxxx.net and password xxxxxxxxxx to https://auth.netatmo.com/access/postlogin 2022-06-08 23:35:16 root INFO Found netatmocomaccess_token value 5edbedc949db5432c64e76ad%7... 65bc4... in response from https://auth.netatmo.com/access/postlogin 2022-06-08 23:35:16 urllib3.connectionpool DEBUG Starting new HTTPS connection (1): api.netatmo.com:443 2022-06-08 23:35:17 urllib3.connectionpool DEBUG https://api.netatmo.com:443 "POST /api/getstationsdata HTTP/1.1" 200 None 2022-06-08 23:35:17 root INFO Querying queried API https://api.netatmo.com/api/getstationsdata 2022-06-08 23:35:17 root INFO Successfully queried queried API https://api.netatmo.com/api/getstationsdata 2022-06-08 23:35:17 root INFO Wetterstation ...
Woran kann das liegen?
Danke, Christian.MSv2, MSv1, 4 Relay, 3 Extension, DimmV2, Tree, Air, 1Wire, viele 24V Dimm + Tree Geräte & ein LoxBerry
Im wesentlichen dank Loxberry, -wiki, & -forum erfolgreich eingebunden: Helios KWL, Hörmann Torantrieb, NUKI Schloss/Bridge, Netatmo Weather, Roborock, 2x KEBA Wallbox mit Lastmgt., PV: Fronius WR + Smartmeter, paar Shelly Geräte, HomeConnect, DoorBird, Pooldigital Procon.IP Poolsteuerung
In Planung: BSB-LAN für Gastherme (LMS15 Steuerung)
Bisher leider erfolglos: Judo i-soft safe, Stihl iMOWKommentar
-
Hallo
Neben, den vielen Failed Logins hab ich noch das folgende Problem, dass der Regensensor keine Werte bei der Regenmenge liefert:
Netatmo:5005 (192.168.111.27) xxx.Regen.battery_percent=61 (NA_RegenBattery [61.000000])41,6D,61,73,69,73,2E,52,65,67,65,6E,2E,62,61,74,7 4,65,72,79,5F,70,65,72,63,65,6E,74,3D,36,31 Netatmo:5005 (192.168.111.27) xxx.Regen.rf_status=95 (NA_RegenSignal [95.000000])41,6D,61,73,69,73,2E,52,65,67,65,6E,2E,72,66,5F,7 3,74,61,74,75,73,3D,39,35 Netatmo:5005 (192.168.111.27) xxx.Regen.reachable=141,6D,61,73,69,73,2E,52,65 ,67,65,6E,2E,72,65,61,63,68,61,62,6C,65,3D,31 Netatmo:5005 (192.168.111.27) xxx.Regen.time_utc=42468441341,6D,61,73,69,73,2 E,52,65,67,65,6E,2E,74,69,6D,65,5F,75,74,63,3D,34, 32,34,36,38,34,34,31,33 Netatmo:5005 (192.168.111.27) xx.Regen.Rain=041,6D,61,73,69,73,2E,52,65,67,6 5,6E,2E,52,61,69,6E,3D,30
Verwende die neuen Beta Version 2.0.6, war aber auch bei 2.0.5 auch schon so...
Versuch nun dies auch mal zu debuggen.
Danke für weitere Hinweis.
Kommentar
-
Habe das selbe Problem wie Post 237. Manchmal funktioniert der Login, manchmal nicht. War auf jeden Fall schon vor der 2.0.5.
Code:2022-06-20 21:30:02 root INFO using plugin log file /opt/loxberry/log/plugins/netatmo-weather/netatmo-weather.log 2022-06-20 21:30:02 root INFO using system configuration file /opt/loxberry/config/system/general.json 2022-06-20 21:30:02 root INFO Miniserver ip address: 192.168.xx.xx 2022-06-20 21:30:02 urllib3.connectionpool DEBUG Starting new HTTPS connection (1): auth.netatmo.com:443 2022-06-20 21:30:03 urllib3.connectionpool DEBUG [URL]https://auth.netatmo.com:443[/URL] "GET /en-us/access/login HTTP/1.1" 200 None 2022-06-20 21:30:03 root INFO Successfully got session cookie from [URL]https://auth.netatmo.com/en-us/access/login[/URL] 2022-06-20 21:30:13 urllib3.connectionpool DEBUG [URL]https://auth.netatmo.com:443[/URL] "GET /access/csrf HTTP/1.1" 200 52 2022-06-20 21:30:13 root INFO Found _token value 9lZRAx1it13uTw8Rsr3LuBIpEVdCwE92KzgEl4F5 in response from [URL]https://auth.netatmo.com/access/csrf[/URL] 2022-06-20 21:30:32 urllib3.connectionpool DEBUG [URL]https://auth.netatmo.com:443[/URL] "POST /access/postlogin?next_url=https%3A%2F%2Fmy.netatmo.com%2F app%2Fstation%2F HTTP/1.1" 302 390 2022-06-20 21:30:32 urllib3.connectionpool DEBUG [URL]https://auth.netatmo.com:443[/URL] "GET /access/csrf HTTP/1.1" 200 52 2022-06-20 21:30:32 root INFO Successfully logged in using username xxxxxxxxx and password xxxxxxxxxx to [URL]https://auth.netatmo.com/access/postlogin[/URL] 2022-06-20 21:30:32 root CRITICAL No netatmocomaccess_token value found in session cookie - probably wrong username/password
Zuletzt geändert von flual; 20.06.2022, 21:20.Kommentar
-
Hallo,
Ich habe die Min-Max-Werte und date-min-date-max-Werte eine Weile nicht bekommen. Hier ist die Log-Ausgabe. einen Tipp wo der Fehler liegen könnte?
Code:[h=1]Prohlížeč Logů - /plugins/netatmo-weather/netatmo-weather.log[/h] 2022-07-23 09:45:01 root INFO using plugin log file /opt/loxberry/log/plugins/netatmo-weather/netatmo-weather.log 2022-07-23 09:45:01 root INFO using system configuration file /opt/loxberry/config/system/general.json 2022-07-23 09:45:01 root INFO Miniserver ip address: 10.11.12.59 2022-07-23 09:45:01 urllib3.connectionpool DEBUG Starting new HTTPS connection (1): auth.netatmo.com:443 2022-07-23 09:45:02 urllib3.connectionpool DEBUG https://auth.netatmo.com:443 "GET /en-us/access/login HTTP/1.1" 200 None 2022-07-23 09:45:02 root INFO Successfully got session cookie from https://auth.netatmo.com/en-us/access/login 2022-07-23 09:45:04 urllib3.connectionpool DEBUG https://auth.netatmo.com:443 "GET /access/csrf HTTP/1.1" 200 52 2022-07-23 09:45:04 root INFO Found _token value KFeq8FNpZd1hK1IgVsfo1z0e5lex1J3NrLQKykBS in response from https://auth.netatmo.com/access/csrf 2022-07-23 09:45:10 urllib3.connectionpool DEBUG https://auth.netatmo.com:443 "POST /access/postlogin?next_url=https%3A%2F%2Fmy.netatmo.com%2Fapp%2Fstation%2F HTTP/1.1" 302 634 2022-07-23 09:45:15 urllib3.connectionpool DEBUG https://auth.netatmo.com:443 "GET /access/keychain?next_url=https%3A%2F%2Fmy.netatmo.com%2Fapp%2Fstation%2F HTTP/1.1" 302 658 2022-07-23 09:45:25 urllib3.connectionpool DEBUG https://auth.netatmo.com:443 "GET /en-us/access/keychain?next_url=https%3A%2F%2Fmy.netatmo.com%2Fapp%2Fstation%2F HTTP/1.1" 200 None 2022-07-23 09:45:25 root INFO Successfully logged in using username vaclav.vokolek@gmail.com and password xxxxxxxxxx to https://auth.netatmo.com/access/postlogin 2022-07-23 09:45:25 root INFO Found netatmocomaccess_token value 565c8615c6aa42f40f8b45d6%7C821326b4956a052533c3bdc9279de385 in response from https://auth.netatmo.com/access/postlogin 2022-07-23 09:45:25 urllib3.connectionpool DEBUG Starting new HTTPS connection (1): api.netatmo.com:443 2022-07-23 09:45:26 urllib3.connectionpool DEBUG https://api.netatmo.com:443 "POST /api/getstationsdata HTTP/1.1" 200 None 2022-07-23 09:45:26 root INFO Querying queried API https://api.netatmo.com/api/getstationsdata 2022-07-23 09:45:26 root INFO Successfully queried queried API https://api.netatmo.com/api/getstationsdata 2022-07-23 09:45:26 root INFO RainHome.Indoor.wifi_status=72 2022-07-23 09:45:26 root INFO RainHome.Indoor.reachable=1 2022-07-23 09:45:26 root INFO RainHome.Indoor.time_utc=427801076 2022-07-23 09:45:26 root INFO RainHome.Indoor.Temperature=24.7 2022-07-23 09:45:26 root INFO RainHome.Indoor.CO2=485 2022-07-23 09:45:26 root INFO RainHome.Indoor.Humidity=62 2022-07-23 09:45:26 root INFO RainHome.Indoor.Noise=36 2022-07-23 09:45:26 root INFO RainHome.Indoor.Pressure=1016.2 2022-07-23 09:45:26 root INFO RainHome.Indoor.AbsolutePressure=980.8 2022-07-23 09:45:26 root INFO RainHome.Indoor.temp_trend=0 2022-07-23 09:45:26 root INFO RainHome.Indoor.pressure_trend=-1 2022-07-23 09:45:26 root INFO RainHome.Outdoor.battery_percent=71 2022-07-23 09:45:26 root INFO RainHome.Outdoor.rf_status=70 2022-07-23 09:45:26 root INFO RainHome.Outdoor.reachable=1 2022-07-23 09:45:26 root INFO RainHome.Outdoor.time_utc=427801049 2022-07-23 09:45:26 root INFO RainHome.Outdoor.Temperature=19.8 2022-07-23 09:45:26 root INFO RainHome.Outdoor.Humidity=76 2022-07-23 09:45:26 root INFO RainHome.Outdoor.temp_trend=0 2022-07-23 09:45:26 root INFO RainHome.Bedroom.battery_percent=100 2022-07-23 09:45:26 root INFO RainHome.Bedroom.rf_status=84 2022-07-23 09:45:26 root INFO RainHome.Bedroom.reachable=1 2022-07-23 09:45:26 root INFO RainHome.Bedroom.time_utc=427801036 2022-07-23 09:45:26 root INFO RainHome.Bedroom.Temperature=23.9 2022-07-23 09:45:26 root INFO RainHome.Bedroom.CO2=360 2022-07-23 09:45:26 root INFO RainHome.Bedroom.Humidity=63 2022-07-23 09:45:26 root INFO RainHome.Bedroom.temp_trend=0
Kommentar
Kommentar