Loxberry Netatmo Weather PlugIn
Einklappen
X
-
Hab in der Version 0.8 date_min_temp, date_max_temp und time_utc integriert (Format ist jetzt dd.mm.YYYY HH:MM:SS):
-
Hallo,
ich bekomme leider auch nichts über UDP. Habe gerade die 0.8 deinstalliert und nochmal neu installiert.
es kommt aber immer folgender Fehler wenn ich die py manuell starte:
loxberry@loxberry:~/data/plugins/netatmo-weather $ /usr/bin/python3 /opt/loxberry/data/plugins/netatmo-weather/netatmo.py
File "/opt/loxberry/data/plugins/netatmo-weather/netatmo.py", line 136
elif sensor.lower() == "date_min_temp":
^
TabError: inconsistent use of tabs and spaces in indentation
hat evtl. jemand einen Tip für mich?Gruß
neonnt
MS, 2 Extensions, Tree-Extension, 1-Wire Extension, Enocean Extension, S0 Zähler, Home Assistant, DS1400 + Netatmo Wetterstation, HomePods, Hue Bridge v2, VU+ Solo2 und noch einige RPi + ArduinoKommentar
-
Release 0.9 ist online: http://plugins.loxberry.de/plugin/netatmo-weather/
hierin ist der von neonnt beschriebene Fehler behoben und ich habe nun auch die Windmesser Timestamps in das richtige Format konvertiert.Kommentar
-
Hallo Michael, ich habe auch das Problem, das beim Aufruf des Plugins immer die Meldung "Error Loading Page" kommt. Auch eine Neuinstallation des Plugins brachte keinen Erfolg. Gruß, SvenZuletzt geändert von jusvt; 02.04.2017, 08:47.Kommentar
-
Kannst du mal einen Ausschnitt aus dem Logfile /opt/loxberry/log/system/apache2/error.log posten, wenn du über das Webinterface das PlugIn aufrufst? -
Jo gerne:
[Sun Apr 2 13:06:20 2017] index.cgi: Scalar value @fields[6] better written as $fields[6] at /opt/loxberry/webfrontend/cgi/index.cgi line 206.
[Sun Apr 2 13:06:20 2017] index.cgi: Scalar value @fields[5] better written as $fields[5] at /opt/loxberry/webfrontend/cgi/index.cgi line 207.
[Sun Apr 2 13:06:20 2017] index.cgi: Subroutine header redefined at /opt/loxberry/webfrontend/cgi/index.cgi line 250.
[Sun Apr 2 13:06:20 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 15.
[Sun Apr 2 13:06:20 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 15.
[Sun Apr 2 13:06:20 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 15.
[Sun Apr 2 13:06:20 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 15.
[Sun Apr 2 13:06:20 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 15.
[Sun Apr 2 13:06:20 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 15.
[Sun Apr 2 13:06:20 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 15.
[Sun Apr 2 13:06:20 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 15.
[Sun Apr 2 13:06:20 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 15.
[Sun Apr 2 13:06:20 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 15.
[Sun Apr 2 13:06:20 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 15.
[Sun Apr 2 13:06:20 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 15.
[Sun Apr 2 13:06:20 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 15.
[Sun Apr 2 13:06:20 2017] index.cgi: Filehandle F opened only for input at /opt/loxberry/webfrontend/cgi/index.cgi line 202, <F> line 15.
Can't locate JSON.pm in @INC (you may need to install the JSON module) (@INC contains: /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /opt/loxberry/webfrontend/cgi/plugins/netatmo-weather/index.cgi line 17.
BEGIN failed--compilation aborted at /opt/loxberry/webfrontend/cgi/plugins/netatmo-weather/index.cgi line 17.
[Sun Apr 02 13:06:23.489514 2017] [cgid:error] [pid 1375] [client 192.168.1.3:63596] End of script output before headers: index.cgi, referer: http://loxberry/admin/index.cgi
-
-
öffne mal die Datei /opt/loxberry/webfrontend/cgi/plugins/netatmo-weather/index.cgi und entferne die Zeile 17 "use JSON qw( decode_json );"Kommentar
-
Hallo!
Ich möchte auch gerne dieses Plugin installieren, aber irgendetwas funktioniert bei mir nicht. Maus dazu sagen dass ich heute das erste mal eine Raspberry hatte und mich mit den ganzen Befehlen nicht auskenne. Nun wollte ich das Plugin auf der Loxberry Oberfläche installieren und bekomme folgende Meldungen:
<INFO> Starte Plugin-Installation <OK> Plugin-Archiv erfolgreich hochgeladen <INFO> Extrahiere Plugin-Archiv <INFO> Command: /usr/bin/unzip -d /tmp/uploads/0J7i1HAVEI /tmp/uploads/0J7i1HAVEI/0J7i1HAVEI.zip Archive: /tmp/uploads/0J7i1HAVEI/0J7i1HAVEI.zip inflating: /tmp/uploads/0J7i1HAVEI/apt creating: /tmp/uploads/0J7i1HAVEI/config/ inflating: /tmp/uploads/0J7i1HAVEI/config/netatmo.cfg creating: /tmp/uploads/0J7i1HAVEI/cron/ inflating: /tmp/uploads/0J7i1HAVEI/cron/cron.05min creating: /tmp/uploads/0J7i1HAVEI/data/ inflating: /tmp/uploads/0J7i1HAVEI/data/netatmo.py creating: /tmp/uploads/0J7i1HAVEI/icons/ inflating: /tmp/uploads/0J7i1HAVEI/icons/icon_128.png inflating: /tmp/uploads/0J7i1HAVEI/icons/icon_256.png inflating: /tmp/uploads/0J7i1HAVEI/icons/icon_512.png inflating: /tmp/uploads/0J7i1HAVEI/icons/icon_64.png inflating: /tmp/uploads/0J7i1HAVEI/icons/README.txt inflating: /tmp/uploads/0J7i1HAVEI/plugin.cfg inflating: /tmp/uploads/0J7i1HAVEI/postinstall.sh inflating: /tmp/uploads/0J7i1HAVEI/postupgrade.sh inflating: /tmp/uploads/0J7i1HAVEI/preinstall.sh inflating: /tmp/uploads/0J7i1HAVEI/preupgrade.sh creating: /tmp/uploads/0J7i1HAVEI/templates/ inflating: /tmp/uploads/0J7i1HAVEI/templates/.DS_Store creating: /tmp/uploads/0J7i1HAVEI/templates/de/ inflating: /tmp/uploads/0J7i1HAVEI/templates/de/content.html creating: /tmp/uploads/0J7i1HAVEI/templates/en/ inflating: /tmp/uploads/0J7i1HAVEI/templates/en/content.html creating: /tmp/uploads/0J7i1HAVEI/webfrontend/ creating: /tmp/uploads/0J7i1HAVEI/webfrontend/cgi/ inflating: /tmp/uploads/0J7i1HAVEI/webfrontend/cgi/index.cgi <OK> Plugin-Archiv erfolgreich entpackt <INFO> Author: Michael Miklis <INFO> Email: info@michaelmiklis.de <INFO> Version: 0.9 <INFO> Name: netatmo-weather <INFO> Folder: netatmo-weather <INFO> Title: Netatmo-Weather <INFO> Interface: 1.0 <OK> Alle Konfigurationsparameter vorhanden <OK> Freien Datenbank-Eintrag gefunden <INFO> Verwende Plugin-Name: netatmo-weather <INFO> Verwende Installationsverzeichnis: netatmo-weather <INFO> Starte Skript PREINSTALL <INFO> Command: /bin/sh "/tmp/uploads/0J7i1HAVEI/preinstall.sh" "0J7i1HAVEI" "netatmo-weather" "netatmo-weather" "0.9" "/opt/loxberry" <OK> Skript ohne Fehler ausgeführt <INFO> Installiere Konfigurationsdateien '/tmp/uploads/0J7i1HAVEI/config/netatmo.cfg' -> '/opt/loxberry/config/plugins/netatmo-weather/netatmo.cfg' <OK> Alle Dateien erfolgreich installiert <INFO> Installiere Templatedateien '/tmp/uploads/0J7i1HAVEI/templates/de' -> '/opt/loxberry/templates/plugins/netatmo-weather/de' '/tmp/uploads/0J7i1HAVEI/templates/de/content.html' -> '/opt/loxberry/templates/plugins/netatmo-weather/de/content.html' '/tmp/uploads/0J7i1HAVEI/templates/en' -> '/opt/loxberry/templates/plugins/netatmo-weather/en' '/tmp/uploads/0J7i1HAVEI/templates/en/content.html' -> '/opt/loxberry/templates/plugins/netatmo-weather/en/content.html' <OK> Alle Dateien erfolgreich installiert <INFO> Installiere Cron-Job-Dateien '/tmp/uploads/0J7i1HAVEI/cron/cron.05min' -> '/opt/loxberry/system/cron/cron.05min/netatmo-weather' <OK> Alle Cronjob-Dateien erfolgreich installiert <INFO> Setze Berechtigungen: /bin/chmod -R 755 /opt/loxberry/system/cron/ <OK> Berechtigungen erfolgreich gesetzt <INFO> Installiere Daten-Dateien '/tmp/uploads/0J7i1HAVEI/data/netatmo.py' -> '/opt/loxberry/data/plugins/netatmo-weather/netatmo.py' <OK> Alle Dateien erfolgreich installiert <INFO> Installiere CGI-Dateien '/tmp/uploads/0J7i1HAVEI/webfrontend/cgi/index.cgi' -> '/opt/loxberry/webfrontend/cgi/plugins/netatmo-weather/index.cgi' <OK> Alle Dateien erfolgreich installiert <INFO> Setze Berechtigungen: /bin/chmod -R 755 /opt/loxberry/webfrontend/cgi/plugins/netatmo-weather/ <OK> Berechtigungen erfolgreich gesetzt <INFO> Installiere Icons '/tmp/uploads/0J7i1HAVEI/icons/README.txt' -> '/opt/loxberry/webfrontend/html/system/images/icons/netatmo-weather/README.txt' '/tmp/uploads/0J7i1HAVEI/icons/icon_128.png' -> '/opt/loxberry/webfrontend/html/system/images/icons/netatmo-weather/icon_128.png' '/tmp/uploads/0J7i1HAVEI/icons/icon_256.png' -> '/opt/loxberry/webfrontend/html/system/images/icons/netatmo-weather/icon_256.png' '/tmp/uploads/0J7i1HAVEI/icons/icon_512.png' -> '/opt/loxberry/webfrontend/html/system/images/icons/netatmo-weather/icon_512.png' '/tmp/uploads/0J7i1HAVEI/icons/icon_64.png' -> '/opt/loxberry/webfrontend/html/system/images/icons/netatmo-weather/icon_64.png' <OK> Icons konnten erfolgreich installiert werden <INFO> Installiere zusätzliche Software-Pakete <INFO> Command: /usr/bin/sudo /usr/bin/apt-get -q -y install python3 python3-requests libstring-escape-perl E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. <ERROR> Paket konnte nicht installiert werden <INFO> Aktualisiere APT-Paketdatenbank <INFO> Command: /usr/bin/sudo /usr/bin/apt-get -q -y update Hit http://mirrordirector.raspbian.org jessie InRelease Hit http://mirrordirector.raspbian.org jessie/main armhf Packages Hit http://archive.raspberrypi.org jessie InRelease Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages Hit http://archive.raspberrypi.org jessie/main armhf Packages Hit http://archive.raspberrypi.org jessie/ui armhf Packages Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en Ign http://mirrordirector.raspbian.org jessie/main Translation-en Ign http://archive.raspberrypi.org jessie/main Translation-en Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en Ign http://archive.raspberrypi.org jessie/ui Translation-en Hit https://deb.nodesource.com jessie InRelease Hit https://deb.nodesource.com jessie/main Sources Hit https://deb.nodesource.com jessie/main armhf Packages Get:1 https://deb.nodesource.com jessie/main Translation-en [162 B] Get:2 https://deb.nodesource.com jessie/main Translation-en [162 B] Get:3 https://deb.nodesource.com jessie/main Translation-en [162 B] Get:4 https://deb.nodesource.com jessie/main Translation-en [162 B] Get:5 https://deb.nodesource.com jessie/main Translation-en [162 B] Ign https://deb.nodesource.com jessie/main Translation-en E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. <ERROR> APT-Paketdatenbank konnte nicht aktualisiert werden <INFO> Command: /usr/bin/sudo /usr/bin/apt-get -q -y install python3 python3-requests libstring-escape-perl E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. <ERROR> Paket konnte nicht installiert werden <INFO> Starte Skript POSTINSTALL <INFO> Command: /bin/sh "/tmp/uploads/0J7i1HAVEI/postinstall.sh" "0J7i1HAVEI" "netatmo-weather" "netatmo-weather" "0.9" "/opt/loxberry" <OK> Skript ohne Fehler ausgeführt <INFO> Aktualisiere Systemmenüs <OK> Systemmenüs aktualisert <INFO> Räume auf und lösche temporäre Dateien
Was mache ich falsch??Kommentar
-
Kann es sein, dass es Problem mit Umlauten gibt.
22.05.2017 15:48:34 ERROR Sent bytes do not match - expected 32 : got 33
22.05.2017 15:48:34 ERROR Packet-Payload xxxxxxxx.Außen.battery_vp=5318
Kommentar
-
Ich hatte auf einem Pi3 mit frischem Loxberry das gleiche Problem wie jusvt.
Auch bei mir half das entfernen von Zeile 17 in /opt/loxberry/webfrontend/cgi/plugins/netatmo-weather/index.cgi und entferne die Zeile 17 "use JSON qw( decode_json );"
Kommentar
-
Danke für das tolle Plugin, heute installiert und es klappt alles - bis auf das Umlauteproblem, das oben schon beschrieben wurde. Sowohl das ß in Außen, wie auch das ö in meinem Strassennamen wurde mit einem
Code:ERROR Sent bytes do not match - expected 36 : got 37
Gruß
orliKommentar
-
Hallo, leider komme ich gerade nicht so dazu mich um das PlugIn zu kümmern, wie ich es sollte. Ich bin von den vielen Nutzern mega positiv überrascht. Ich hoffe jetzt am kommenden langen Wochenende mich um die Bugs kümmern zu könnenKommentar
-
Kommentar
-
Hallo, ich habe irgendwie das gleiche Problem. Wie bekomme ich das gesamte DAtum mit <v> oder <v.u> mitgenommen? Als Erkennung habe ich, wie immer, ans Ende der Befehlserkennung \v geschrieben. DAmit bekomme ich aber, z. B. für heute nur 11.07000 als Wert. Was der richtige Beginn ist, nämlich der 11.07. Aber der Rest wird nicht mitgenommen.
Wer eine Idee wie das Formatiert werden muss?
Danke
-
Kommentar