Belchertown skin - current weather

134 views
Skip to first unread message

tadej.j...@gmail.com

unread,
Nov 8, 2024, 3:20:32 AM11/8/24
to weewx-user
Hello, can someone help me with this issue. It looks like i get two different locations forecast. For current condition I get location "BRNIK" - long": 14.466666666667, "lat": 46.216666666667 and for future forecast I get correct location "zerjav".  Where does Belchertown skin gets info for current location weather, in weewx.conf I have geo data : 14.8703, 46.4862, wich is correctly used for future forecast?
Below screenshot from forecast.json

Screenshot_1.jpg

Karen K

unread,
Nov 8, 2024, 4:50:42 AM11/8/24
to weewx-user
The Belchertown skin gets the forecast, air quality, and warning data from Xweather, which was formerly Aeris. It takes the location of your station and asks Xweather for the nearest station they have data for. Current readings, forecast, air quality, warnings etc. are separate requests. Therefore they can return data from different stations. The Belchertown skin puts them together into a single file called forecast.json afterwards. You provided a part of that file in your post.

For each part of the file you find a key relativeTo, that contains the distance and the direction of the data source in respect to your station.

tadej.j...@gmail.com

unread,
Nov 8, 2024, 5:35:05 AM11/8/24
to weewx-user
So if i manually go to their site and provide my town - Zerjav  i get current conditions which I would like (and are also correctly used for forecast which i marked in red in first post) , and it seems that Xweather has the data.

1.jpg


But instead gives me different location for current weather .. it is not that far away about 40 miles, but weather is not the same :)

2.jpg


It's not that big of a deal, but i thought that it is possible to tell Xweather to always take observation site that I see that they have data for: https://www.aerisweather.com/weather/local/si/zerjav


petek, 8. november 2024 ob 10:50:42 UTC+1 je oseba Karen K napisala:

Karen K

unread,
Nov 8, 2024, 6:01:49 AM11/8/24
to weewx-user
You can try by hand what happens using the wget utility at the command line:


Replace {latitude} and {longitude} by the location of your station and the dots by the account data as specified in the Belchertown skin configuration. You then see if you get the same as on their website or different.

Generally they provide data from airport stations by this interface only. By now I did not find a way to change that by an option in the URL.

Karen K

unread,
Nov 8, 2024, 6:13:36 AM11/8/24
to weewx-user
Another thought: May be, what you see on their website is from conditions while the Belchertown skin downloads observations.

Observations:
Conditions:


Unfortunately the replies of those requests have a different data structure. So using conditions instead of observations in the Belchertown skin would require some changes to belchertown.py.


Karen K

unread,
Nov 8, 2024, 11:44:57 AM11/8/24
to weewx-user
Sorry, the URL for the conditions endpoint was not correct. The correct one is:


Reply all
Reply to author
Forward
0 new messages