# WeatherFlow UDP API listener/simulator tools and github repo

**URL:** <https://community.tempest.earth/t/weatherflow-udp-api-listener-simulator-tools-and-github-repo/19947>\
**Category:** Third-Party Integrations\
**Created:** [January 28, 2023, 12:16am UTC](https://community.tempest.earth/t/weatherflow-udp-api-listener-simulator-tools-and-github-repo/19947 "2023-01-28T00:16:56Z")\
**Posts on this page:** 10\
**Page:** 1

<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:** [January 28, 2023, 12:16am UTC](https://community.tempest.earth/t/weatherflow-udp-api-listener-simulator-tools-and-github-repo/19947/1 "2023-01-28T00:16:56Z")

</div>

Since Sept-2018 (wow) I’ve made a python-based UDP [listener/publisher](https://community.tempest.earth/t/weatherflow-udp-listener-and-mqtt-influxdb-publisher-utility/2053) utility available to the WF community. In Feb-2021, I later added a minimal Hub simulator too.

Time to integrate them and catch them up a bit.

ANNOUNCEMENT:

- As of today, Jan-27-2023, a new integrated ‘_ **wfudptools** _’ repo is available [(HERE)](https://github.com/vinceskahan/wfudptools), with this thread opened for any announcements, discussions, etc.

- I’ve set the old github repos to indicate they’re deprecated, and have asked the mods here to close the threads for the two original tools.

COMPATIBILITY DETAILS:

- python3 is now required
- renamed existing utilities for consistency

NEW PACKAGING FEATURES

- the pre-built python wheel under dist/ should download and install any needed module prerequisites for you
- the python wheel is also installable as --user (no privs needed) or into a python venv if you like doing it that way

USAGE:

- `wfudplistener [options]`
- `wfudpsimulator`

INSTALLATION:

- `pip3 install wfudptools [--user]`

SHORT DESCRIPTION

- same stuff, better installation, more integrated/simpler installation/removal possible

Enjoy. Be sure to keep up with the README file on the github repo above for any details you’ll need to know.

PyPi package is available for download [(HERE)](https://pypi.org/project/wfudptools/) but you should generally just use the pip3 install mechanism that will do the right thing.

---

<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:** [January 28, 2023, 3:33am UTC](https://community.tempest.earth/t/weatherflow-udp-api-listener-simulator-tools-and-github-repo/19947/2 "2023-01-28T03:33:36Z")

</div>

update - this is available on pypi now, so a simple “_**pip3 install wfudptools [–user]**_” should do the trick. I have things set currently as version 5.0.1b1 for now. Let me know if you find unexpected ‘features’.

Uninstalling is as simple as changing ‘install’ to ‘uninstall’ above. Pretty slick.

---

<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:** [February 25, 2023, 7:37pm UTC](https://community.tempest.earth/t/weatherflow-udp-api-listener-simulator-tools-and-github-repo/19947/3 "2023-02-25T19:37:56Z")

</div>

updated to 5.1.0 which adds the ability to use influxdb 5.1.0 (thanks Kiel!)

> **[wfudptools](https://pypi.org/project/wfudptools/)**
>
> WeatherFlow UDP API compliant python tools

---

<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:** [November 3, 2023, 8:50pm UTC](https://community.tempest.earth/t/weatherflow-udp-api-listener-simulator-tools-and-github-repo/19947/4 "2023-11-03T20:50:30Z")

</div>

Updated to 5.2.0 - now throws periodic lightning strikes, bumps rapid\_wind and temperature occasionally, and reports a little rain so things show up if you run the wfpiconsole in UDP mode vs. the simulator.

Possible breaking change for some - I hardcoded my ST-00006021 as the station id so I can test here easier. Just look for that string near the top of the file and edit as needed for your location. Someday I’ll get around to making a commandline switch to let you set the id at runtime. Someday.

---

<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:** [January 17, 2024, 10:35pm UTC](https://community.tempest.earth/t/weatherflow-udp-api-listener-simulator-tools-and-github-repo/19947/5 "2024-01-17T22:35:28Z")

</div>

updated to 5.3.0 which now supports influxdb v2 (thanks kiel), otherwise minor updates

---

<div class="post-metadata">

**Author:** ![chris8](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/chris8/32/8260_2.png) [@chris8](https://community.tempest.earth/u/chris8)\
**Post date:** [July 27, 2024, 6:31am UTC](https://community.tempest.earth/t/weatherflow-udp-api-listener-simulator-tools-and-github-repo/19947/6 "2024-07-27T06:31:00Z")

</div>

Thanks for this Vince. I just installed today using pip3. I’m trying to write the data to Influxdb2 but I keep getting this error:

```auto
File "/Users/---/Library/Python/3.9/lib/python/site-packages/wfudptools/listener.py", line 622, in influxdb2_publish from influxdb_client import InfluxDBClient, Point, WritePrecision
ModuleNotFoundError: No module named 'influxdb_client'

```

I’m using this set of command line of arguments:

```auto
python3 wfudplistener --limit "obs_st" --influxdb2 --influxdb2_url="http://10.0.1.11:9999/" --influxdb2_org=weatherflow --influxdb2_token=*mytoken* --influxdb2_bucket=weatherflow2_test --influxdb2_debug -M -n

```

---

<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:** [July 27, 2024, 4:23pm UTC](https://community.tempest.earth/t/weatherflow-udp-api-listener-simulator-tools-and-github-repo/19947/7 "2024-07-27T16:23:15Z")

</div>

Looks like I didn’t include the influxdb library in the pip requirements list…

Try running **`pip3 install influxdb-client`** to add the influxdb library and let me know if it works ‘and’ which version you installed.

I opened [influxdb-client missing from poetry dependencies · Issue #8 · vinceskahan/wfudptools · GitHub](https://github.com/vinceskahan/wfudptools/issues/8) so I can keep track of this for when I eventually get around to updating the tool.

---

<div class="post-metadata">

**Author:** ![chris8](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/chris8/32/8260_2.png) [@chris8](https://community.tempest.earth/u/chris8)\
**Post date:** [July 27, 2024, 6:57pm UTC](https://community.tempest.earth/t/weatherflow-udp-api-listener-simulator-tools-and-github-repo/19947/8 "2024-07-27T18:57:33Z")

</div>

> [@vinceskahan](#):
>
> pip3 install influxdb-client

Thanks for the quick reply Vince! Managed to get past the influxdb-client issue with your suggestion.

Now running into an issue with numpy. But I think that’s my issue, not yours. I’m trying to run this on an Apple M1 machine and I’m getting an error about the incompatible architecture installed for numpy.

---

<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:** [July 27, 2024, 7:12pm UTC](https://community.tempest.earth/t/weatherflow-udp-api-listener-simulator-tools-and-github-repo/19947/9 "2024-07-27T19:12:42Z")

</div>

I have a M1 so I can test that but it won’t be til Monday

---

<div class="post-metadata">

**Author:** ![chris8](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/chris8/32/8260_2.png) [@chris8](https://community.tempest.earth/u/chris8)\
**Post date:** [July 27, 2024, 7:24pm UTC](https://community.tempest.earth/t/weatherflow-udp-api-listener-simulator-tools-and-github-repo/19947/10 "2024-07-27T19:24:25Z")

</div>

Thanks again Vince for your quick reponse. I just managed to get it to work by updating numpy to the latest version (2.0.1). Really appreciate your willingness to help!
