Is there a URI to return the online/offline status of SKY/AIR?

Is there a api URI to return the online/offline status of SKY? (and also AIR) I have not seen it… if so, what is it?

Thank you!!!

BTW, I do see the status under

https://swd.weatherflow.com/swd/rest/observations/device/$DEVICEID?token=$TOKEN

but my sky device is currently offline and the data is:

"status":
{
    "status_code":0,
    "status_message":"SUCCESS"
},

which I assume means that all is well…?

I’m not using the api but my feeling is, that part is just to say your request was seen by the server, it is well formatted and it sends back data (depending what you asked) The rest of the info is in the arrays following this.

In you case the batteries of your Sky are empty

As @eric said, that status message just lets you know that the API request was successful. Unfortunately there is no API endpoint that I know of that gives the device status. I tend to look at the last observation time and assume that if it was greater than 5 minutes ago, then the device is offline. I think WeatherFlow assume a station is offline if the servers haven’t heard from it for 30 minutes

Thanks @peter !! Good info. Good idea. I can subtract the current epoch time from the epoch time returned from Sky/Air and check if it’s more than a 5 minute difference.

1 Like