Wetter Modul - YahooWeatherAPI

Begonnen von Hubi22, 03 März 2018, 20:50:37

Vorheriges Thema - Nächstes Thema

Hubi22

Moin,

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

Gruß,
Hubi

Hubi22

.... :-\ 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?

CoolTux

Ich kann Dir sagen daß ich keine Probleme habe. Bei mir kommen aktuelle Daten an.
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

mr-fuchs

Mein Dorf :) 665851 funktioniert auch nicht mehr !
Berlin 638242 geht aber

Werde mal OPENWEATHER testen

travelling-man

#4
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

CoolTux

Das Modul wertet dies als invalide Daten und verwirft sie.
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