# Multiple outdoor devices in same station

**URL:** <https://community.tempest.earth/t/multiple-outdoor-devices-in-same-station/15105>\
**Category:** Developers\
**Created:** [October 4, 2021, 8:13am UTC](https://community.tempest.earth/t/multiple-outdoor-devices-in-same-station/15105 "2021-10-04T08:13:54Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![vincent.toupet](https://avatars.discourse-cdn.com/v4/letter/v/fbc32d/32.png) [@vincent.toupet](https://community.tempest.earth/u/vincent.toupet)\
**Post date:** [October 4, 2021, 8:13am UTC](https://community.tempest.earth/t/multiple-outdoor-devices-in-same-station/15105/1 "2021-10-04T08:13:54Z")

</div>

I encounter a problem when getting the metadata for a given station: I get 2 devices that appear to be both valid (they both have a serial\_number).

```auto
{
  "device_id": xxxx,
  "device_meta": {
    "agl": 7.62,
    "name": "ST-xxxx",
    "environment": "outdoor",
    "wifi_network_name": ""
  },
  "device_type": "ST",
  "location_id": xxxx,
  "serial_number": "ST-xxxx",
  "device_settings": {
    "show_precip_final": false
  },
  "firmware_revision": "156",
  "hardware_revision": "1"
},
{
  "device_id": xxxx,
  "device_meta": {
    "agl": 1.8288,
    "name": "ST-xxxx",
    "environment": "outdoor",
    "wifi_network_name": ""
  },
  "device_type": "ST",
  "location_id": xxxx,
  "serial_number": "ST-xxxx",
  "device_settings": {
    "show_precip_final": true
  },
  "firmware_revision": "163",
  "hardware_revision": "1"
}

```

When I fetch historical data of the station, I use the first device\_id I get from the device list that have type “ST”, with a serial\_number, but that one returns a 404 NOT FOUND response from the API.

I did not expect that case. Could you please explain me in which case I can get 2 outdoor devices for a given station and how I should handle this?

Thanks a lot for your help.

---

<div class="post-metadata">

**Author:** ![sunny](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/sunny/32/16368_2.png) [@sunny](https://community.tempest.earth/u/sunny)\
**Post date:** [October 4, 2021, 8:46am UTC](https://community.tempest.earth/t/multiple-outdoor-devices-in-same-station/15105/2 "2021-10-04T08:46:57Z")

</div>

that should work. try it out at [Tempest API](https://weatherflow.github.io/Tempest/api/swagger/#/) to see some examples as well

---

<div class="post-metadata">

**Author:** ![vincent.toupet](https://avatars.discourse-cdn.com/v4/letter/v/fbc32d/32.png) [@vincent.toupet](https://community.tempest.earth/u/vincent.toupet)\
**Post date:** [October 4, 2021, 8:56am UTC](https://community.tempest.earth/t/multiple-outdoor-devices-in-same-station/15105/3 "2021-10-04T08:56:30Z")

</div>

Thanks for your reply, but as I explain it does not work 🙂. It is not a question of a wrong API call, but rather a problem with that device.  
I suppose there has been a hardware replacement for some reason, the old device has not been removed in the software side of the station.

If you say it should work. Does that mean a given station\_id could hold 2 outdoor devices of same type at the same time? Could you point me at an example? I don’t even know how the official Tempest dashboard would look like.

---

<div class="post-metadata">

**Author:** ![peter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/peter/32/1365_2.png) [@peter](https://community.tempest.earth/u/peter)\
**Post date:** [October 4, 2021, 9:28am UTC](https://community.tempest.earth/t/multiple-outdoor-devices-in-same-station/15105/4 "2021-10-04T09:28:54Z")

</div>

> [@vincent.toupet](#):
>
> Does that mean a given station\_id could hold 2 outdoor devices of same type at the same time?

Yes, this is perfectly possible. My [station](https://tempestwx.com/station/27648/grid) has two Tempest devices (although one is currently offline)

---

<div class="post-metadata">

**Author:** ![vincent.toupet](https://avatars.discourse-cdn.com/v4/letter/v/fbc32d/32.png) [@vincent.toupet](https://community.tempest.earth/u/vincent.toupet)\
**Post date:** [October 4, 2021, 9:38am UTC](https://community.tempest.earth/t/multiple-outdoor-devices-in-same-station/15105/5 "2021-10-04T09:38:32Z")

</div>

Thanks a lot Peter. My understanding of what a station (in the Tempest sense) was was erroneous…

What kind of devices can we find on a station? And are there limits of how many there can be?

---

<div class="post-metadata">

**Author:** ![sunny](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/sunny/32/16368_2.png) [@sunny](https://community.tempest.earth/u/sunny)\
**Post date:** [October 4, 2021, 9:49am UTC](https://community.tempest.earth/t/multiple-outdoor-devices-in-same-station/15105/6 "2021-10-04T09:49:56Z")

</div>

the official tempest dashboard looks like this [Tempest](https://tempestwx.com/station/33745/grid) with two devices on the same station (never mind the device that is offline).

---

<div class="post-metadata">

**Author:** ![sunny](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/sunny/32/16368_2.png) [@sunny](https://community.tempest.earth/u/sunny)\
**Post date:** [October 4, 2021, 9:51am UTC](https://community.tempest.earth/t/multiple-outdoor-devices-in-same-station/15105/7 "2021-10-04T09:51:19Z")

</div>

> [@vincent.toupet](#):
>
> My understanding of what a station (in the Tempest sense) was was erroneous…

so, did you manage to get the info from the server?

---

<div class="post-metadata">

**Author:** ![peter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/peter/32/1365_2.png) [@peter](https://community.tempest.earth/u/peter)\
**Post date:** [October 4, 2021, 10:09am UTC](https://community.tempest.earth/t/multiple-outdoor-devices-in-same-station/15105/8 "2021-10-04T10:09:47Z")

</div>

> [@vincent.toupet](#):
>
> My understanding of what a station (in the Tempest sense) was was erroneous…

A station is a Hub. Each hub (or station) can have multiple devices (Tempest, Sky or Air). There is a maximum limit that has been shared somewhere on this forum, but I can find it right now!

---

<div class="post-metadata">

**Author:** ![gizmoev](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/gizmoev/32/941_2.png) [@gizmoev](https://community.tempest.earth/u/gizmoev)\
**Post date:** [October 4, 2021, 7:04pm UTC](https://community.tempest.earth/t/multiple-outdoor-devices-in-same-station/15105/9 "2021-10-04T19:04:42Z")

</div>

> [@vincent.toupet](#):
>
> Does that mean a given station\_id could hold 2 outdoor devices of same type at the same time? Could you point me at an example?

Here are a couple more station examples for you:

- [https://tempestwx.com/station/36119/grid](https://tempestwx.com/station/36119/grid)
- [https://tempestwx.com/station/12859/grid](https://tempestwx.com/station/12859/grid)

The first one has a Tempest, SKY and two AIR units with one being an indoor unit and the second is my field test station with two Tempests and a SKY.

---

<div class="post-metadata">

**Author:** ![iladyman](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/iladyman/32/2305_2.png) [@iladyman](https://community.tempest.earth/u/iladyman)\
**Post date:** [October 4, 2021, 9:37pm UTC](https://community.tempest.earth/t/multiple-outdoor-devices-in-same-station/15105/10 "2021-10-04T21:37:33Z")

</div>

When I used your App I was able to see and select any of my 3 stations/hubs from the top drop down arrow.  
But my main station ‘31 bombala st’ has 2 skys measuring wind in different locations and the readings on your main page only show readings from one of those skys.  
My main station/hub also uses a different sky to measure rainfall than the sky that measures all the other sky readings. But the rainfall sky has broken but i have not removed it from the hub. Weatherflow selects which values come from which device and I request them to change those settings. Which determine which device supplies which reading type (rain, wind, temp etc) to the main page and to weather underground and to the current station readings from the api.  
What is unusual with this hub/station is that it hosts 2 skys measuring wind in 2 different locations 5km away from each other. But that is unusual for weatherflow hub/stations. If I were building your app I would not worry about the very few people with multiple duplicate sensors.  
Here is the link to that hub [Tempest](https://tempestwx.com/station/4555/grid)  
Then I have a hub that is the new Tempest hub. This hub has 3 Tempests connected to it. But 2 of the tempests have failed many months ago. I do not know if the failed tempests will ever work again. I do not rely on this station and I use it for testing.  
[Tempest](https://tempestwx.com/station/27109/grid)  
There is a flaw in the schema due to the location being a hub/station property. In my opinion a location is a sensor property. The issue only arises when a user connects multiple duplicate sensors to a hub. There is then no simple property to locate where the duplicate sensors are located.  
I hope this helps.  
Cheers Ian 🙂

---

<div class="post-metadata">

**Author:** ![vincent.toupet](https://avatars.discourse-cdn.com/v4/letter/v/fbc32d/32.png) [@vincent.toupet](https://community.tempest.earth/u/vincent.toupet)\
**Post date:** [October 5, 2021, 7:53am UTC](https://community.tempest.earth/t/multiple-outdoor-devices-in-same-station/15105/11 "2021-10-05T07:53:45Z")

</div>

> [@sunny](#):
>
> > [@vincent.toupet](#):
> >
> > My understanding of what a station (in the Tempest sense) was was erroneous…
> 
> so, did you manage to get the info from the server?

No it does not work. Even though the understanding was incorrect, the API calls were fine. I added a way to blacklist devices that return an API request with status 404 on historical data.

---

<div class="post-metadata">

**Author:** ![vincent.toupet](https://avatars.discourse-cdn.com/v4/letter/v/fbc32d/32.png) [@vincent.toupet](https://community.tempest.earth/u/vincent.toupet)\
**Post date:** [October 5, 2021, 8:11am UTC](https://community.tempest.earth/t/multiple-outdoor-devices-in-same-station/15105/12 "2021-10-05T08:11:53Z")

</div>

Thanks @iladyman,

This is indeed complicated to address these cases. I think I will leave that for now (sorry) and concentrate on the majority of users that have a basic setup.

Once all more important issues have been addressed, I will try to handle specific cases such as yours.  
Kind Regards, Vincent

---

<div class="post-metadata">

**Author:** ![iladyman](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/iladyman/32/2305_2.png) [@iladyman](https://community.tempest.earth/u/iladyman)\
**Post date:** [October 5, 2021, 8:37pm UTC](https://community.tempest.earth/t/multiple-outdoor-devices-in-same-station/15105/13 "2021-10-05T20:37:38Z")

</div>

Hi @vincent.toupet ,  
Perhaps I should have highlighted my comment ‘If I were building your app I would not worry about the very few people with multiple duplicate sensors.’  
Your App already displays the stations default sensors.  
Your App also already allows multiple stations to be selected.  
And due to the Tempest distance to the hub limited to about 500m compared to the Sky max distance over 5km and the Sky is no longer for sale it is extremely rare to have multiple remote Tempest or Sky.  
And people like myself pushing the boundaries with the hardware are also able to access our data without using your App.  
My advice is to keep your App focus to the average user with one Tempest and provide them with easy reliable solutions that they want.  
My feedback is simply to help your understanding of the data structure. I do not require your App for myself. But the people who use my weather data could be interested in your App but they do not have my access key so I guess they would not be able to use your App. Currently those people use either the weatherflow web pages or weather underground or my web site where I publish my weather.  
Cheers Ian 🙂

---

<div class="post-metadata">

**Author:** ![vincent.toupet](https://avatars.discourse-cdn.com/v4/letter/v/fbc32d/32.png) [@vincent.toupet](https://community.tempest.earth/u/vincent.toupet)\
**Post date:** [October 6, 2021, 9:10am UTC](https://community.tempest.earth/t/multiple-outdoor-devices-in-same-station/15105/14 "2021-10-06T09:10:39Z")

</div>

Thanks @iladyman for you help and your kindness.
