Windy Community

    • Register
    • Login
    • Search
    • Unread
    • Categories
    • Groups
    • Go to windy.com

    How to share de data of my different METEOHELIX ws on Windy.com?

    Windy Stations
    5
    20
    1397
    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.
    • S
      seb.schmied @raffaello.dimartino | Premium last edited by

      @raffaello-dimartino @ltrullem This doesn't look like you need the developers. I'm pretty sure this setting will work:

      windy.png

      • Get an API key on https://stations.windy.com/stations and set up a station there.

      • Fill in the wunderground settings as in the picture, building a json string as shown on https://community.windy.com/topic/8168/report-your-weather-station-data-to-windy/2 section B/ POST JSON

      • Save and wait for 48 hours, the station should appear on windy by then.

      S raffaello.dimartino 3 Replies Last reply Reply Quote 0
      • S
        seb.schmied @seb.schmied | Premium last edited by

        Addendum: Also check https://stations.windy.com/pws/station/(your_key)/0 to see if the data arrives

        1 Reply Last reply Reply Quote 0
        • raffaello.dimartino
          raffaello.dimartino Italia @seb.schmied | Premium last edited by

          @seb-schmied
          Thank you if windy has similar format to wunderground it's ok.

          I will try too with mine Meteohelix in Rome

          Raffaello Di Martino
          http://www.kwos.it

          1 Reply Last reply Reply Quote 0
          • raffaello.dimartino
            raffaello.dimartino Italia @seb.schmied | Premium last edited by

            @seb-schmied Tested, but due to wrong programming, the web interface doesn't regonize the nested JSON format so it says: JSON error.

            It works only with this format:

            {
            station:0,
            dateutc:"2019-03-15T06:15:34",
            temp:1.2,
            wind:2.8,
            winddir:189,
            gust:3.7,
            rh:76
            }

            The result is: Request failed with status code 500

            I think I will manage it with my Meteotemplate plugin.
            https://github.com/iz0qwm/meteohelix_scripts

            Raffaello Di Martino
            http://www.kwos.it

            S 1 Reply Last reply Reply Quote 0
            • S
              seb.schmied @raffaello.dimartino | Premium last edited by

              @raffaello-dimartino I don't have a wunderground so I can test. Does the json you tried work in https://jsonformatter.curiousconcept.com/ ? (Replace the placeholders with example values for checking)

              S 1 Reply Last reply Reply Quote 0
              • S
                seb.schmied @seb.schmied | Premium last edited by

                Checked your github, you obviuously know that yourself, sorry for even asking this :)

                raffaello.dimartino 1 Reply Last reply Reply Quote 0
                • raffaello.dimartino
                  raffaello.dimartino Italia @seb.schmied | Premium last edited by

                  @seb-schmied oh absolutely don't worry.
                  The problem is:

                  Barani web site uses the variables with {} which can confuse the JSON.
                  I don't know the measure of unit requested by windy and in case are different to the barani I cannot convert to the right one.
                  What parameters can I upload to windy? And what are their names?

                  Raffaello Di Martino
                  http://www.kwos.it

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    seb.schmied @raffaello.dimartino | Premium last edited by

                    @raffaello-dimartino There's a parameters names / units reference on https://community.windy.com/topic/8168/report-your-weather-station-data-to-windy/2 just below the json example.

                    raffaello.dimartino 1 Reply Last reply Reply Quote 0
                    • raffaello.dimartino
                      raffaello.dimartino Italia @seb.schmied | Premium last edited by

                      @seb-schmied Thank you very much.

                      This JSON should be OK:

                      {
                      "stations":[
                      {
                      "station":0,
                      "name":"KWOS_Meteohelix_Rome",
                      "lat":41.9896220405185,
                      "lon":12.507319807809838,
                      "elevation":70,
                      "tempheight":10,
                      "windheight":10
                      }
                      ],
                      "observations":[
                      {
                      "station":0,
                      "ts":"{timestamp}",
                      "tempf":"{temperature}",
                      "rh":"{humidity}",
                      "baromin":"{pressure}"
                      }
                      ]
                      }

                      The web site cron is sending it every 10 minutes (just when the packet arrives from the Sigfox network).
                      I still not see anything here:

                      https://www.windy.com/station/pws-f05b0b61?41.990,12.507,8

                      Unfortunately, I have no feedback on any errors, since I am not the portal manager sending the POST request.

                      Raffaello Di Martino
                      http://www.kwos.it

                      raffaello.dimartino 1 Reply Last reply Reply Quote 0
                      • raffaello.dimartino
                        raffaello.dimartino Italia @raffaello.dimartino | Premium last edited by

                        @raffaello-dimartino I tested it simulating what the website should do and it works.
                        The Windy server answers with: SUCCESS

                        Raffaello Di Martino
                        http://www.kwos.it

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          seb.schmied @raffaello.dimartino | Premium last edited by

                          @raffaello-dimartino
                          You can check if data arrives at https://stations.windy.com/pws/station/open/replace_with_api_Key/f05b0b61

                          Install https://chrome.google.com/webstore/detail/json-viewer/gbmdgpbipfallnflgajpaliibnhdgobh?hl=en or similar to make it readable.

                          I just did that. Data does arrive, but some of it seems off: temperature (413.844458007812 kelvin) and 338046000 pressure (that's 3.3 megapascal) are too high.

                          temp instead of tempf (f=fahrenheit) and pressure instead of baromin will probably fix that.

                          Rest looks fine.

                          Don't worry about the link not working and the station not showing up yet, that's normal. It will work after 36 hours or so when windy fetches new stations.

                          raffaello.dimartino 1 Reply Last reply Reply Quote 0
                          • raffaello.dimartino
                            raffaello.dimartino Italia @seb.schmied | Premium last edited by

                            @seb-schmied Oh I remember now:
                            temperature (413.844458007812 kelvin) and 338046000 pressure (that's 3.3 megapascal)

                            You're right in my plugin I've done the conversion.
                            Ok there is no choise to send pressure data via Meteohelix portal. I cannot do conversions before the JSON generation.

                            The barom is in pa and without the altitude correction:

                            # Baros
                            $pa_in_hpa = 0.01;
                            @$weather_data['baromabshpa'] = round( $weather_data['pressure'] * $pa_in_hpa, 2 );
                            @$weather_data['baromrelhpa'] = round(($weather_data['baromabshpa'] * pow(1 - (0.0065*$altitude) / ($weather_data['tempc'] + (0.0065 * $altitude) + 273.15),-5.257 )), 2);
                            

                            Thank you for the link to check the update.

                            Raffaello Di Martino
                            http://www.kwos.it

                            S 1 Reply Last reply Reply Quote 0
                            • S
                              seb.schmied @raffaello.dimartino | Premium last edited by

                              @raffaello-dimartino Buit can't you just tell windy it's in pascal? You don't need to do any conversions. Try

                              "pressure":"{pressure}"
                              

                              and

                              "temp":"{temperature}",
                              
                              raffaello.dimartino 1 Reply Last reply Reply Quote 0
                              • raffaello.dimartino
                                raffaello.dimartino Italia @seb.schmied | Premium last edited by

                                @seb-schmied No I can't as the barani outputs are:

                                temperature: in Kelvin - this needs to be converted in °C or °F
                                pressure: real in Pa - this needs to reduced to the correct altitude (QNH)

                                Raffaello Di Martino
                                http://www.kwos.it

                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  seb.schmied @raffaello.dimartino | Premium last edited by

                                  @raffaello-dimartino Not sure if you need to convert pressure because windy already has 3 things:

                                  • Your station's altitude
                                  • Your station's pressure
                                  • The knowledge that most people won't be as considerate and will just send the raw pressure

                                  So windy will do these calculations for you after you send them :)

                                  Korina 1 Reply Last reply Reply Quote 0
                                  • Korina
                                    Korina Administrator @seb.schmied last edited by

                                    @seb-schmied @raffaello-dimartino Hello, your station is displayed on Windy already, however the values seems incorrect, temperature is too hight.

                                    Korina

                                    1 Reply Last reply Reply Quote 0
                                    • raffaello.dimartino
                                      raffaello.dimartino Italia | Premium last edited by

                                      Yes Korina,
                                      I cannot use directly the Meteohelix website due to the use of Kelvin unit of measure and the impossibility to do conversions.
                                      So I used my meteohelix plugin for meteotemplate to send also data to Windy.

                                      I still not have wind sensor and the sigfox raingauge is not working now

                                      Raffaello Di Martino
                                      http://www.kwos.it

                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post
                                      Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
                                      NodeBB & contributors, OSM & contributors, HERE maps
                                      Terms of Use     Privacy Policy