gibt es eigentlich eine Möglichkeit, den Lachsfarbenen Netatmo Raumsensor auch in Loxone via diesen PlugIn einzubinden?
Loxberry Netatmo Weather PlugIn
Einklappen
X
-
Grüß euch,
gibt es eigentlich eine Möglichkeit, den Lachsfarbenen Netatmo Raumsensor auch in Loxone via diesen PlugIn einzubinden?
-
Hallo zusammen,
ich bekomme von der Wetterstation seit kurzen keine Werte mehr automatisch nur wenn ich den Miniserver neu starte wobei ich mir nicht mehr sicher bin ob die Werte aktuell sind.
Im Miniserverlog vom Loxberry bekommen ich diese Meldung.
2023-02-01 10:39:19.697;weather error authentication exception: user is not activ
Kennt diese Meldung jemand und kann mir bitte helfen?
Vielen Dank für die Hilfe.
SG MarkusKommentar
-
Ich kann dir bei deinem Problem zwar nicht helfen, aber die Meldung kommt vom Loxone Weatherserver und ist normal, wenn du kein Wetter Abo bei Loxone gebucht hast.🇺🇦 Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine
LoxBerry - Beyond the Limits
Kommentar
-
Ok danke für die Info! Dann bin ich am falschen Weg glaube ich!
Ich habe eine Netatmo Wetterstation über Loxberry laufen und bekommen über UPD keine Daten mehr!
Hat dann diese Meldung nichts mit dem auf sich?
Gibt es hier andere Möglichkeiten um dem auf den Grund zu gehen?
DankeKommentar
-
Schau mal hier: https://wiki.loxberry.de/plugins/netatmo_weather/start
Im Abschnitt "Troubleshooting" -
Hallo Michael,
danke für die Info.
Kannst du mit den logfile etwas anfangen?
2023-02-11 18:40:02 root INFO using plugin log file /opt/loxberry/log/plugins/netatmo-weather/netatmo-weather.log
2023-02-11 18:40:02 root INFO using system configuration file /opt/loxberry/config/system/general.json
2023-02-11 18:40:02 root INFO Miniserver ip address: 192.168.1.77
2023-02-11 18:40:02 urllib3.connectionpool DEBUG Starting new HTTPS connection (1): auth.netatmo.com:443
2023-02-11 18:40:03 urllib3.connectionpool DEBUG https://auth.netatmo.com:443 "GET /en-us/access/login HTTP/1.1" 200 None
2023-02-11 18:40:03 root INFO Successfully got session cookie from https://auth.netatmo.com/en-us/access/login
2023-02-11 18:40:03 root INFO Found _token value [] in response from https://auth.netatmo.com/en-us/access/login
2023-02-11 18:40:05 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" 419 6627
2023-02-11 18:40:05 root ERROR Unable to contact https://auth.netatmo.com/access/postlogin
2023-02-11 18:40:05 root CRITICAL Error: 419
Vielen Dank für deine Hilfe.
-
-
Hallo an Alle,
ich bekomme seit heute Morgen 8:30 wieder alle 5 Minuten die Info von Netatmo das sich jemand eingeloggt hat. Ich finde bei Netatmo keine Einstellung mehr, dies zu unterbinden. Habt ihr das Problem auch wieder?
Vielen Dank für Eure Rückmeldung!Kommentar
-
Hallo,
ich bekomm die Mails seit heute auch wieder.... ziehmlicher Mist.
Ich hab aber auch keine wirklich gute Idee aktuell, wie man das abstellen könnte. Ich muss mal schauen ob man ggf. mit einem Refresh-Token da was machen kann. Vielleicht hat ja auch einer von euch eine Idee.
Source-Code liegt ja auf GitHub.Kommentar
-
Hi,
Habe das gleiche Problem, dass ich alle 5min ein Mail erhalte.
Finde aber den Schieberegler zum deaktivieren im Netatmo Portal nicht mehr.Kommentar
-
Ich bin mir ziemlich sicher dass du es nicht mehr abdrehen kannst, das hat Netatmo bewusst abgestellt. Weiter oben Thread und den comments steht alles inklusive der link zu den "alten" settings wo der Toggle nicht mehr funktioniert. Wenn du über die App die mail Benachrichtigungen abstellst ist bei mir ein overlay gekommen dass das bis zu "ein paar Tagen" dauert. Ich bin mir aber nicht sicher ob dieser speziallfall da dabei ist dass sich jemand anders bei deinem account einloggt.
-
-
Die Netatmo API Docu ist irgendwie inkonsistent. Am Anfang sagen sieFor personal use only (the account with which the API application have been created), you can also authenticate with the "Client credentials" grant type in which the username and the password should be sent along with the request.
Weiter unten ist der request als deprecated markiert und du kannst den request gar nicht mehr ausführen. Kommt immer "invalid grant_type" retour.Kommentar
-
ich hab mal eine angepasste Version des Python Scriptes hochgeladen... Ist noch nahezu ungetestet - aber würde mich über mittester freuen:
A Plugin for Loxberry to send Netatmo Weather Station data to your Loxone Miniserver - michaelmiklis/loxberry-plugin-netatmo-weather
Der Session Cookie wird jetzt gespeichert und wiederverwendet - dies sollte in der Theorie zu weniger Anmeldungen und weniger E-Mails führen.Kommentar
-
Habs als neues Release veröffentlich. Entweder manuell herunterladen:
oder über den Plugin-Manager im Loxberry updaten.Kommentar
-
Hallo,
werden die abgefragten Werte auch igendow in eine Datei geschrieben, die ich abfragen könnte.
Ich habe leider kein MS und müsste die Werte per http abholen.
Danke und Gruß
JensKommentar
-
Also entweder hat NetAtmo gerade Stress, oder aber sie haben was geändert und das PlugIn will nimmer.
user@loxberry:~# 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: 000.000.000.000 (auskommentiert)
No session cookie file found. /opt/loxberry/data/plugins/netatmo-weather/netatmo-weather.cookie
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
https://auth.netatmo.com:443 "GET /access/csrf HTTP/1.1" 200 52
Found _token value ------------------Auskommentiert--------------------------------------------- in response from https://auth.netatmo.com/access/csrf
https://auth.netatmo.com:443 "POST /access/postlogin?next_url=https%3A%2F%2Fmy.netatmo.com%2F app%2Fstation%2F HTTP/1.1" 302 634
('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 445, in _make_request
six.raise_from(e, None)
File "<string>", line 3, in raise_from
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 440, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.9/http/client.py", line 1347, in getresponse
response.begin()
File "/usr/lib/python3.9/http/client.py", line 307, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.9/http/client.py", line 276, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 532, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/lib/python3/dist-packages/six.py", line 718, in reraise
raise value.with_traceback(tb)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 445, in _make_request
six.raise_from(e, None)
File "<string>", line 3, in raise_from
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 440, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.9/http/client.py", line 1347, in getresponse
response.begin()
File "/usr/lib/python3.9/http/client.py", line 307, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.9/http/client.py", line 276, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/loxberry/data/plugins/netatmo-weather/netatmo.py", line 505, in <module>
main(args)
File "/opt/loxberry/data/plugins/netatmo-weather/netatmo.py", line 162, in main
req = session.post("https://auth.netatmo.com/access/postlogin", params=param, data=payload)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 590, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 677, in send
history = [resp for resp in gen]
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 677, in <listcomp>
history = [resp for resp in gen]
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 237, in resolve_redirects
resp = self.send(
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
user@loxberry:~#
Zuletzt geändert von Leigh; 15.07.2023, 12:49.Ciao, Leigh
Nur der eigene Geist setzt uns Grenzen...Kommentar
-
Hallo,
nachdem ich heute Loxberry installiert habe und dann gleich als erstes das Netatmo-Plugin, habe ich folgendes Problem, siehe LOG:
2023-07-17 16:10:01 root INFO using plugin log file /opt/loxberry/log/plugins/netatmo-weather/netatmo-weather.log
2023-07-17 16:10:01 root INFO using system configuration file /opt/loxberry/config/system/general.json
2023-07-17 16:10:01 root INFO Miniserver ip address: 10.0.xxxxxxx
2023-07-17 16:10:01 urllib3.connectionpool DEBUG Starting new HTTPS connection (1): api.netatmo.com:443
2023-07-17 16:10:01 urllib3.connectionpool DEBUG https://api.netatmo.com:443 "POST /api/getstationsdata HTTP/1.1" 200 None
2023-07-17 16:10:01 root INFO Querying queried API https://api.netatmo.com/api/getstationsdata
2023-07-17 16:10:01 root INFO Successfully queried queried API https://api.netatmo.com/api/getstationsdata
2023-07-17 16:10:01 root CRITICAL 'module_name'
Traceback (most recent call last):
File "/opt/loxberry/data/plugins/netatmo-weather/netatmo.py", line 505, in
main(args)
File "/opt/loxberry/data/plugins/netatmo-weather/netatmo.py", line 234, in main
value = "{0}.{1}.{2}={3}".format(device["home_name"], device["module_name"], "wifi_status",
KeyError: 'module_name'Kommentar
-
Versuch mal die Schritte die hier im Abschnitt Troubleshooting beschrieben sind:
A Plugin for Loxberry to send Netatmo Weather Station data to your Loxone Miniserver - michaelmiklis/loxberry-plugin-netatmo-weather
Vorallem mit dem Parameter "--apibody" und poste den output mal (aber Achtung: ggf. musst du vorher sensible Daten entfernen, wie Adresse, Standort, etc.)
-
Kommentar