You can try by hand what happens using the wget utility at the command line:

wget 
https://data.api.xweather.com/observations/closest?p={latitude},{longitude}&client_id=...&client_secret=...

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.

Xweather documentation 
<https://www.xweather.com/docs/weather-api/endpoints/observations>
[email protected] schrieb am Freitag, 8. November 2024 um 11:35:05 UTC+1:

> 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.
>
> [image: 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 :)
>
> [image: 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:
>
>> 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.
>>
>> [email protected] schrieb am Freitag, 8. November 2024 um 09:20:32 
>> UTC+1:
>>
>>> 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
>>>
>>> [image: Screenshot_1.jpg]
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/weewx-user/d7666b3d-7d21-4167-bc94-bd772507f9c8n%40googlegroups.com.

Reply via email to