# REST API Wind readings

**URL:** <https://community.tempest.earth/t/rest-api-wind-readings/20733>\
**Category:** General\
**Created:** [April 26, 2023, 3:08pm UTC](https://community.tempest.earth/t/rest-api-wind-readings/20733 "2023-04-26T15:08:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajmendotx](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@ajmendotx](https://community.tempest.earth/u/ajmendotx)\
**Post date:** [April 26, 2023, 3:08pm UTC](https://community.tempest.earth/t/rest-api-wind-readings/20733/1 "2023-04-26T15:08:04Z")

</div>

I am looking for wind speed but based on the API the below data points are the only ones I can find.

“wind\_avg”, = I read this as the average of the speed all day, but?  
“wind\_gust”, = I read this as the max gust today. but not sure if that is correct  
“wind\_lull”, = no idea.

Curious how actual wind speed is determined?

---

<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:** [April 26, 2023, 7:20pm UTC](https://community.tempest.earth/t/rest-api-wind-readings/20733/2 "2023-04-26T19:20:39Z")

</div>

When not in power saving mode, the tempest usually samples every 3 seconds. Wind\_avg is the average over the report interval (the 17th variable). Usually that is one minute, unless you kind of zoom out. Gust is the max of those 3 seconds samples during that interval and lull is the minimum.

---

<div class="post-metadata">

**Author:** ![ajmendotx](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@ajmendotx](https://community.tempest.earth/u/ajmendotx)\
**Post date:** [April 26, 2023, 7:51pm UTC](https://community.tempest.earth/t/rest-api-wind-readings/20733/3 "2023-04-26T19:51:06Z")

</div>

Thank you for the reply.

---

<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:** [April 27, 2023, 7:47pm UTC](https://community.tempest.earth/t/rest-api-wind-readings/20733/4 "2023-04-27T19:47:15Z")

</div>

> [@ajmendotx](#):
>
> I am looking for wind speed

What is it that you are looking to accomplish? It doesn’t sound like the API is going to provide you what you are looking for, but something else may. If you provide more details, we might be able to get you closer to what it is you are trying to acheive.

---

<div class="post-metadata">

**Author:** ![ajmendotx](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@ajmendotx](https://community.tempest.earth/u/ajmendotx)\
**Post date:** [April 27, 2023, 8:16pm UTC](https://community.tempest.earth/t/rest-api-wind-readings/20733/5 "2023-04-27T20:16:42Z")

</div>

A little background. I had an Ambient and was using the API to store data in a MySQL database for my own site/use. After switching I am looking at the fields and there isn’t an actual field that is called wind speed. So I am trying to figure out how to display the current wind speed, plus wind gust and daily max gust.  
I am not sure I explained well enough.

---

<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:** [April 27, 2023, 8:24pm UTC](https://community.tempest.earth/t/rest-api-wind-readings/20733/6 "2023-04-27T20:24:35Z")

</div>

The Tempest hub broadcasts UDP messages from the hub, this is the raw data that is being sent to Tempest. Instead of getting the wind from the Rest API, you can get the live wind data from here every 3 seconds.

Here is a Python program that reads data from the hub [GitHub - MABeatty1978/weatherListener](https://github.com/MABeatty1978/weatherListener). It’ll print the wind readings every 3 seconds, but I only coded it to format for rain and lightning, but you can get the live wind readings syntax here [WeatherFlow Tempest UDP Reference - v171](https://weatherflow.github.io/Tempest/api/udp/v171/) and modify it to your needs. Let me know if you need more help

---

<div class="post-metadata">

**Author:** ![ajmendotx](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@ajmendotx](https://community.tempest.earth/u/ajmendotx)\
**Post date:** [April 27, 2023, 8:28pm UTC](https://community.tempest.earth/t/rest-api-wind-readings/20733/7 "2023-04-27T20:28:52Z")

</div>

I did read and see some apps where others have used the Hub. I guess I need to look into grabbing from there then. Thanks for the information and the links I will check them out.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/sws/original/3X/9/5/954d64c24c1612a76fabaaa3298be78bac443b7f.png) [@system](https://community.tempest.earth/u/system)\
**Post date:** [April 26, 2024, 8:29pm UTC](https://community.tempest.earth/t/rest-api-wind-readings/20733/8 "2024-04-26T20:29:33Z")

</div>

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
