Windy Community
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    • Register
    • Login

    Using the new PWS API v2 - but nothing shows up on Windy

    Scheduled Pinned Locked Moved Windy Stations
    34 Posts 6 Posters 1.4k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RolandozR Offline
      Rolandoz | Premium
      last edited by Rolandoz

      Hi guys,

      I have yesterday reprogrammed my small C# program, that reads data from Davis WeatherLink API (cloud service) so it now reports to Windy using the new API v2 as shown in the attachment.

      a7460333-81c4-49bf-b68a-61290c843a09-image.png

      I am including a few URLs as I have tried different things like time=now, ts=(integer in seconds since 1970), pressure in Pascal vs pressure in inches via baromin. Nothing works. Nothing shows up. It has even been running all night without anything showing up. Stations remain "offline" in the My Stations overview.

      I started using my old weather station profiles I had for years. As nothing happened, which worked well with API v1 for 1-2 years, I removed all my 3 stations and recreated them. I got new IDs and new passwords. You dont see the passwords as they are sent via an Authentication Bearer header in the https-call.

      Do I have contact to anyone at Windy that can check my calls and see WHY HTTP says 200 OK, but nothing happens? My updates are sent every 5 minutes on the CET time shown in the log below... My IP address is 87.63.144.150.

      I would love to see my 3 stations online again and one of them including also airquality information. :-)

      Log file using Pascal as pressure units:

      2026-01-16 08:46:01 : Reading data from WeatherLink station 'Hillerød Vejr'
      2026-01-16 08:46:02 : Windy URL: https://stations.windy.com/api/v2/observation/update?id=YZjgOxm&time=now&temp=3.7&dewpoint=3.3&humidity=97&wind=3.1&gust=5.8&winddir=161&pressure=101209&precip=0.0&uv=0.0&solarradiation=0&pm2p5=44.6&pm10=58.1
      2026-01-16 08:46:02 : Windy Success: YZjgOxm
      2026-01-16 08:46:04 : Reading data from WeatherLink station 'Helligsø Drag'
      2026-01-16 08:46:04 : Windy URL: https://stations.windy.com/api/v2/observation/update?id=FDbhSie&time=now&temp=4.6&dewpoint=4.3&humidity=98&wind=4.2&gust=6.7&winddir=136&pressure=100373&precip=2.6&uv=0.0&solarradiation=0
      2026-01-16 08:46:04 : Windy Success: FDbhSie
      2026-01-16 08:46:06 : Reading data from WeatherLink station 'Paradise Residence'
      2026-01-16 08:46:06 : Windy URL: https://stations.windy.com/api/v2/observation/update?id=EWtLHK4&time=now&temp=11.7&dewpoint=5.3&humidity=65&wind=0.0&gust=0.0&winddir=0&pressure=102320&precip=0.0&uv=1.2&solarradiation=385
      2026-01-16 08:46:06 : Windy Success: EWtLHK4

      Logfile using inches as pressure units:

      2026-01-16 09:01:01 : Reading data from WeatherLink station 'Hillerød Vejr'
      2026-01-16 09:01:03 : Windy URL: https://stations.windy.com/api/v2/observation/update?id=YZjgOxm&time=now&temp=3.8&dewpoint=3.4&humidity=97&wind=3.2&gust=7.2&winddir=162&baremin=29.89&precip=0.0&uv=0.0&solarradiation=9&pm2p5=43.4&pm10=57.8
      2026-01-16 09:01:03 : Windy Success: YZjgOxm
      2026-01-16 09:01:05 : Reading data from WeatherLink station 'Helligsø Drag'
      2026-01-16 09:01:05 : Windy URL: https://stations.windy.com/api/v2/observation/update?id=FDbhSie&time=now&temp=4.5&dewpoint=4.2&humidity=98&wind=2.9&gust=6.3&winddir=133&baremin=29.65&precip=2.6&uv=0.0&solarradiation=0
      2026-01-16 09:01:05 : Windy Success: FDbhSie
      2026-01-16 09:01:07 : Reading data from WeatherLink station 'Paradise Residence'
      2026-01-16 09:01:07 : Windy URL: https://stations.windy.com/api/v2/observation/update?id=EWtLHK4&time=now&temp=12.7&dewpoint=5.6&humidity=62&wind=0.1&gust=0.9&winddir=28&baremin=30.22&precip=0.0&uv=1.2&solarradiation=206
      2026-01-16 09:01:07 : Windy Success: EWtLHK4

      SutyS Oleksandr HoncharovO 2 Replies Last reply Reply Quote 0
      • SutyS Offline
        Suty Windy Staff @Rolandoz
        last edited by

        @Rolandoz Hello, I forwarded your post to colleagues and they already started with investigation. We will inform you about any progress.

        1 Reply Last reply Reply Quote 1
        • Oleksandr HoncharovO Offline
          Oleksandr Honcharov Windy Staff @Rolandoz
          last edited by

          @Rolandoz Hello, thanks for the report. We've fixed an underlying issue and new observations are already visible on Windy. Unfortunately, observations from the passed night won't be seen.

          RolandozR 4 Replies Last reply Reply Quote 0
          • RolandozR Offline
            Rolandoz @Oleksandr Honcharov | Premium
            last edited by

            @Oleksandr-Honcharov Hi Oleksandr and Suty. Thanks for you fast response. I will now switch back to Pascal pressure unit and include my own timestamp (data from WeatherLink are a few minutes old). I am eager to see how it presents. :-)

            I will write you here again if I run into other issues. Have a great day.

            BR,
            Roland from Denmark

            1 Reply Last reply Reply Quote 1
            • RolandozR Offline
              Rolandoz @Oleksandr Honcharov | Premium
              last edited by

              @Oleksandr-Honcharov Hi again. I have to tell you that I still don't see my stations on the public website. I am including two screen dumps. First is the overview of my stations. All say "Offline". Yesterday, with the old profiles and before I changed to API v2, they all said "Online".

              Next is that I look in Windy at my home location for stations. I sort on distance. Normally I see "Hillerød Vejr" with a distance of "0 km". But as you can see it is not shown in the overview.

              So what can I do now or do you still have things to fix at the server side? :-)

              Overview of My Stations on https://stations.windy.com when I am logged in:

              4029a770-8c16-4dec-a16f-33916a31d19f-image.png

              My station at home is not shown in the local area. WMO 06188 is the official station from Danish Meteological Institute (DMI).

              8b31876e-e45e-4748-a90b-009172c95d0d-image.png

              1 Reply Last reply Reply Quote 1
              • RolandozR Offline
                Rolandoz @Oleksandr Honcharov | Premium
                last edited by

                @Oleksandr-Honcharov Hi Oleksandr. I have done another test. I tried with a direct URL like this:

                https://www.windy.com/station/pws-YZjgOxm

                that returned the image you can see below. So it shows that data IS coming to Windy, just as you said. We can also see the missing data from the night, which is not so important. But right now status in My Stations is offline and search for the station is missing. I will now let it stay like this for some time. Let us see what happens over the weekend.

                01c4f032-d4c4-4e61-9671-6ef225ad7308-image.png

                Will solar radiation and air quaility values show up later fx. when the "buffer" on Windy is exceeded? Right now I only see UV in the left side. I want to understand how solar radiation and PM values are presented. :-)

                Oleksandr HoncharovO 1 Reply Last reply Reply Quote 1
                • Oleksandr HoncharovO Offline
                  Oleksandr Honcharov Windy Staff @Rolandoz
                  last edited by Oleksandr Honcharov

                  @Rolandoz Thank you very much for your reports. You are an early adopter of a new API so your input is very valuable. We've fixed further bugs you mentioned.

                  1. Your stations are now visible on map
                  2. They're visible via "Nearby stations" view
                  3. Station status on https://stations.windy.com/ should be correct

                  However, for certain reasons we're unable to display solar radiation, uv nor any other new types collected from PWS. But don't worry, we already see your reported measurements in our database. Our team is working hard and in some time those will be visible on Windy too.

                  RolandozR 1 Reply Last reply Reply Quote 0
                  • RolandozR Offline
                    Rolandoz @Oleksandr Honcharov | Premium
                    last edited by

                    @Oleksandr-Honcharov That is great news. I also see it now when searching for nearby stations and I see Online in my station overview.

                    Regarding UV it has been working for long time. You can see it here from my station in Antalya as UV is much higher there.

                    f6af3b40-de33-4d77-b4dc-a5153e600405-image.png

                    But looking forward to see solar radiation on the map, too.

                    Final "issue". I dont see my station in "Air quality stations". There is a station named "Hillerod", but that is not my station. It has different elevation and location (lat/long) than my station. Do you know when my PMS will show up in the the overview?

                    a44ba468-52f2-4eb0-a68c-d1cd38b0148c-image.png

                    Oleksandr HoncharovO 1 Reply Last reply Reply Quote 0
                    • Oleksandr HoncharovO Offline
                      Oleksandr Honcharov Windy Staff @Rolandoz
                      last edited by

                      @Rolandoz Our PWS API doesn't support air quality parameters. I see you send some airq observations with your query parameters but unfortunately we don't accept them.

                      RolandozR 2 Replies Last reply Reply Quote 1
                      • RolandozR Offline
                        Rolandoz @Oleksandr Honcharov | Premium
                        last edited by Rolandoz

                        @Oleksandr-Honcharov Thanks for correcting my mistake about PM parameters. I have removed it from my sending of data to Windy.

                        Oleksandr HoncharovO 1 Reply Last reply Reply Quote 0
                        • RolandozR Offline
                          Rolandoz | Premium
                          last edited by Rolandoz

                          @oleksandr-honcharov

                          This information is regarding sending precipitation information via the new API v2.

                          The old API required precipitation to be the amount of rain within the last 15 minutes. The new API requires the value to cover the number of millimeters since midnight. I follow this new rule via the precip-parameter.

                          As seen from the graph (left - API v1) and right (API v2) something does not work correctly. We had 2.6 mm today, but that was in the night. Now it stays as a horizontal line where under v1 it showed more like a hill.

                          Can you confirm that you want the rain since midnight or is it a display or documentation error?

                          65c1eeef-8925-48cb-a219-60c8923d64c2-image.png

                          This is information in the API v2 documentation:

                          5a6664bc-d562-406e-bd3e-06727d1c7096-image.png

                          as the rain was many hours ago I report the same value again and again until Midnight, where it is zeroed. It seems like Windy adds the value to the total accumulated rain of the day all time... Where does 27.9 mm acc 24 hours come from? Not from my station. :-)

                          47179b09-8e5a-47cc-8cee-51c8285be4b6-image.png

                          For the moment being, since Sunday 18th 08:50 I have been replacing the "precip" parameter with "hourlyrainin", which is more close to the way it is done in API v1. I will watch if that fixes the error in the Windy display.

                          marekdM 1 Reply Last reply Reply Quote 0
                          • RolandozR Offline
                            Rolandoz @Oleksandr Honcharov | Premium
                            last edited by

                            This post is deleted!
                            1 Reply Last reply Reply Quote 0
                            • Oleksandr HoncharovO Offline
                              Oleksandr Honcharov Windy Staff @Rolandoz
                              last edited by

                              @Rolandoz Hello, I've now verified the station and measurements seem to be fine. Did you change your request?

                              1 Reply Last reply Reply Quote 0
                              • marekdM Offline
                                marekd Windy Staff @Rolandoz
                                last edited by

                                @Rolandoz Thanks for pointing out the precipitation issue. We had an error in the documentation. All three parameters are meant to be for the last 1 hour. The documentation contained outdated information from an earlier stage of development. Sorry for the confusion, and thank you for your report. It is now fixed on the website.

                                If you notice anything else, please let us know. Your feedback is very helpful and helps us significantly with fine-tuning the new API.

                                RolandozR marekdM 3 Replies Last reply Reply Quote 1
                                • RolandozR Offline
                                  Rolandoz @marekd | Premium
                                  last edited by Rolandoz

                                  @marekd @oleksandr-honcharov Hi guys, I have looked into your updated documentation and I can see that all three "precip" parameters now work with "the last 60 minutes" and will accept millimeters or inches. Is it correct that you prefer millimeters over inches if we talk about an order of presedence ?

                                  I am ready to go back and report in millimeters. I fetch data from Davis WeatherLink API and I can get any of these values: since midnight, last hour and both in mm or inches:

                                  • rainfall_daily_in
                                  • rainfall_daily_mm
                                  • rainfall_last_60_min_in (should I use this?)
                                  • rainfall_last_60_min_mm (or this?)

                                  So do you prefer mm or inches? I dont feel I should convert it one way and then you will convert it back. Then I will prefer to send you the value that fits Windy best with less convertion and rounding errors. :-)

                                  My stations rain tipping device measures in mm and in steps of 0,2 mm.

                                  1 Reply Last reply Reply Quote 0
                                  • RolandozR Offline
                                    Rolandoz @marekd | Premium
                                    last edited by

                                    @marekd @oleksandr-honcharov I have a few comments to the display of the reported data:

                                    d3580097-218f-441e-a75a-b3f24b9738ae-image.png

                                    As you see next to the picture showing the location of the station, I have placed a yellow arrow. It is the name of the station. Could we also have the name just below "About this station"?

                                    The marked text in yellow: What does reporting time and avg. delay mean in this context?

                                    I report every 5 minutes and the reporting time is withing 1 minute of the timestamp of the data:

                                    2026-01-21 21:21:06 : Windy URL: https://stations.windy.com/api/v2/observation/update?id=YZjgOxm&ts=1769026822&temp=-0.1&dewpoint=-1.9&humidity=88&wind=3.0&gust=6.7&winddir=66&pressure=101084&precip=0.0&uv=0.0&solarradiation=0&softwaretype=WLL2Windy_3.0.2.406

                                    2026-01-21 21:21:06 : Windy Success: YZjgOxm - Data timestamp: 21-01-2026 21:20:22

                                    As you can see from the log, I report to Windy at 21:21:06 and the data has timestamp 21:20:22, so it is about 44 seconds old data.

                                    I need to understand how 5 minute intervals and delay of data is as shown but it seems Windy tells other information?

                                    WeatherMan10W 1 Reply Last reply Reply Quote 0
                                    • WeatherMan10W Offline
                                      WeatherMan10 @Rolandoz | Premium
                                      last edited by

                                      @Rolandoz said in Using the new PWS API v2 - but nothing shows up on Windy:

                                      2026-01-21 21:21:06 : Windy Success: YZjgOxm - Data timestamp: 21-01-2026 21:20:22

                                      As you can see from the log, I report to Windy at 21:21:06 and the data has timestamp 21:20:22, so it is about 44 seconds old data.

                                      I need to understand how 5 minute intervals and delay of data is as shown but it seems Windy tells other information?

                                      Not a answer per say. But my PWS only updated that highlighted bit once the full 10 days of data was there, Then it changed to Reporting: 5m

                                      How far back does the data go?

                                      RolandozR 1 Reply Last reply Reply Quote 0
                                      • RolandozR Offline
                                        Rolandoz @WeatherMan10 | Premium
                                        last edited by

                                        @WeatherMan10 The total data (using API v1) goes back as far as possible. The we had a "drop out" for one night when I created the API v2 version.

                                        Very strange, but I just checked again. Since my report som hours ago something has changed. Now it shows the right number of minutes, but the information in the About box is a bit strange (yellow).

                                        6bc5eee0-1e09-4a03-a699-98d8397b3665-image.png

                                        It is the same for all 3 stations now - a few minutes in the "ago field" and NaNm in the reporting time fields...

                                        1 Reply Last reply Reply Quote 1
                                        • marekdM Offline
                                          marekd Windy Staff @marekd
                                          last edited by

                                          @rolandoz

                                          • Millimeters or inches, it does not matter. Feel free to send whichever you prefer. The data is consolidated into millimeters in our database and then served on Windy.com in the user’s preferred units.
                                          • Showing the station name somewhere is a great idea. @suty will probably know more about this, or at least can trigger the right people to handle it.
                                          • The reporting time issue is a bug. Thanks for reporting it (again). We will fix it ASAP. (cc @weatherman10)
                                          RolandozR 1 Reply Last reply Reply Quote 1
                                          • RolandozR Offline
                                            Rolandoz @marekd | Premium
                                            last edited by

                                            @marekd Did you fix something that made my 3 stations go offline? They worked yesterday but today they are offline. I have no errors in the local logfile, so my reporting works (or at least seems to work).

                                            6cfd998b-8c83-45e0-bdc8-8cf975899f73-image.png

                                            I have checked station ids and their passwords. Everything is as it should be on my side.

                                            Do you have any clue what happened?

                                            marekdM 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Windy Community  |  Powered by excellent NodeBB
                                            Terms of Use     Privacy Policy     Windy.com