# Lighting strikes total and distance UDP tempest

**URL:** <https://community.tempest.earth/t/lighting-strikes-total-and-distance-udp-tempest/8938>\
**Category:** Developers\
**Created:** [August 26, 2020, 8:17pm UTC](https://community.tempest.earth/t/lighting-strikes-total-and-distance-udp-tempest/8938 "2020-08-26T20:17:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![weather-display](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/weather-display/32/989_2.png) [@weather-display](https://community.tempest.earth/u/weather-display)\
**Post date:** [August 26, 2020, 8:17pm UTC](https://community.tempest.earth/t/lighting-strikes-total-and-distance-udp-tempest/8938/1 "2020-08-26T20:17:39Z")

</div>

HI  
done some searching but I am not sure of the exact UDP api format from a tempest station  
for lightning data (last strike count and distance)  
I do see this:  
UDP data {“serial\_number”:“ST-00007147”,“type”:“light\_debug”,“hub\_sn”:“HB-00016481”,“ob”:[1598472141,2863,485,0,0]}  
and then full data  
UDP data {“serial\_number”:“ST-00007147”,“type”:“obs\_st”,“hub\_sn”:“HB-00016481”,“obs”:[[1598472136,4.07,8.25,11.24,263,3,1004.33,11.97,67.08,21750,1.62,181,0.000000,0,0,0,2.572,1]],“firmware\_revision”:133}

I think the lightning data in the full sensor UDP data is the last 2 zeros before the 2.572 (battery voltage)?

Thanks for any help  
Brian

---

<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:** [August 26, 2020, 9:08pm UTC](https://community.tempest.earth/t/lighting-strikes-total-and-distance-udp-tempest/8938/2 "2020-08-26T21:08:45Z")

</div>

Here’s the documentation for UDP v143: [https://weatherflow.github.io/SmartWeather/api/udp/v143/](https://weatherflow.github.io/SmartWeather/api/udp/v143/). In a Tempest message, the lightning data is index 14 and 15 (i.e. the last two zeros before the 2.572). The “light\_debug” message is not associated with lightning strikes. I believe that is a brightness/solar radiation debug message.

---

<div class="post-metadata">

**Author:** ![weather-display](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/weather-display/32/989_2.png) [@weather-display](https://community.tempest.earth/u/weather-display)\
**Post date:** [August 26, 2020, 9:27pm UTC](https://community.tempest.earth/t/lighting-strikes-total-and-distance-udp-tempest/8938/3 "2020-08-26T21:27:28Z")

</div>

cool., thanks  
looks like I do have that correct  
I am going to see if I can trigger a stike with a BBQ lighter,…

---

<div class="post-metadata">

**Author:** ![weather-display](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/weather-display/32/989_2.png) [@weather-display](https://community.tempest.earth/u/weather-display)\
**Post date:** [August 26, 2020, 9:52pm UTC](https://community.tempest.earth/t/lighting-strikes-total-and-distance-udp-tempest/8938/4 "2020-08-26T21:52:16Z")

</div>

![tempest](https://us1.discourse-cdn.com/flex020/uploads/sws/original/2X/9/9dbc7bc88870a4341236b2688bb012857237e461.jpeg)

my setup 🙂  
(am getting false rain due to vibrations in the TV mast…but this would be I would think a relatively common type of install…I do have tuck tape around the top of the pole)
