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

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

    Windy Stations
    6
    21
    6.5k
    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 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.dimartinoR 1 Reply Last reply Reply Quote 0
        • raffaello.dimartinoR
          raffaello.dimartino Italia @seb.schmied
          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.dimartinoR 1 Reply Last reply Reply Quote 0
            • raffaello.dimartinoR
              raffaello.dimartino Italia @seb.schmied
              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.dimartinoR 1 Reply Last reply Reply Quote 0
              • raffaello.dimartinoR
                raffaello.dimartino Italia @raffaello.dimartino
                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.dimartinoR 1 Reply Last reply Reply Quote 0
                  • raffaello.dimartinoR
                    raffaello.dimartino Italia @seb.schmied
                    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.dimartinoR 1 Reply Last reply Reply Quote 0
                      • raffaello.dimartinoR
                        raffaello.dimartino Italia @seb.schmied
                        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 :)

                          KorinaK 1 Reply Last reply Reply Quote 0
                          • KorinaK
                            Korina @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.dimartinoR
                              raffaello.dimartino Italia
                              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
                              • kallo78K
                                kallo78 | Premium
                                last edited by kallo78

                                Hi,
                                i have created this json to upload my meteohelix.
                                What am I doing wrong?

                                {
                                "stations":[
                                {"station":1, "name":"Meteohelix_Rimini", "lat":44.04746373088, "lon":12.55600221137, "elevation":10, "tempheight":36, "windheight":36}
                                ],
                                "observations":[
                                {
                                "station":1, "time":"{DD}.{MM}.{YYYY} {hh}:{mm}:{ss}", "temp":"{101-0_C}", "wind":"{801-0_m-s}", "winddir":"{901-0_deg}", "gust":"{803-0_m-s}", "rh":"{201-0_pct}", "baromin":"{301-0_Pa}"}
                                ]
                                }

                                ca659707-72f9-4322-85dd-d0f515628794-image.png

                                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