Hauptmenü

Yahoo weather down?

Begonnen von ernst1024, 13 Januar 2016, 00:35:53

Vorheriges Thema - Nächstes Thema

LuckyDay

10 Tage forecast :)  jetzt muß ich mir ein breiteres Tablet kaufen  :D
fehlt nur noch in Celcius statt Fahrenheit

franky08

state
54°C 2016-03-26 15:12:50


54°C sorgt für ein ernstes Gesicht bei meiner Frau  ;)

VG
Frank
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

CoolTux

Na das wollen wir ja nicht. Ist ihr wohl zu heiß, wa.
So jetzt richtig und so wie es sein sollte

Datei 59_Weather.pm
Zeile 288

my $url = "https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20=%27". $location ."%27%20and%20u=%27". $units. "%27&format=xml&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys";


Datei 59_Twilight
Zeile 362

url        => "https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20=%27". $location ."%27%20and%20u=%27c%27&format=xml&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys",




Grüße
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

franky08

War gerade dabei mit (Tf -32) * 0.5555 die Geschichte °C tauglich zu machen  :)

VG
Frank
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

CoolTux

Oh man, Deine Frau muss Dir aber echt Druck machen  ;D
Keine Sorge, jetzt haben wir es ja auch Frauentauglich hinbekommen, meine hätte mich heute Abend ja auch komisch angeschaut.


Grüße


PS: der API Key ist/war nicht nötig. Aber danke  fürs zur Verfügung stellen.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

franky08

Sie stand gerade mit dem Besuch vor dem 22Zoll Wandtablet (WVC) und wollte das Wetter zeigen  ;D

VG
Frank
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

CoolTux

Lass mich raten, der Besuch wollte schon die Sonnencreme mit Lichtschutzfaktor 100 raus holen. Hihi
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

franky08

 8)  ;)

Warum das wieder public mäßig ohne key funktioniert, ist mir auf die Schnelle vorhin gar nicht aufgefallen.

VG
Frank
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

CoolTux

Naja die machen das nicht mehr als feed sondern als SQL Abfrage. Das aber noch Public. Mal schauen wie lange.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

franky08

Ein paar Readings fehlen da irgendwie. Siehe Screenshot:
Internals:
   DEF        12831575 3600 de
   INTERVAL   3600
   LANG       de
   LOCATION   12831575
   NAME       YahooWetter
   NR         184
   STATE      T: 11  H: 0  W:   P: 0
   TYPE       Weather
   UNITS      c
   Readings:
     2016-03-26 19:32:48   city            Eisleben, Germany
     2016-03-26 19:32:48   code            30
     2016-03-26 19:32:48   condition       teilweise wolkig
     2016-03-26 19:32:48   current_date_time 26 Mar 2016 06:00 PM CET" temp="11" text="Partly Cloudy
     2016-03-26 19:32:48   day_of_week     Sa
     2016-03-26 19:32:48   fc10_code       30
     2016-03-26 19:32:48   fc10_condition  teilweise wolkig
     2016-03-26 19:32:48   fc10_day_of_week Mo
     2016-03-26 19:32:48   fc10_high_c     12
     2016-03-26 19:32:48   fc10_icon       partly_cloudy
     2016-03-26 19:32:48   fc10_low_c      3
     2016-03-26 19:32:48   fc1_code        28
     2016-03-26 19:32:48   fc1_condition   überwiegend wolkig
     2016-03-26 19:32:48   fc1_day_of_week Sa
     2016-03-26 19:32:48   fc1_high_c      11
     2016-03-26 19:32:48   fc1_icon        mostlycloudy
     2016-03-26 19:32:48   fc1_low_c       5
     2016-03-26 19:32:48   fc2_code        28
     2016-03-26 19:32:48   fc2_condition   überwiegend wolkig
     2016-03-26 19:32:48   fc2_day_of_week So
     2016-03-26 19:32:48   fc2_high_c      12
     2016-03-26 19:32:48   fc2_icon        mostlycloudy
     2016-03-26 19:32:48   fc2_low_c       3
     2016-03-26 19:32:48   fc3_code        30
     2016-03-26 19:32:48   fc3_condition   teilweise wolkig
     2016-03-26 19:32:48   fc3_day_of_week Mo
     2016-03-26 19:32:48   fc3_high_c      13
     2016-03-26 19:32:48   fc3_icon        partly_cloudy
     2016-03-26 19:32:48   fc3_low_c       3
     2016-03-26 19:32:48   fc4_code        30
     2016-03-26 19:32:48   fc4_condition   teilweise wolkig
     2016-03-26 19:32:48   fc4_day_of_week Di
     2016-03-26 19:32:48   fc4_high_c      10
     2016-03-26 19:32:48   fc4_icon        partly_cloudy
     2016-03-26 19:32:48   fc4_low_c       6
     2016-03-26 19:32:48   fc5_code        28
     2016-03-26 19:32:48   fc5_condition   überwiegend wolkig
     2016-03-26 19:32:48   fc5_day_of_week Mi
     2016-03-26 19:32:48   fc5_high_c      11
     2016-03-26 19:32:48   fc5_icon        mostlycloudy
     2016-03-26 19:32:48   fc5_low_c       5
     2016-03-26 19:32:48   fc6_code        26
     2016-03-26 19:32:48   fc6_condition   wolkig
     2016-03-26 19:32:48   fc6_day_of_week Do
     2016-03-26 19:32:48   fc6_high_c      11
     2016-03-26 19:32:48   fc6_icon        cloudy
     2016-03-26 19:32:48   fc6_low_c       5
     2016-03-26 19:32:48   fc7_code        28
     2016-03-26 19:32:48   fc7_condition   überwiegend wolkig
     2016-03-26 19:32:48   fc7_day_of_week Fr
     2016-03-26 19:32:48   fc7_high_c      10
     2016-03-26 19:32:48   fc7_icon        mostlycloudy
     2016-03-26 19:32:48   fc7_low_c       5
     2016-03-26 19:32:48   fc8_code        28
     2016-03-26 19:32:48   fc8_condition   überwiegend wolkig
     2016-03-26 19:32:48   fc8_day_of_week Sa
     2016-03-26 19:32:48   fc8_high_c      9
     2016-03-26 19:32:48   fc8_icon        mostlycloudy
     2016-03-26 19:32:48   fc8_low_c       4
     2016-03-26 19:32:48   fc9_code        30
     2016-03-26 19:32:48   fc9_condition   teilweise wolkig
     2016-03-26 19:32:48   fc9_day_of_week So
     2016-03-26 19:32:48   fc9_high_c      10
     2016-03-26 19:32:48   fc9_icon        partly_cloudy
     2016-03-26 19:32:48   fc9_low_c       3
     2016-03-26 11:09:34   humidity        0
     2016-03-26 19:32:48   icon            partly_cloudy
     2016-03-26 11:09:34   pressure        0
     2016-03-26 19:32:48   pubDate         Sat, 26 Mar 2016 06:00 PM CET
     2016-03-26 19:32:48   pubDateComment  okay
     2016-03-26 19:32:48   pubDateRemote   Sat, 26 Mar 2016 06:00 PM CET
     2016-03-26 19:32:48   pubDateTs       1458968400
     2016-03-26 19:32:48   state           T: 11  H: 0  W:   P: 0
     2016-03-26 19:32:48   temp_c          11
     2016-03-26 19:32:48   temp_f          52
     2016-03-26 19:32:48   temperature     11
     2016-03-26 19:32:48   validity        up-to-date
     2016-03-26 19:32:48   visibility
     2016-03-26 19:32:48   wind
     2016-03-26 19:32:48   wind_speed
   Fhem:
     interfaces temperature;humidity;wind
