[59_WUup.pm] Wetterdaten zu Wunderground hochladen

Begonnen von mahowi, 23 Januar 2017, 18:52:39

Vorheriges Thema - Nächstes Thema

mahowi

Setz mal das list vom Gerät bitte in Code-Tags. Und am besten erklärst Du uns noch Dein Problem.  ;)
CUBe (MAX): HT, FK | CUBe (SlowRF): ESA2000WZ
JeeLink: LaCrosse | nanoCUL433: Smartwares SHS-51001-EU, EM1000GZ
ZME_UZB1: GreenWave PowerNode, Popp Thermostat | SIGNALDuino: HE877, X10 MS14A, Revolt NC-5462,  IT Steckdosen + PIR
tado° | Milight | HUE, Lightify | SmarterCoffee

mclore

ich bin newbie.
Kannst du mir erst mal kurz erklären was ich machen soll  :(
Das Problem: es lies super einfügen.
Leider bekomme ich keine Werte.
Im Logfile kommt folgende Meldung:

2017.05.24 08:04:36 3: wetter_eigheim: Read response to update didn't match any Reading

mahowi

Gib mal in der Befehlszeile oben in FHEM list wetter_eigheim ein und kopiere das Ergebnis in Code-Tags (die Raute oben im Editor) hierhin.

Wenn ich mir das so ansehe, was Du da geschrieben hast, sieht es so aus, als wolltest Du Daten von WU mit HTTPMOD auslesen. Dann bist Du hier im Thread falsch. Mein Modul macht genau das Umgekehrte, nämlich Daten von einer eigenen Wetterstation an WU senden.
CUBe (MAX): HT, FK | CUBe (SlowRF): ESA2000WZ
JeeLink: LaCrosse | nanoCUL433: Smartwares SHS-51001-EU, EM1000GZ
ZME_UZB1: GreenWave PowerNode, Popp Thermostat | SIGNALDuino: HE877, X10 MS14A, Revolt NC-5462,  IT Steckdosen + PIR
tado° | Milight | HUE, Lightify | SmarterCoffee

mclore

Genau,
ich möchte Daten einer WU über HTTPMOD auslesen.
Ich lege trotzdem die internals mit bei.

Internals:
   BUSY       0
   CHANGED
   DEF        http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=ISACHSEN314 30
   Interval   30
   LASTSEND   1495623017.01861
   MainURL    http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=ISACHSEN314
   ModuleVersion 3.3.11 - 8.5.2017
   NAME       wetter_eigheim
   NR         37
   STATE      ???
   TRIGGERTIME 1495623047.01581
   TRIGGERTIME_FMT 2017-05-24 12:50:47
   TYPE       HTTPMOD
   addr       http://api.wunderground.com:80
   buf
   code       200
   conn
   data
   displayurl http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=ISACHSEN314
   header
   host       api.wunderground.com
   httpheader HTTP/1.0 200 OK

Access-Control-Allow-Credentials: true

Access-Control-Allow-Origin: http://www.wunderground.com

Content-Type: text/xml

Server: Apache/2.2.15 (CentOS)

X-CreationTime: 0.007

Expires: Wed, 24 May 2017 10:50:17 GMT

Cache-Control: max-age=0, no-cache

Pragma: no-cache

Date: Wed, 24 May 2017 10:50:17 GMT

Content-Length: 2329

Connection: close

Set-Cookie: DT=1495623017:50575:ip-10-226-237-178; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com

Set-Cookie: Prefs=FAVS:1|WXSN:1|PWSOBS:1|WPHO:1|PHOT:1|RADC:0|RADALL:0|HIST0:NULL|GIFT:1|PHOTOTHUMBS:50|; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com
   httpversion 1.0
   hu_blocking 0
   hu_filecount 700
   hu_portSfx
   ignoreredirects 0
   loglevel   4
   path       /weatherstation/WXCurrentObXML.asp?ID=ISACHSEN314
   protocol   http
   redirects  0
   timeout    2
   url        http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=ISACHSEN314
   value      0
   QUEUE:
   Readings:
   Request:
     data
     header
     ignoreredirects 0
     retryCount 0
     type       update
     url        http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=ISACHSEN314
     value      0
   Sslargs:
Attributes:
   readingsName_date Datum
   readingsName_temperature Temperatur
   userattr   attr dewpointTemperature,humidity,preciptodaymetric, event-on-change-reading readingsName_cloudiness readingsName_date readingsName_dewpointTemperature readingsName_fog readingsName_heatindex readingsName_humidity readingsName_precip1hrmetric readingsName_preciptodaymetric readingsName_pressure readingsName_solarRadiation readingsName_solarUV readingsName_temperature readingsName_time readingsName_windChill readingsName_windDegrees readingsName_windDirection readingsName_windGust readingsName_windSpeed readingsRegex_cloudiness readingsRegex_date readingsRegex_dewpointTemperature readingsRegex_fog readingsRegex_heatindex readingsRegex_humidity readingsRegex_precip1hrmetric readingsRegex_preciptodaymetric readingsRegex_pressure readingsRegex_solarRadiation readingsRegex_solarUV readingsRegex_temperature readingsRegex_time readingsRegex_windChill readingsRegex_windDegrees readingsRegex_windDirection readingsRegex_windGust readingsRegex_windSpeed wetter_eigheim

mclore

kannst mir evtl den Link im Forum schicken?

rabehd

#35
Was hindert dich selbst zu suchen, mal zu lesen und "zu zuhören"? >:(
mahowi hat doch alles klar geschrieben, wenn du so weitermachst, dann wirst du wenig Hilfe bekommen.

Hier geht es um das Hochladen der Daten!
Du willst sie runterladen und GENAU DAFÜR gibt es das Modul WUNDERGROUND !

Also mal die Forumsuche benutzen und in die commandref sehen.
:(
Auch funktionierende Lösungen kann man hinterfragen.

mahowi

@mclore: Es gibt ein Modul Wunderground zum Download der Wetterdaten. Dazu gibt's auch einen Thread hier im Forum. Dazu brauchst Du einen API-Key. Wie man es per HTTPMOD macht steht u.a. im Wiki.

Und bitte benutze die Code-Tags! So kann man das nur schwer lesen, und es entstehen auch keine Smileys.
CUBe (MAX): HT, FK | CUBe (SlowRF): ESA2000WZ
JeeLink: LaCrosse | nanoCUL433: Smartwares SHS-51001-EU, EM1000GZ
ZME_UZB1: GreenWave PowerNode, Popp Thermostat | SIGNALDuino: HE877, X10 MS14A, Revolt NC-5462,  IT Steckdosen + PIR
tado° | Milight | HUE, Lightify | SmarterCoffee

scooty

Hallo mahowi,

vielleicht hast Du es bisher übersehen, ich hatte mir erlaubt, da meine Wetterstation im 48 Sekunden Takt sendet, einen Pull Request zur Integration des RapidFire-Modus (senden von Updates in bis zu 3sec Intervallen) zu erstellen.

Bin jetzt nicht so der Modul-Entwickler/Perl-Experte aber vielleicht ist die Integration des RapidFire-Modus auch für andere interessant und Du möchtest es prüfen und eventuell übernehmen?

Viele Grüße und danke für das Modul,
Andreas

Fhem auf Gigabyte Brix
CUL V3 HM / CUL V3 MAX / MaxCube aFW Homematic&MAX / ZWave.me ZME_UZB1 / SDuino 433 / Velux KLF200
Homematic / MAX / Logitech Hub / ZWave / Wifi LED / div. 433 Temperatursensoren / pywws WH10880 / IO Homecontrol

mahowi

Hallo Andreas,

sorry, bin nur noch nicht dazu gekommen, mir das anzusehen. Ich war im Urlaub und hatte auch danach wenig Zeit. Aber ich sehe mir das an und werde es sicher auch übernehmen.

Ist das mit den RapidFire-Updates über einen speziellen Server eigentlich noch aktuell? Ich meine, das würde mittlerweile auch über den Standard-Server funktionieren, aber da kann ich mich auch täuschen.

Gruß,
Manny
CUBe (MAX): HT, FK | CUBe (SlowRF): ESA2000WZ
JeeLink: LaCrosse | nanoCUL433: Smartwares SHS-51001-EU, EM1000GZ
ZME_UZB1: GreenWave PowerNode, Popp Thermostat | SIGNALDuino: HE877, X10 MS14A, Revolt NC-5462,  IT Steckdosen + PIR
tado° | Milight | HUE, Lightify | SmarterCoffee

scooty

Hallo Manny,

absolut verständlich, dass es auch andere Dinge gibt in Leben als FHEM.
Also kein Stress, schau es Dir in Ruhe an.

Ob die schnelleren Updates inzwischen auch vom "normalen" Server bei WU akzeptiert werden, kann ich leider auch nicht beantworten.

Vielen Dank,
Andreas
Fhem auf Gigabyte Brix
CUL V3 HM / CUL V3 MAX / MaxCube aFW Homematic&MAX / ZWave.me ZME_UZB1 / SDuino 433 / Velux KLF200
Homematic / MAX / Logitech Hub / ZWave / Wifi LED / div. 433 Temperatursensoren / pywws WH10880 / IO Homecontrol

mahowi

Hallo Andreas,

so, bin endlich mal dazu gekommen, Deinen Patch zu übernehmen.  :)

Funktioniert bestens. Vielen Dank!  :D
CUBe (MAX): HT, FK | CUBe (SlowRF): ESA2000WZ
JeeLink: LaCrosse | nanoCUL433: Smartwares SHS-51001-EU, EM1000GZ
ZME_UZB1: GreenWave PowerNode, Popp Thermostat | SIGNALDuino: HE877, X10 MS14A, Revolt NC-5462,  IT Steckdosen + PIR
tado° | Milight | HUE, Lightify | SmarterCoffee

mahowi

Ich habe die Änderungen jetzt auch im Master übernommen. Neu hinzu gekommen sind der RapidFire-Modus und die Umstellung auf "non-blocking".
CUBe (MAX): HT, FK | CUBe (SlowRF): ESA2000WZ
JeeLink: LaCrosse | nanoCUL433: Smartwares SHS-51001-EU, EM1000GZ
ZME_UZB1: GreenWave PowerNode, Popp Thermostat | SIGNALDuino: HE877, X10 MS14A, Revolt NC-5462,  IT Steckdosen + PIR
tado° | Milight | HUE, Lightify | SmarterCoffee

mahowi

Das Modul ist ab sofort im SVN verfügbar und wird ab morgen über das normal FHEM-Update verteilt.

Es kann also aus der Update-Liste mit
update delete https://raw.githubusercontent.com/mahowi/WUup/master/controls_wuup.txt
bzw.
update delete https://raw.githubusercontent.com/mahowi/WUup/devel/controls_wuup.txt
wieder entfernt werden.
CUBe (MAX): HT, FK | CUBe (SlowRF): ESA2000WZ
JeeLink: LaCrosse | nanoCUL433: Smartwares SHS-51001-EU, EM1000GZ
ZME_UZB1: GreenWave PowerNode, Popp Thermostat | SIGNALDuino: HE877, X10 MS14A, Revolt NC-5462,  IT Steckdosen + PIR
tado° | Milight | HUE, Lightify | SmarterCoffee

Aeroschmelz

#43
Hallo,

Upload klappt einwandfrei, allerdings bleiben die Statistik Daten bei Wunderground leer, muss ich da noch irgendetwas einstellen oder kommt das nach einiger Zeit von alleine?

Vielleicht noch eine andere Frage. Geht das Attribut event-on-change-reading um den Upoad so zu steuern?

Grüße
Marcus


mahowi

#44
Wenn Du Dir die Desktop-Version der Seite für Deine PWS ansiehst, sollte neben der Karte stehen, wann das letzte Mal was empfangen wurde:
ZitatCurrent Conditions Station reported 27 seconds ago
CUBe (MAX): HT, FK | CUBe (SlowRF): ESA2000WZ
JeeLink: LaCrosse | nanoCUL433: Smartwares SHS-51001-EU, EM1000GZ
ZME_UZB1: GreenWave PowerNode, Popp Thermostat | SIGNALDuino: HE877, X10 MS14A, Revolt NC-5462,  IT Steckdosen + PIR
tado° | Milight | HUE, Lightify | SmarterCoffee