I’m looking at the documentation for “Tempest Home API/Statistics/Statistics For A Station”. I’m clicking the Try It button after entering my station Id and api-key in the credentials box. My station ID shows as ST-nnnnnn, where nnnnnn is a number. Since the box for station id describes it as an integer, I’m not entering the ST- (I’m just entering the number). Then I enter my api-key in the Credentials box (I copy and paste it). I also picked Swift as the language. When I click Try It, I get a 404 “not found” message. What is going wrong.
I assume you went to the api button on top of this page, and selected Rest and authorized the access.
Then might go first try out the get stations option. The output should be a list of devices and within each device the station number it belongs to. You can use the device id or the station id given there in you call to get observations. Do not enter ST-.
My recollection is the station id is ‘not’ the id of the Tempest sensor (ST-nnnn) since you can have multiple sensors associated with one station (ie the hub plus one or more sensors linked to it). - see Station vs Device for their description.
Isn’t there a settings=>stations pick buried in the app ? The online help and cryptic documentation is so awful I can’t find a quick reference to something that should be so simple to figure out. Sorry.
The docs you’re reading should definitely have a pointer to how to get your station id.
To do it experimentally try Tempest API and the get stations call to figure it out that way if you can’t find it easily buried in the mobile app.
Here’s an example - I authorized using my api key and then used the get stations which returned the following (obfuscated values). See the hub location_id ? That is your station id I’m pretty sure.
{
"stations": [
{
"created_epoch": 1664116910,
"devices": [
{
"device_id": 22222,
"device_meta": {
"agl": 1.8288,
"environment": "indoor",
"name": "HB-00012345",
"wifi_network_name": ""
},
"device_type": "HB",
"firmware_revision": "194",
"hardware_revision": "0",
"location_id": 11111,
"serial_number": "HB-00012345"
},
From the “Support” pull-down menu on the top of every forum web page:
https://community.tempest.earth/t/station-id-how-to-find-it-and-what-it-is-good-for/4276
Thanks so much for your reply. I did find the problem. In the Settings in the Tempest app under MANAGE Stations, it lists the name of my Station. Then if you tap on the station name and tap on Manage Devices, it list ST-00nnnnnn as my device (where nnnnnn is a number). I was trying to use that number as my station_id. That is not correct. I did later find that the station_id is hidden. On the same screen where I clicked Manage Devices, if you click Public Data, the station_id is unlabeled, but it is after the last slash of the https: address shown on that screen. Way to go Tempest. You hide it good.
yeah, but you are mixing two interfaces, the app (which as you mentioned hides the station id pretty good) and the api, which makes it very easy to request the station and device id’s.
In the app just go to Settings, Stations, station name, Status. The Station ID is clearly listed along with a plethora of other information. I wouldn’t call that hidden. Also, you can click the share link and the Station ID is in the link created.