What units / conversion needed to translate air_temperature observation from API call?

Hello, new here. Got the Tempest as a birthday present and set it up today, right off loving it!

Question about the API values returned. I want to poll for air_temperature observation and I have an API token and I’m getting a successful call and response back, and it’s for my station, but the air_temperature value is… odd

curl -s https://swd.weatherflow.com/swd/rest/observations/station/98451?token=

Through the app and the website, I’m getting proper air temperature readings, currently about 55ºF

But from the API call, I’m getting back:

  "obs": [
    {
      "timestamp": 1678034238,
      "air_temperature": 13.2,

13.2 … what? I tried changing units on on the website from F to C and back. And the change was displayed on subsequent API calls. But the value for air_temperature stays the same at 13.2 which isn’t right.

What am I missing?

The API returns observations in metric units (I.e Celsius for temperature). 13.2 C is 55 F

https://www.google.com/search?q=13.2+celsius+fahrenheit&oq=13.2+cel&aqs=edge.0.0i512j69i57j0i22i30l4.4970j0j7&hl=en-GB&sourceid=chrome-mobile&ie=UTF-8

If you read the API docs it’ll tell you the units for each observation

1 Like

Thank you, I can’t believe I missed that. Doh! I was confused but the C/F setting not making a difference but it makes sense that it’s always ºC and the setting is just for telling interfaces what preferred units are

No problem - easy thing to miss. Enjoy your new Tempest!

1 Like