Netatmo in FHEM integrieren

Begonnen von FotoFieber, 26 August 2013, 09:15:06

Vorheriges Thema - Nächstes Thema

tobias.vorberg

Im Log steht nichts. Nur dass die cfg gespeichert wurde und dann erst wieder der Neustart.

Ich habe die Version 5.5 und mit update auf stand

bb Tobias


justme1968

welche version war das eigentliche installer packet? vor allen updates?

gruss
  nadre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

tobias.vorberg

Da ich mit dem FHEM Thema erst vor 2 Wochen begonnen habe, habe dort die aktuellste Version genommen, die für die FB vorhanden war. Ich habe nicht die von AVM genommen.

bb Tobias

justme1968

auf einem normalen linux system würde ich dich jetzt bitten fhem von Hand zu starten und auf der konsole zu schauen ob dort ewas steht.

ob und wie das auf der fritzbox möglich ist kann ich dir leider nicht sage. 

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

tobias.vorberg

Dank Dir.

Ich werde mal etwas testen wenn ich etwas Zeit habe.

bb Tobias

Todor

Hallo zusammen,

ich versuche das Modul auch zum Laufen zu bringen, kriege ich aber den Fehler:

2014.03.07 11:24:37 2: Netatmo: invalid json detected: <html>
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<center>The plain HTTP request was sent to HTTPS port</center>
<hr><center>nginx/1.1.19</center>
</body>
</html>

Mein FHEM läuft tadellos auf QNAP TS-469L und alles soll schon aktuell sein, aber wer weißt. Ich bitte euch um Hilfe.

Vielen Dank,
Todor

ali77

#96
Immer wenn ich python  /home/pi/gatherNetatmo.py aufrufe kommt diese Fehlermeldung:

Traceback (most recent call last):
  File "/home/pi/gatherNetatmo.py", line 16, in <module>
    authorization = lnetatmo.ClientAuth()
  File "/home/pi/lnetatmo.py", line 81, in __init__
    self._scope = resp['scope']
KeyError: 'scope'

Hat jemand eine Idee?

Könnte es damit zusammenhängen:
Dear developers,

A new authentication permission model (scope from oauth2 RFC) has been deployed in our Netatmo API.
You can find some documentation here : http://dev.netatmo.com/doc/authentication/scopes

You need to update your application in order to take it into account (you just need to add a scope argument in authentication requests)

NB :
Until the 26th of March 2014 if no scope is provided the application will still have access to all method
After the 26th of March 2014, if no scope is provided the application will only have access to read_station method (getuser, devicelist (for station), getmeasure (for station)).

That means that every application that has not taken the scope into account will not be able to access the thermostat data after the 26th of March.

Todor

Hi Ali77,

hast Du die neue Datei "lnetatmo.py" benutzt?
https://github.com/philippelt/netatmo-api-python
Der gute Phil hat die vor 3 Tage schon angepass.

Grüße,
Todor

justme1968

auch wenn ich immer noch keine netatmo habe :) habe den scope parameter eben ins modul eingebaut und das ganze mal eingecheckt.

kommt morgen mit dem update.

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

ali77

Danke, dass neue Modul funktioniert bei mir ausgezeichnet.  :)

Bonzon

Hi Andre,

also erstmal muss ich sagen. Du leistet top arbeit...ich bin begeistert.
Ich habe jedoch derzeit eins kleine Herausforderung mit deinem Modul. Netatmo hat ja netterweise die API umgestellt. Bis zur Umstellung lief alles super.
Nun quittiert das Modul den Aufruf mit folgendem

NETATMO: http request failed: connect to http://api.netatmo.net:80 timed out

Was das bedeutet weiß ich. Ich würde gern wissen, was ich dagegen tun kann, damit dein geiles Modul wieder arbeitet.
Vielleicht hast du ja eine Idee :D

Viele Grüße,
Stan
Raspberry Pi Typ B, 512 MB mit CUL V3.4 (Firmware 1.57 CUL868) für Homatic und CUL V3.4 (Firmware 1.57 CUL868) für MAX!
MAX!: Heizkörperthermostate, Wandthermostat WT+
Homatic: HM-LC-SW1-FM
Netatmo Wetterstation: Indoor-Modul, Outdoor-Modul

justme1968

bist du sicher das es an der api Umstellung liegt?

das scheint mir eher eine meldung zu sein das die verbindung schon nicht zustande kommt.

bei fehlern die mit dem api zu tun haben gibt es eigentlich eine mehr oder weniger richtige fehlermeldung.

aber ich schaue es mir an.

gruss
  andre

hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

Bonzon

Also vor der API-Umstellung hat alles einwandfrei funktioniert. Anders als an der API-Umstellung kann ich es mir nicht erklären :(
Raspberry Pi Typ B, 512 MB mit CUL V3.4 (Firmware 1.57 CUL868) für Homatic und CUL V3.4 (Firmware 1.57 CUL868) für MAX!
MAX!: Heizkörperthermostate, Wandthermostat WT+
Homatic: HM-LC-SW1-FM
Netatmo Wetterstation: Indoor-Modul, Outdoor-Modul

Bonzon

Hi Andre,

vergiss das ich was geschrieben habe :D
Ich glaube es ist eine blöde Aneinanderreihung von doofen Zufällen.

Zuerst kam die API-Umstellung und dann ging es erstmal nicht mehr. In der Zwischenzeit musste ich mein WLAN Ändern und hab die Station noch nicht wieder ins WLAN gehangen :S

Ich teste das sofort, wenn ich den Alustab wieder in den Fingern halt :)

Trotzdem Danke für deine Mühen :)

Grüße,
Stan
Raspberry Pi Typ B, 512 MB mit CUL V3.4 (Firmware 1.57 CUL868) für Homatic und CUL V3.4 (Firmware 1.57 CUL868) für MAX!
MAX!: Heizkörperthermostate, Wandthermostat WT+
Homatic: HM-LC-SW1-FM
Netatmo Wetterstation: Indoor-Modul, Outdoor-Modul

justme1968

ich habe es gerade probiert und ich bekomme daten.

Zitat2014-03-17 22:38:23   co2             657
     2014-03-17 22:38:23   humidity        53
     2014-03-17 22:38:23   noise           42
     2014-03-17 22:38:23   pressure        1020
     2014-03-17 22:38:23   temperature     21.3

die api umstellung wird glaube ich auch erst am 26. märz scharf geschaltet und ich hoffe das ich gestern schon alles dafür eingecheckt habe...

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968