My Observation API data for a device is different to my App display

I am using the https://swd.weatherflow.com/swd/rest/observations/device/158921 call in the api documentation after authenticating as my user account. The WindStats in the returned JSON are considerably different to my app data readings.

Any ideas??

Thanks Nick

Have you converted to your desired units of measure?
More detail with numbers would help us to see your issue.
Cheers Ian :slight_smile:

1 Like

Hi Ian,

Possible Not? I assumed the data would be in either kts or mph depending on our settings.

Here is the public station page
https://tempestwx.com/station/56977/

Here is the response from the API call below.
https://swd.weatherflow.com/swd/rest/observations/device/158921

{
“status”: {
“status_code”: 0,
“status_message”: “SUCCESS”
},
“device_id”: 158921,
“type”: “obs_st”,
“source”: “cache”,
“summary”: {
“pressure_trend”: “steady”,
“strike_count_1h”: 0,
“strike_count_3h”: 0,
“precip_total_1h”: 0,
“precip_accum_local_yesterday”: 3.419374,
“precip_analysis_type_yesterday”: 0,
“feels_like”: 17.4,
“heat_index”: 17.4,
“wind_chill”: 17.4
},
“obs”: [
[
1629583245,
6.06,
6.5,
7.48,
201,
3,
1013.7,
17.4,
96,
0,
0,
0,
0,
0,
0,
0,
2.72,
1,
1.070933,
null,
null,
0
]
]
}

Here is the feed from the station api
https://swd.weatherflow.com/swd/rest/observations/station/56977

{
“status”: {
“status_code”: 0,
“status_message”: “SUCCESS”
},
“device_id”: 158921,
“type”: “obs_st”,
“source”: “cache”,
“summary”: {
“pressure_trend”: “steady”,
“strike_count_1h”: 0,
“strike_count_3h”: 0,
“precip_total_1h”: 0,
“precip_accum_local_yesterday”: 3.419374,
“precip_analysis_type_yesterday”: 0,
“feels_like”: 17.4,
“heat_index”: 17.4,
“wind_chill”: 17.4
},
“obs”: [
[
1629583245,
6.06,
6.5,
7.48,
201,
3,
1013.7,
17.4,
96,
0,
0,
0,
0,
0,
0,
0,
2.72,
1,
1.070933,
null,
null,
0
]
]
}

Basically the wind stats are reading much much lower in the feeds then in the app screen.
https://tempestwx.com/station/56977/

Last night the wind was 15mph in the app but was only returning 5mph in the feeds?

It looks so simple, but I must be doing something wrong…

Cheers
Nick

I use this function written in python to convert the meters per second from the API into knots which is my desired unit of measure:
def convert_mps_to_knots(self, mps):
if mps is None:
print(‘mps is none’)
return 0.0
else:
return round(mps * 1.943844, 1)

This is where you can see the units
https://weatherflow.github.io/Tempest/api/ws.html
cheers Ian :slight_smile:

Thanks Ian.

Really appreciated. I knew the api call was working properly… assumed the data would be the same as the settings, and not meters per second. Makes perfect sense now. Thanks so much for your support!!

1 Like