Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Adapter: Weatherunderground 24h Prognose

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Adapter: Weatherunderground 24h Prognose

    This topic has been deleted. Only users with topic management privileges can see it.
    • apollon77
      apollon77 last edited by

      Ja, habs auch.

      Naja mal schauen. Im zweifel hab ich mir gerade angesehen was die Webseite da so tut … die machen alle paar Sekunden HTTP-Calls mit der Station-ID drin.

      Im zweifel bauen wir den Adapter einfach um das er das macht 🙂

      Beispiele (STATION_ID ersetzen durch die Station-ID):

      curl 'https://stationdata.wunderground.com/cgi-bin/stationlookup?station=STATION_ID&units=metric&v=2.0&format=json&callback=jQuery17209201132126919895_1541168466663&_=1541168613069' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.9,de;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36' -H 'Accept: */*' -H 'Referer: https://www.wunderground.com/personal-weather-station/dashboard?ID=STATION_ID' -H 'Connection: keep-alive' --compressed
      
      

      bzw

      curl 'https://stationdata.wunderground.com/cgi-bin/stationdata?maxage=3600&format=json&maxstations=100&station=STATION_ID' -H 'Origin: https://www.wunderground.com' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.9,de;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36' -H 'Accept: */*' -H 'Referer: https://www.wunderground.com/personal-weather-station/dashboard?ID=STATION_ID' -H 'Connection: keep-alive' --compressed
      

      Und Forecast gibts auch …

      1 Reply Last reply Reply Quote 0
      • J
        joelli last edited by

        Hallo zusammen. Hab vor ein paar Tagen von Victoria Gardner eine Email bekommen, dass man wieder kostenlose API Keys für die eigene PWS bekommt.

        Zuerst neu anmelden, dann:
        Cut and paste this URL into your browser: https://www.wunderground.com/member/api-keys

        Die Nomenklatur hat sich aber geändert. Der aktuelle Adapter bzw die Instanz kommt mit dem neuen Key nicht klar. Prinzipiell funktioniert der API jedoch. Siehe hier:

        Next, once you have your new key, you can use it in the NEW (not old!) API’s commands. The documentation for those commands is here: https://docs.google.com/document/d/1eKCnKXI9xnoMGRRzOL1xPCBihNV2rOet08qpE_gArAY/edit

        Neuer Aufruf geht so:
        https://api.weather.com/v2/pws/observations/current?stationId=ITH12345&format=json&units=e&apiKey=2c44123456789049844f580123456789

        Ergibt folgende Daten der PWS:

        {"observations":[{"stationID":"ITH12345","obsTimeUtc":"2019-03-01T21:56:05Z","obsTimeLocal":"2019-03-01 22:56:05","neighborhood":"Name der PWS","softwareType":"EasyWeatherV1.2.3","country":"DL","solarRadiation":0.0,"lon":10.000,"realtimeFrequency":null,"epoch":1551477365,"lat":50.000,"uv":0.0,"winddir":322,"humidity":90,"qcStatus":1,"imperial":{"temp":42,"heatIndex":42,"dewpt":40,"windChill":40,"windSpeed":4,"windGust":5,"pressure":29.96,"precipRate":0.00,"precipTotal":0.13,"elev":999}}]}

        Kann der Adapter an die neuen Gegebenheiten angepasst werden?

        1 Reply Last reply Reply Quote 0
        • D
          derrapf last edited by

          Hallo alle
          Ich habe seit neuestem in meinen Logs folgenden Fehler

          weatherunderground.0	2019-03-06 00:12:03.450	error	Error: this key is not valid due to exceeding rate plan
          weatherunderground.0	2019-03-06 00:12:02.306	debug	calling WU: http://api.wunderground.com/api/xx12xx3x456x7x89/forecast/hourly/conditions/lang:DL/q/pws:IMULPE11.json
          weatherunderground.0	2019-03-06 00:12:02.306	debug	Use API Key xx12xx3x456x7x89
          weatherunderground.0	2019-03-06 00:12:02.249	debug	init forecast objects
          weatherunderground.0	2019-03-06 00:12:02.242	debug	init conditions objects
          weatherunderground.0	2019-03-06 00:12:02.233	debug	on ready: DL true true true true
          weatherunderground.0	2019-03-06 00:12:02.224	info	starting. Version 2.0.4 in /opt/iobroker/node_modules/iobroker.weatherunderground, node: v8.15.0
          weatherunderground.0	2019-03-06 00:12:02.062	info	States connected to redis: 127.0.0.1:6379
          weatherunderground.0	2019-03-06 00:12:02.053	debug	statesDB connected
          weatherunderground.0	2019-03-06 00:12:01.999	debug	objectDB connected
          

          Wenn ich die Einstellung hier richtig interpretiere, dann wird der Adapter aber nur einmal pro Stunde zur 12ten Minute aufgerufen. Also dürfte eigentlich die erlaubte Häufigkeit nicht überschritten werden.
          Weiss jemand was dann der Grund ist für die Meldung "Error: this key is not valid due to exceeding rate plan" ?
          Gruss Ralf

          Negalein 1 Reply Last reply Reply Quote 0
          • Negalein
            Negalein Global Moderator @derrapf last edited by

            @derrapf sagte in Adapter: Weatherunderground 24h Prognose:

            Weiss jemand was dann der Grund ist für die Meldung "Error: this key is not valid due to exceeding rate plan" ?

            Weatherunderground ist nicht mehr gratis!
            Deshalb wird dein Key nicht mehr angenommen.

            D 1 Reply Last reply Reply Quote 0
            • D
              derrapf @Negalein last edited by derrapf

              @Negalein sagte in Adapter: Weatherunderground 24h Prognose:

              Weatherunderground ist nicht mehr gratis!

              Echt jetzt? Gibt es Alternativen?
              Ich hab jetzt mich mal dort eingeloggt:
              Hier sieht es tatsächlich so aus, als ob da was disabled worden wäre:
              16e62ca6-3325-42f8-a3c8-16f18b6c85c3-grafik.png
              Was heisst "manually disabled"? Dass ich das gemacht hätte, oder waren die das? Ich kann mich jetzt nicht daran erinnern, dass ich das gewesen wäre...
              Gruss Ralf

              Negalein 1 Reply Last reply Reply Quote 0
              • Negalein
                Negalein Global Moderator @derrapf last edited by

                @derrapf sagte in Adapter: Weatherunderground 24h Prognose:

                Was heisst manually disabled? Dass ich das gemacht hätte oder waren die das? Ich kann mich jetzt nicht daran erinnern dass ich was manuell diabled hätte...

                Schau 3 Beiträge rauf. Da hat @joelli was geschrieben.

                1 Reply Last reply Reply Quote 0
                • D
                  derrapf last edited by

                  Ah. Ok. Schade. Dann probiere ich jetzt mal "dasWetter"
                  Gruss Ralf

                  1 Reply Last reply Reply Quote 0
                  • J
                    joelli last edited by

                    Ich nutze inzwischen den neuen, kostenlosen wunderground API und hole mir alle 3 Minuten mittels Parser Adapter die aktuellen Datenpunkte meiner PWS.
                    Ich finde das ist ein akzeptabler Aufwand und eine gute Alternative zum Weather Underground Adapter. Ein Umstieg auf andere Dienste hab ich deshalb nicht gemacht, weil meine PWS ( eine Ventus W830) sehr begrenzte Möglichkeiten bietet.
                    Neben den aktuellen Daten kann man den Forecast theoretisch genauso parsen. Der API Aufruf für den Forecast im Browser geht erfolgreich. Hab es allerdings noch nicht in den Parser programmiert.

                    D 1 Reply Last reply Reply Quote 0
                    • D
                      derrapf @joelli last edited by derrapf

                      @joelli
                      Habe gestern dasWetter installiert. War einfach und hat sofort funktioniert. Für mich ist die Funktionalität ausreichend. Habe den weatherunderground deinstalliert.
                      Gruss Ralf

                      1 Reply Last reply Reply Quote 0
                      • apollon77
                        apollon77 last edited by

                        FYIhttps://forum.iobroker.net/topic/21154/weatherunderground-reborn-3-0-0-alpha

                        1 Reply Last reply Reply Quote 0
                        • apollon77
                          apollon77 last edited by

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • D
                            derrapf last edited by

                            @apollon77 sagte in Adapter: Weatherunderground 24h Prognose:

                            https://forum.iobroker.net/topic/21154/weatherunderground-reborn-3-0-0-alpha

                            Danke!

                            1 Reply Last reply Reply Quote 0
                            • P
                              podex last edited by

                              I like this adapter, but I have a problem with the icons in my VIS.

                              There is a GIF available with URL https://icons.wxug.com/i/c/c/chanceflurries.gif but the VIS asks for a different URL via the ObjectID weatherunderground.0.forecast.0d.iconURL: https://icons.wxug.com/i/c/c/30.svg. What do I have to change where to get the name instead of the number?

                              apollon77 1 Reply Last reply Reply Quote 0
                              • apollon77
                                apollon77 @podex last edited by

                                @podex The images are taken over from the API response ... so very strange because it seems that the defined new images but themself do not stick to how they out images on their servers 😞

                                Crete a GitHub Issue in the adapter repo and add as much infos as avaliable (maybe try to check other imcon setst or such)

                                H 1 Reply Last reply Reply Quote 0
                                • H
                                  HomeUser @apollon77 last edited by HomeUser

                                  Hi,
                                  sometimes some of the objects contain "null".

                                  Example of today:
                                  weatherunderground.0.forecast.0d.tempMax (null)°C

                                  Does anybody have an idea why this happens and how to fix/avoid it?
                                  In the log everything look normal.
                                  My version is 3.4.2

                                  apollon77 1 Reply Last reply Reply Quote 0
                                  • apollon77
                                    apollon77 @HomeUser last edited by

                                    @homeuser sometimes on the evening wu do not provide a 0d max temp or such because the day is nearly over I assume. Enable debug log and you see which data come back.

                                    1 Reply Last reply Reply Quote 0
                                    • W
                                      Waldmensch last edited by

                                      Hallo, gibt es ein Git zum Adapter?
                                      Ich hätte einen Pullrequest oder halt Feature request. Die API liefert im 5 Tages Forecast den Wert cloudCover den Bewölkungsgrad in Prozent angibt. Ich würde den gern für eine rudimentäre PV Ertragsvorhersage nutzen (Wasserwärmepumpe soll sich zum billigen Tibber Tarif einschalten, wenn morgen 90% Wolken sind und die PV nichts bringt)

                                      Ich habe das bei mir lokal im Adapter Code schon zugefügt, aber andere haben ja vielleicht auch interesse

                                      Pfad:
                                      /opt/iobroker/node_modules/iobroker.weatherunderground/main.js:

                                      bei Zeile 1299 einfügen

                                                          // cloudCover
                                                          await adapter.setStateAsync(`forecast.${i}d.cloudCover`, {
                                                              ack: true,
                                                              val: body.daily_forecast.daypart[0].cloudCover[i * 2]
                                                          });
                                      

                                      bei Zeile 2419 einfügen (Datenpunkt Imperial)

                                                      // cloudCover
                                                      await adapter.setObjectNotExistsAsync(id + 'cloudCover', {
                                                          type: 'state',
                                                          common: {
                                                              name: 'cloudCover day forecast',
                                                              role: 'value.cloudcover.day.forecast.' + p,
                                                              unit: '%',
                                                              type: 'number',
                                                              read: true,
                                                              write: false
                                                          },
                                                          native: {id: id + 'cloudCover'}
                                                      });
                                      

                                      bei original Zeile 2555 einfügen (Datenpunkt Metric):

                                                      // cloudCover
                                                      await adapter.setObjectNotExistsAsync(id + 'cloudCover', {
                                                          type: 'state',
                                                          common: {
                                                              name: 'cloudCover day forecast',
                                                              role: 'value.cloudcover.day.forecast.' + p,
                                                              unit: '%',
                                                              type: 'number',
                                                              read: true,
                                                              write: false
                                                          },
                                                          native: {id: id + 'cloudCover'}
                                                      });
                                      
                                      apollon77 1 Reply Last reply Reply Quote 0
                                      • apollon77
                                        apollon77 @Waldmensch last edited by

                                        @waldmensch sagte in Adapter: Weatherunderground 24h Prognose:

                                        Hallo, gibt es ein Git zum Adapter?

                                        Na klar https://github.com/iobroker-community-adapters/ioBroker.weatherunderground

                                        W 1 Reply Last reply Reply Quote 0
                                        • W
                                          Waldmensch @apollon77 last edited by

                                          @apollon77 Super! Pull request ist gemacht https://github.com/iobroker-community-adapters/ioBroker.weatherunderground/pull/178

                                          Waldmensch1 created this issue in iobroker-community-adapters/ioBroker.weatherunderground

                                          closed Add cloudCover datapoint in 4 days forecast #178

                                          apollon77 1 Reply Last reply Reply Quote 0
                                          • apollon77
                                            apollon77 @Waldmensch last edited by

                                            @waldmensch Danke, checke die Tage

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            706
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            41
                                            166
                                            40273
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo