FHEM Forum

FHEM - Hausautomations-Systeme => Unterstützende Dienste => Wettermodule => Thema gestartet von: Hubi22 am 03 März 2018, 20:50:37

Titel: Wetter Modul - YahooWeatherAPI
Beitrag von: Hubi22 am 03 März 2018, 20:50:37
Moin,

bei mir aktualisiert sich das Wetter nicht mehr. Ist das Modul irgendwie defekt ? Hat noch jmd. das Problem?

Gruß,
Hubi
Titel: Antw:Wetter Modul - YahooWeatherAPI
Beitrag von: Hubi22 am 04 März 2018, 10:03:29
.... :-\ schein ein Problem der API selbst zu sein... wenn man auf https://developer.yahoo.com/weather/#codes seine Daten eingibt, erhält man dieselben Werte. Als abwarten?! Oder hat jmd. eine Idee?
Titel: Antw:Wetter Modul - YahooWeatherAPI
Beitrag von: CoolTux am 04 März 2018, 10:12:50
Ich kann Dir sagen daß ich keine Probleme habe. Bei mir kommen aktuelle Daten an.
Titel: Antw:Wetter Modul - YahooWeatherAPI
Beitrag von: mr-fuchs am 08 März 2018, 12:16:30
Mein Dorf :) 665851 funktioniert auch nicht mehr !
Berlin 638242 geht aber

Werde mal OPENWEATHER testen
Titel: Antw:Wetter Modul - YahooWeatherAPI
Beitrag von: travelling-man am 08 März 2018, 18:15:14
Moin,

es liegt nicht am Modul.Der nachfolgende API Aufruf (wird so ähnlich vom Modul verwendet) liefert folgendes Ergebnis.


curl https://query.yahooapis.com/v1/public/yql -d q="select * from weather.forecast where woeid=653122" -d format=json | jq .



{
  "query": {
    "count": 1,
    "created": "2018-03-08T17:08:58Z",
    "lang": "en-US",
    "results": {
      "channel": {
        "units": {
          "distance": "mi",
          "pressure": "in",
          "speed": "mph",
          "temperature": "F"
        },
        "title": "Yahoo! Weather - Goldbeck, ST, DE",
        "link": "http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-653122/",
        "description": "Yahoo! Weather for Goldbeck, ST, DE",
        "language": "en-us",
        "lastBuildDate": "Thu, 08 Mar 2018 06:08 PM CET",
        "ttl": "60",
        "location": {
          "city": "Goldbeck",
          "country": "Germany",
          "region": " ST"
        },
        "wind": {
          "chill": "14",
          "direction": "55",
          "speed": "18"
        },
        "atmosphere": {
          "humidity": "60",
          "pressure": "1024.0",
          "rising": "0",
          "visibility": "16.1"
        },
        "astronomy": {
          "sunrise": "6:42 am",
          "sunset": "6:5 pm"
        },
        "image": {
          "title": "Yahoo! Weather",
          "width": "142",
          "height": "18",
          "link": "http://weather.yahoo.com",
          "url": "http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"
        },
        "item": {
          "title": "Conditions for Goldbeck, ST, DE at 05:00 PM CET",
          "lat": "52.717178",
          "long": "11.86022",
          "link": "http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-653122/",
          "pubDate": "Mon, 26 Feb 2018 05:00 PM CET",
          "condition": {
            "code": "34",
            "date": "Mon, 26 Feb 2018 05:00 PM CET",
            "temp": "25",
            "text": "Mostly Sunny"
          },
          "forecast": [
            {
              "code": "5",
              "date": "08 Mar 2018",
              "day": "Thu",
              "high": "49",
              "low": "32",
              "text": "Rain And Snow"
            },
            {
              "code": "12",
              "date": "09 Mar 2018",
              "day": "Fri",
              "high": "46",
              "low": "33",
              "text": "Rain"
            },
            {
              "code": "39",
              "date": "10 Mar 2018",
              "day": "Sat",
              "high": "45",
              "low": "33",
              "text": "Scattered Showers"
            },
            {
              "code": "28",
              "date": "11 Mar 2018",
              "day": "Sun",
              "high": "56",
              "low": "38",
              "text": "Mostly Cloudy"
            },
            {
              "code": "12",
              "date": "12 Mar 2018",
              "day": "Mon",
              "high": "54",
              "low": "38",
              "text": "Rain"
            },
            {
              "code": "28",
              "date": "13 Mar 2018",
              "day": "Tue",
              "high": "49",
              "low": "42",
              "text": "Mostly Cloudy"
            },
            {
              "code": "28",
              "date": "14 Mar 2018",
              "day": "Wed",
              "high": "51",
              "low": "36",
              "text": "Mostly Cloudy"
            },
            {
              "code": "28",
              "date": "15 Mar 2018",
              "day": "Thu",
              "high": "52",
              "low": "35",
              "text": "Mostly Cloudy"
            },
            {
              "code": "28",
              "date": "16 Mar 2018",
              "day": "Fri",
              "high": "50",
              "low": "39",
              "text": "Mostly Cloudy"
            },
            {
              "code": "28",
              "date": "17 Mar 2018",
              "day": "Sat",
              "high": "48",
              "low": "37",
              "text": "Mostly Cloudy"
            }
          ],
          "description": "<![CDATA[<img src=\"http://l.yimg.com/a/i/us/we/52/34.gif\"/>\n<BR />\n<b>Current Conditions:</b>\n<BR />Mostly Sunny\n<BR />\n<BR />\n<b>Forecast:</b>\n<BR /> Thu - Rain And Snow. High: 49Low: 32\n<BR /> Fri - Rain. High: 46Low: 33\n<BR /> Sat - Scattered Showers. High: 45Low: 33\n<BR /> Sun - Mostly Cloudy. High: 56Low: 38\n<BR /> Mon - Rain. High: 54Low: 38\n<BR />\n<BR />\n<a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-653122/\">Full Forecast at Yahoo! Weather</a>\n<BR />\n<BR />\n<BR />\n]]>",
          "guid": {
            "isPermaLink": "false"
          }
        }
      }
    }
  }
}


IM JSON Objekt kann man gut erkennen das dass pubDate schon ein paar Tage in der Vergangenheit liegt.

VG
Basti
Titel: Antw:Wetter Modul - YahooWeatherAPI
Beitrag von: CoolTux am 08 März 2018, 18:26:25
Das Modul wertet dies als invalide Daten und verwirft sie.