# Downloading historic info from a station that is offline?

**URL:** <https://community.tempest.earth/t/downloading-historic-info-from-a-station-that-is-offline/21317>\
**Category:** Developers\
**Tags:** api, tempest\
**Created:** [June 20, 2023, 10:51pm UTC](https://community.tempest.earth/t/downloading-historic-info-from-a-station-that-is-offline/21317 "2023-06-20T22:51:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sara.dykman](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@sara.dykman](https://community.tempest.earth/u/sara.dykman)\
**Post date:** [June 20, 2023, 10:51pm UTC](https://community.tempest.earth/t/downloading-historic-info-from-a-station-that-is-offline/21317/1 "2023-06-20T22:51:39Z")

</div>

Hello,

I had seven Tempest Weather Stations collecting data this winter. In early April I disconnected them, and finally am getting around to downloading the data. I downloaded some of the data early on without issues, but now I am getting an error message Not Found. I’m a bit worried that I can’t collect the data from a station that is offline. Any thoughts?

Here is my process:

1. Get Token and use it to Authorize at the Tempest API Explorer
2. Use Get Device Id by using the “get Stations(station\_id)”
3. Enter parameters on Get observations/device/device\_id  
Device\_id 227257  
day\_offset 150  
start\_time 0000  
end\_time 2359  
format csv

Here are my stations’ info:

| station\_name | house | station | hub\_id | station\_id | device\_id | |
| --- | --- | --- | --- | --- | --- | --- |
| Rancho Escondido | Erika | st-00060608 | hb-00077733 | 86640 | 227257 | |
| Cuartel la mesa | Gloria | st-00058250 | hb-00075311 | 86664 | 227301 | |
| manzana de San Luis | Leti | st-00084503 | hb-00070964 | 86678 | 227334 | |
| La Salud | Albertina | st-00062870 | hb-00069343 | 86773 | 227550 | |
| Angangueo | Alison | st-00058450 | hb-00070780 | 95041 | 245283 | |
| Grasero | ana maria | st-00053257 | hb-00071545 | 95286 | | Broken-never worked |
| Las palmas | sylvia | st-00085479 | hb-00073187 | 95554 | 246425 | |

Thanks in advance!

---

<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:** [June 21, 2023, 1:23am UTC](https://community.tempest.earth/t/downloading-historic-info-from-a-station-that-is-offline/21317/2 "2023-06-21T01:23:01Z")

</div>

Hi Sara,

I dont know the reason and can only suggest that you check your numbers. But I call the API differently which you could try. My call for a 24 hour period to return the one minute data on a linux computer and save to a file is described here:  
curl -X GET --header ‘Accept: application/json’ '[https://swd.weatherflow.com/swd/rest/observations/device/12506?time\_start=1685041140&time\_end=1685127540&token=](https://swd.weatherflow.com/swd/rest/observations/device/12506?time_start=1685041140&time_end=1685127540&token=) (insert token here) ’ \> /var/tmp/wfdevice12506.json

You can use any operating system in a web browser by pasting the http link using the section between the ’ ’  
You could find unix time by using a web page converter such as this

> **[Unix Time Stamp - Epoch Converter](https://www.unixtimestamp.com/index.php)**
>
> Epoch and unix timestamp converter for developers. Date and time function syntax reference for various programming languages.

I dont know if it helps or will solve your problem.  
Good luck from Ian 🙂

---

<div class="post-metadata">

**Author:** ![mabeatty1978](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/mabeatty1978/32/15139_2.png) [@mabeatty1978](https://community.tempest.earth/u/mabeatty1978)\
**Post date:** [June 21, 2023, 3:01pm UTC](https://community.tempest.earth/t/downloading-historic-info-from-a-station-that-is-offline/21317/3 "2023-06-21T15:01:47Z")

</div>

> [@sara.dykman](#):
>
> I’m a bit worried that I can’t collect the data from a station that is offline. Any thoughts?

I’d suggest reaching out to WF support on this one. The fact that some of the data was downloaded early on, but no longer is… tells me that WF may have a data purge they do on devices that are offline for so long. Just a speculation, but it isn’t unreasonable for WF to delete data that is no longer being used. Though, 3 months seems awfully short.

---

<div class="post-metadata">

**Author:** ![vreihen](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/vreihen/32/13217_2.png) [@vreihen](https://community.tempest.earth/u/vreihen)\
**Post date:** [June 21, 2023, 3:22pm UTC](https://community.tempest.earth/t/downloading-historic-info-from-a-station-that-is-offline/21317/4 "2023-06-21T15:22:57Z")

</div>

Ask support if data bucket aging is also a concern, as your stored data degrades in resolution as it gets older…

---

<div class="post-metadata">

**Author:** ![vinceskahan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/vinceskahan/32/2785_2.png) [@vinceskahan](https://community.tempest.earth/u/vinceskahan)\
**Post date:** [June 21, 2023, 6:19pm UTC](https://community.tempest.earth/t/downloading-historic-info-from-a-station-that-is-offline/21317/5 "2023-06-21T18:19:08Z")

</div>

It would be helpful if there was an easy to find official data retention document from WF.

- for an active sensor, how long will its data be queryable ?
- for an inactive sensor, how long will its old data be queryable ?
- for an inactive sensor, will it ever get auto-deleted from being associated with a station (hub) ?
- for a station (hub) with no sensors, how long will that be kept known and queryable ?

---

<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:** [June 21, 2023, 8:56pm UTC](https://community.tempest.earth/t/downloading-historic-info-from-a-station-that-is-offline/21317/6 "2023-06-21T20:56:45Z")

</div>

There was this response from WF support posted in a different thread, but I agree official documentation would be better:

> [@How long does Tempest store data in the cloud?](https://community.tempest.earth/t/how-long-does-tempest-store-data-in-the-cloud/20545/20):
>
> WeatherFlow Support’s answer to this question via my support ticket: Tempest data is stored in the cloud indefinitely and is always accessible. As of now, device data history is kept forever. Only internal calibration bias corrections are periodically cleansed after several months of storage. I am not aware of any limitations beyond only being able to access data from your own network of Tempest stations unless you are subscribed to a higher tier allowing access to a wider weather station netw…

---

<div class="post-metadata">

**Author:** ![sara.dykman](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@sara.dykman](https://community.tempest.earth/u/sara.dykman)\
**Post date:** [June 22, 2023, 9:38pm UTC](https://community.tempest.earth/t/downloading-historic-info-from-a-station-that-is-offline/21317/7 "2023-06-22T21:38:17Z")

</div>

> [@iladyman](#):
>
> I dont know the reason and can only suggest that you check your numbers.

Good advice. Turns out, I have two Tempest accounts. The one on my phone was linked to all the thermometers. The one on my computer isn’t, and that was the one I was using to generate the token for authorization. Not sure why it worked early on, but who cares!
