How to share de data of my different METEOHELIX ws on Windy.com?
-
@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.
-
@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-dimartino I tested it simulating what the website should do and it works.
The Windy server answers with: SUCCESS -
@raffaello-dimartino
You can check if data arrives at https://stations.windy.com/pws/station/open/replace_with_api_Key/f05b0b61Install 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.
-
@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-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}",
-
@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-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 :)
-
@seb-schmied @raffaello-dimartino Hello, your station is displayed on Windy already, however the values seems incorrect, temperature is too hight.
-
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