# Refresh interval or UDP

**URL:** <https://community.tempest.earth/t/refresh-interval-or-udp/11172>\
**Category:** Developers\
**Created:** [December 21, 2020, 10:51pm UTC](https://community.tempest.earth/t/refresh-interval-or-udp/11172 "2020-12-21T22:51:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ferid2203](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/ferid2203/32/10549_2.png) [@ferid2203](https://community.tempest.earth/u/ferid2203)\
**Post date:** [December 21, 2020, 10:51pm UTC](https://community.tempest.earth/t/refresh-interval-or-udp/11172/1 "2020-12-21T22:51:05Z")

</div>

Hello there,  
I had received station yesterday,  
I see that “[https://swd.weatherflow.com/swd/rest/better\_forecast](https://swd.weatherflow.com/swd/rest/better_forecast)” have refresh\_interval\_seconds: 60,  
is it possible to set to 10seconds or get data in realtime?  
I also see that UDP only listen to local network, is it possible to listen to public(open port 50222 in router settings not helped, because I can’t access to my ip:50222 from remote VPS).  
Do I need to bind station to my public ip.?

---

<div class="post-metadata">

**Author:** ![fpb](https://avatars.discourse-cdn.com/v4/letter/f/76d3ee/32.png) [@fpb](https://community.tempest.earth/u/fpb)\
**Post date:** [December 22, 2020, 3:10am UTC](https://community.tempest.earth/t/refresh-interval-or-udp/11172/2 "2020-12-22T03:10:47Z")

</div>

I think the Tempest (station) reports all sensors **except** wind every 60 secs. Wind, I think it’s every 3 seconds. So, I guess it’s hardcoded to have a balance between refresh rate / battery life?

I haven’t tested to see if there is a way to push that packets to a specific IP, I’m interested as well since I want to have the Tempest in a different VLAN than the Pi Console for example.

---

<div class="post-metadata">

**Author:** ![GaryFunk](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/garyfunk/32/5729_2.png) [@GaryFunk](https://community.tempest.earth/u/GaryFunk)\
**Post date:** [December 22, 2020, 5:50am UTC](https://community.tempest.earth/t/refresh-interval-or-udp/11172/3 "2020-12-22T05:50:59Z")

</div>

The Hub collects the data from the sensor array and transmits the packet once every 60 seconds. There is no method for that time to be changed.

UDP data stays on the network of which the Hub belongs.

---

<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:** [December 22, 2020, 4:32pm UTC](https://community.tempest.earth/t/refresh-interval-or-udp/11172/4 "2020-12-22T16:32:17Z")

</div>

> [@fpb](#):
>
> I haven’t tested to see if there is a way to push that packets to a specific IP, I’m interested as well since I want to have the Tempest in a different VLAN than the Pi Console for example

Typically if you want to segregate IoT devices onto a separate VLAN, you also would put any devices needing to talk to them on that VLAN as well, or else why did you bother VLAN’ing in the first place ?

Stick your PiConsole on the same VLAN.

---

<div class="post-metadata">

**Author:** ![fpb](https://avatars.discourse-cdn.com/v4/letter/f/76d3ee/32.png) [@fpb](https://community.tempest.earth/u/fpb)\
**Post date:** [December 22, 2020, 5:27pm UTC](https://community.tempest.earth/t/refresh-interval-or-udp/11172/5 "2020-12-22T17:27:38Z")

</div>

I have a completely segregated LAN 🙂 including FW rules to only Allow or Deny what I want the devices to pass.

I currently have the WF and the Pi Console in a IoT VLAN and they works perfectly.

---

<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:** [December 22, 2020, 6:50pm UTC](https://community.tempest.earth/t/refresh-interval-or-udp/11172/6 "2020-12-22T18:50:28Z")

</div>

@fpb - I misread your reply and didn’t catch that you were just speculating about forwarding. Sorry.

---

<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:** [December 22, 2020, 6:52pm UTC](https://community.tempest.earth/t/refresh-interval-or-udp/11172/7 "2020-12-22T18:52:06Z")

</div>

> [@ferid2203](#):
>
> I also see that UDP only listen to local network, is it possible to listen to public

No, UDP is a ‘broadcast’ from the hub to the LAN subnet. It is not listening. It is transmitting.

What exactly are you trying to accomplish ?

---

<div class="post-metadata">

**Author:** ![peter4](https://avatars.discourse-cdn.com/v4/letter/p/cc9497/32.png) [@peter4](https://community.tempest.earth/u/peter4)\
**Post date:** [December 30, 2020, 2:18pm UTC](https://community.tempest.earth/t/refresh-interval-or-udp/11172/8 "2020-12-30T14:18:33Z")

</div>

@ferid2203 if you have a Linux-like system on the same network segment as the hub you should be able to relay messages with that system as unicast UDP with something as simple as **while [1]; do socat -u -s udp-recv:50222 udp:10.1.2.3:50222; done** where the “while” loop is used to respawn the forwarder as needed (it will die if the specifed remote destination replies that it’s not listening for anything on port 50222).
