Hi Matt. As a matter of fact, we just quietly released a feature on tempestwx.com that allows a station owner to generate a “personal access token” for use in third-party apps. Just sign in at tempestwx.com then go to Settings -> Data Authorizations (or directly: https://tempestwx.com/settings/tokens) and create an access token. Once you have a token, you can use it with REST requests and WS connections:
REST Examples:
-
GET Station Meta Data
https://swd.weatherflow.com/swd/rest/stations?token=[your_access_token]
-
GET Latest Station Observation
https://swd.weatherflow.com/swd/rest/observations/station/[your_station_id]?token=[your_access_token]
-
GET Latest Device Observation
https://swd.weatherflow.com/swd/rest/observations/?device_id=[your_device_id]&token=[your_access_token]
WebSockets Examples:
-
Open a websocket connection
wss://ws.weatherflow.com/swd/data?token=[your_access_token]
-
Send a JSON message over the websocket connection to start listening for observations from one of your devices. After sending this message your connected websocket client should receive a new observation JSON message every minute.
{ "type":"listen_start", "device_id":your_device_id, "id":"random-id-12345" }