Willkommen im Loxone Community Forum. Um alle Funktionen nutzen und sehen zu können, registriere dich bitte zuerst. Dies gilt auch für das herunterladen von Dateien.
Bitte im Titel immer zuerst den Namen des Plugins hinschreiben
Wieder ein Jahr rum - wieder Weihnachten - Zeit für ein Update:
- 2021-12-29 Release 2.0.5 - PRE-RELEASE: added next-hop URL after authentication for stability issues, if account has also Netatmo Welcome Cameras enabled
- 2020-12-27 Release 2.0.4 - RELEASE: Various bug fixings, beginning of general.json, implemented logging to log file
python3 /opt/loxberry/data/plugins/netatmo-weather/netatmo_APIBody.py | jq --> alles ohne Fehler mit korrekten Daten
python3 /opt/loxberry/data/plugins/netatmo-weather/netatmo.py --> angeblich keine conf aber ist mir korrekten Daten ja vorhanden (/opt/loxberry/config/plugins/netatmo-weather/netatmo.cfg
)
Code:
Number of arguments: 1 arguments.
Argument List: ['/opt/loxberry/data/plugins/netatmo-weather/netatmo.py']
using plugin log file netatmo-weather.log
Plugin configuration file missing netatmo.cfg
Ich habe auch schon mir anderen UDPPORTs getestet, ohne Erfolg. Am Luxone kommt nichts an.
Ich habe via SSH vom LoxBerry ein Ping an die Miniserver geschickt
nping --udp -p 5005 MiniserverIP
Code:
Starting Nping 0.7.70 ( https://nmap.org/nping ) at 2022-01-05 10:46 CET
SENT (0.0036s) UDP packet with 4 bytes to (MiniserverIP):5005
ERR: (0.0046s) READ to (MiniserverIP):5005 failed: Connection refused
Hat jemand eine Idee?
Zuletzt geändert von ibiza1425; 05.01.2022, 09:49.
Was ist denn die Miniserver-IP und die vom LoxBerry?
Wenn überhaupt kein UDP ankommt, dann ist die Verbindung zum Miniserver dicht.
Das hat dann auch nichts mit dem Plugin zu tun.
Es ist ein Miniserver Gen2 gestern in Betrieb genommen. Ich habe abends auch das MQTT und Comfoconnect Plugin installiert. Hier funktioniert die Kommunikation perfekt (ist aber ja kein udp) Wie kann ich noch testen wo die Ursache liegt?
ich hab hier seit ein paar Tagen ebenfalls das Problem, dass ich keine UDP Daten mehr erhalte. Hab inzwischen auf Version 2.0.5 upgedatet. Hat aber nichts geholfen.
Im Log habe ich folgendes stehen, wobei ich sicher sagen kann, dass das Passwort und user stimmen:
2022-01-06 15:00:02 root INFO using plugin log file /opt/loxberry/log/plugins/netatmo-weather/netatmo-weather.log
2022-01-06 15:00:02 root INFO using system configuration file /opt/loxberry/config/system/general.json
2022-01-06 15:00:02 root INFO Miniserver ip address: 10.0.0.3
2022-01-06 15:00:02 urllib3.connectionpool DEBUG Starting new HTTPS connection (1): auth.netatmo.com:443
2022-01-06 15:00:08 urllib3.connectionpool DEBUG https://auth.netatmo.com:443 "GET /en-us/access/login HTTP/1.1" 200 None
2022-01-06 15:00:08 root INFO Successfully got session cookie from https://auth.netatmo.com/en-us/access/login
2022-01-06 15:00:08 root INFO Found _token value ['yfKWllsl0qPARicfB2lOQvKLX2Fs0ErEbEcmqYyo'] in response from https://auth.netatmo.com/en-us/access/login
2022-01-06 15:00:37 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-01-06 15:00:37 urllib3.connectionpool DEBUG https://auth.netatmo.com:443 "GET /en-us/access/login HTTP/1.1" 200 None
2022-01-06 15:00:37 root INFO Successfully logged in using username roman.wingert@live.at and password xxxxxxxxxx to https://auth.netatmo.com/access/postlogin
2022-01-06 15:00:37 root CRITICAL No netatmocomaccess_token value found in session cookie - probably wrong username/password
Ich hab das Plugin for ein paar Tagen installiert und bekomme leider auch keine UDP-Nachrichten.
- Den Miniserver und Loxberry habe ich mehrmals neu gestartet
- Auch verschiedenen Ports probiert
- Von Netatmo bekomme ich alle 5 Minuten alle Mail, dass erfolgreich eingeloggt wurde
2022-02-18 11:35:02 root INFO using plugin log file /opt/loxberry/log/plugins/netatmo-weather/netatmo-weather.log
2022-02-18 11:35:02 root INFO using system configuration file /opt/loxberry/config/system/general.json
2022-02-18 11:35:02 root INFO Miniserver ip address: 192.168.178.65
2022-02-18 11:35:02 urllib3.connectionpool DEBUG Starting new HTTPS connection (1): auth.netatmo.com:443
2022-02-18 11:35:04 urllib3.connectionpool DEBUG https://auth.netatmo.com:443 "GET /en-us/access/login HTTP/1.1" 200 None
2022-02-18 11:35:04 root INFO Successfully got session cookie from https://auth.netatmo.com/en-us/access/login
2022-02-18 11:35:04 root INFO Found _token value ['RQyCdcFEcWuMpyFbIFemimT3iAEljUJ8ocMCnUz2'] in response from https://auth.netatmo.com/en-us/access/login
2022-02-18 11:35:21 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-02-18 11:35:21 urllib3.connectionpool DEBUG Starting new HTTPS connection (1): my.netatmo.com:443
2022-02-18 11:35:22 urllib3.connectionpool DEBUG https://my.netatmo.com:443 "GET /app/station/ HTTP/1.1" 200 None
2022-02-18 11:35:22 root INFO Successfully logged in using username xxxxxxxxxxxxxxxxxx and password xxxxxxxxxx to https://auth.netatmo.com/access/postlogin
2022-02-18 11:35:22 root INFO Found netatmocomaccess_token value 5fde0f37a4b3604df448a5f5%7C3ac668996fe51017926d355 f3ea3f6f8 in response from https://auth.netatmo.com/access/postlogin
2022-02-18 11:35:22 urllib3.connectionpool DEBUG Starting new HTTPS connection (1): api.netatmo.com:443
2022-02-18 11:35:23 urllib3.connectionpool DEBUG https://api.netatmo.com:443 "POST /api/getstationsdata HTTP/1.1" 200 None
2022-02-18 11:35:23 root INFO Querying queried API https://api.netatmo.com/api/getstationsdata
2022-02-18 11:35:23 root INFO Successfully queried queried API https://api.netatmo.com/api/getstationsdata
Ich hab das Plugin for ein paar Tagen installiert und bekomme leider auch keine UDP-Nachrichten.
- Den Miniserver und Loxberry habe ich mehrmals neu gestartet
- Auch verschiedenen Ports probiert
- Von Netatmo bekomme ich alle 5 Minuten alle Mail, dass erfolgreich eingeloggt wurde
Kannst du dich per SSH mit dem Loxberry verbinden und das Plugin manuell starten mit:
Hallo Zusammen,
ich habe auch das Problem dass keine Daten bei Loxone Miniserver ankommen.
Bei Abfrage per Telnet am Loxberry bekomme ich deine posivite Rückmeldung, wie folgt:
Hallo Zusammen,
bei mir hat das Plugin super funktioniert. Am 27.02. zur Mittagszeit auf einmal nicht mehr und auch seitdem nicht mehr. Trotz Update auf die neuste Version!
Kann jemand helfen?
danke
Hmm sehr komisch..... könnt ihr testweise in der netatmo.py mal folgendes anpassen:
Code:
"""
convert the response into json
"""
netatmodata = json.loads(req.text)
zu
Code:
"""
convert the response into json
"""
netatmodata = json.loads(req.text)
print(netatmodata)
sys.exit(-1)
Danach das Script nochmal ausführen:
python3 /opt/loxberry/data/plugins/netatmo-weather/netatmo.py --config /opt/loxberry/config/plugins/netatmo-weather/netatmo.cfg
Damit sollte direkt das Ergebnis der Netamo API auf der Kommandozeile angezeigt werden. Vielleicht gibt das weiteren Aufschluss über die Ursache.
Hier ist was ausgegeben wird.
Der erste (gelöschte) Post war falsch, da ich die falsche Netatmo.py genutzt habe. Ich habe keine Wetterstation sondern einen Home Coach. Ich habe die beschriebenen Änderungen wie in Post #197 durchgeführt. Aber hier sieht es so aus, als wäre bei der Änderung was falsch gelaufen ::/
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.168.178.65
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 ['4ih4uRlyWL27S9OK297FrWIFkRjkCn53GzlsweRK'] in response from https://auth.netatmo.com/en-us/access/login 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
Starting new HTTPS connection (1): my.netatmo.com:443 https://my.netatmo.com:443 "GET /app/station/ HTTP/1.1" 200 None
Successfully logged in using username xxxxxxxxxxxx and password xxxxxxxxxx to https://auth.netatmo.com/access/postlogin
Found netatmocomaccess_token value 5fde0f37a4b3604df448a5f5%7C9775426bd3a131b16fd8a9d 82c6259ae in response from https://auth.netatmo.com/access/postlogin
Starting new HTTPS connection (1): api.netatmo.com:443 https://api.netatmo.com:443 "POST /api/gethomecoachsdata HTTP/1.1" 200 None
Querying queried API https://api.netatmo.com/api/gethomecoachsdata
Successfully queried queried API https://api.netatmo.com/api/gethomecoachsdata
'module_name'
Traceback (most recent call last):
File "/opt/loxberry/data/plugins/netatmo-weather/netatmo.py", line 356, in <module>
main(args)
File "/opt/loxberry/data/plugins/netatmo-weather/netatmo.py", line 198, in main
value = "{0}.{1}.{2}={3}".format(device["station_name"], device["module_name"], "wifi_status",
KeyError: 'module_name'
Wir verarbeiten personenbezogene Daten über Nutzer unserer Website mithilfe von Cookies und anderen Technologien, um unsere Dienste bereitzustellen, Werbung zu personalisieren und Websiteaktivitäten zu analysieren. Wir können bestimmte Informationen über unsere Nutzer mit unseren Werbe- und Analysepartnern teilen. Weitere Einzelheiten finden Sie in unserer Datenschutzrichtlinie.
Wenn Sie unten auf "Einverstanden" klicken, stimmen Sie unserer Datenschutzrichtlinie und unseren Datenverarbeitungs- und Cookie-Praktiken wie dort beschrieben zu. Sie erkennen außerdem an, dass dieses Forum möglicherweise außerhalb Ihres Landes gehostet wird und Sie der Erhebung, Speicherung und Verarbeitung Ihrer Daten in dem Land, in dem dieses Forum gehostet wird, zustimmen.
Kommentar