Attributes:
   DbLogExclude .*
   room       Wetter


VG
Frank
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

cotecmania

Nachdem ich die URL von oben eingebaut habe incl. Reload :

Nun steht im fc1 das Wetter von morgen ! Da muesste doch der heutige Tag (Sonntag) drin sein, oder ?

2016-03-27 10:53:35   fc1_code        28
     2016-03-27 10:53:35   fc1_condition   überwiegend wolkig
     2016-03-27 10:53:35   fc1_day_of_week Mo
     2016-03-27 10:53:35   fc1_high_c      11
     2016-03-27 10:53:35   fc1_icon        mostlycloudy
     2016-03-27 10:53:35   fc1_low_c       0
FHEM auf RaspberryPI B (buster)
2xCUL868 für MAX/Slow_RF, HM-LAN, JeeLink
MAX!/HM-Thermostate, FS20/HM-Rolladenschalter, FS20-EM, LevelJet-Ölstandsmessung, PCA301, IT, KM271, IPCAM, FireTAB10 FTUI

Vize

#56
Moin,

kann ich so bestätigen.

fc1-Sachen beziehen sich bei mir auch auf morgen, nicht auf heute...

Bei franky08 scheint es aber zu passen !?!

EDIT: Allerdings steht unter pubDateComment bei mir auch "could not parse pubDate Sun, 27 Mar 2016 11:00 AM CEST"...

Gruß
Andreas

frank

in der xml-antwort von yahoo gibt es keine forecast daten für den aktuellen tag.
<pubDate>Sun, 27 Mar 2016 11:00 AM CEST</pubDate>
<yweather:condition code="23" date="Sun, 27 Mar 2016 11:00 AM CEST" temp="11" text="Breezy"/>
<yweather:forecast code="30" date="28 Mar 2016" day="Mon" high="13" low="4" text="Partly Cloudy"/>
<yweather:forecast code="12" date="29 Mar 2016" day="Tue" high="9" low="5" text="Rain"/>
<yweather:forecast code="39" date="30 Mar 2016" day="Wed" high="11" low="4" text="Scattered Showers"/>
.
.
.


oder es gibt einen bug bei yahoo, sodass alle forecast daten "falschen" tagen zugeordnet sind.
FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html

moonsorrox

bei mir ebenfalls steht heute "Montag" is doch aber erst morgen  :D ;)
Intel-NUC i5: FHEM-Server 6.1 :: Perl v5.18.2

Homematic: HM-USB-CFG2,HM-CFG-LAN Adapter, HM-LC-BL1-FM, HM-LC-Sw1PBU-FM, HM-LC-Sw1-PI-2, HM-WDS10-TH-O, HM-CC-TC, HM-LC-SW2-FM

franky08

Hab ich CoolTux auch schon gefragt, hatte ihm meinen Developer key für die Yahoo API geschickt und Boris arbeitet da wohl dran.

VG
Frank
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1