# PWSweather functionality?

**URL:** <https://community.tempest.earth/t/pwsweather-functionality/4379>\
**Category:** Tempest Owners\
**Created:** [October 1, 2019, 8:18am UTC](https://community.tempest.earth/t/pwsweather-functionality/4379 "2019-10-01T08:18:43Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![corey](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@corey](https://community.tempest.earth/u/corey)\
**Post date:** [March 14, 2022, 9:04pm UTC](https://community.tempest.earth/t/pwsweather-functionality/4379/21 "2022-03-14T21:04:08Z")

</div>

For some reason I click on the avator and no envelope appears?

---

<div class="post-metadata">

**Author:** ![eric](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/eric/32/13553_2.png) [@eric](https://community.tempest.earth/u/eric)\
**Post date:** [March 14, 2022, 9:05pm UTC](https://community.tempest.earth/t/pwsweather-functionality/4379/22 "2022-03-14T21:05:37Z")

</div>

Try now, I upped your level and you should be able to PM now.

---

<div class="post-metadata">

**Author:** ![corey](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@corey](https://community.tempest.earth/u/corey)\
**Post date:** [March 14, 2022, 9:19pm UTC](https://community.tempest.earth/t/pwsweather-functionality/4379/23 "2022-03-14T21:19:52Z")

</div>

Works. I am able to PM him now. Thanks very much

---

<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:** [March 14, 2022, 9:32pm UTC](https://community.tempest.earth/t/pwsweather-functionality/4379/24 "2022-03-14T21:32:39Z")

</div>

I’m going to have to decline leading you by the nose through this one. You have to work at least a little to learn and learn how support yourself. A little investment of your time now will save you a lot of blood pressure down the road…

- the weewx driver and long discussion is [here](https://community.tempest.earth/t/weewx-udp-driver-for-weatherflow-station/283)
- the weewx docs start [here](https://weewx.com/docs.html)
- the weewx-user google group is [here](https://groups.google.com/g/weewx-user).
- the weewx FAQ is [here](https://github.com/weewx/weewx/wiki/WeeWX-Frequently-Asked-Questions)
- the weewx wiki is [here](https://github.com/weewx/weewx/wiki)

Short description is install the software, add the driver by following the instructions on the driver page. Use his example Tempest stanza for weewx.conf, remembering to edit your device IDs into the file to replace the example ones. It should come right up. Really.

---

<div class="post-metadata">

**Author:** ![corey](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@corey](https://community.tempest.earth/u/corey)\
**Post date:** [March 14, 2022, 9:36pm UTC](https://community.tempest.earth/t/pwsweather-functionality/4379/25 "2022-03-14T21:36:02Z")

</div>

I have invested over 10 hours in this with an older pi. So certainly there has been no lack of effort. Thanks anyways.

---

<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:** [March 14, 2022, 9:54pm UTC](https://community.tempest.earth/t/pwsweather-functionality/4379/26 "2022-03-14T21:54:13Z")

</div>

The quickstart in the docs link I provided has the ‘four’ lines you need to type verbatim and weewx will be up and running in simulator mode. @vreihen’s driver takes one command to download it and one command to install it. You’ll then need to edit a simple text file and give ‘one’ command to restart weewx.

If that’s too much heavy-lifting then I dunno what to say.

---

<div class="post-metadata">

**Author:** ![corey](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@corey](https://community.tempest.earth/u/corey)\
**Post date:** [March 14, 2022, 11:25pm UTC](https://community.tempest.earth/t/pwsweather-functionality/4379/27 "2022-03-14T23:25:28Z")

</div>

So I have deleted the whole installation and started again. The goal is to publish to PWSWeather so I can use this with my sprinkler system. It seems to be publishing but the wrong data. I have copied the sensor map for my Tempest and I assume I am using the serial number rather than the station ID. I have selected metriccx as the units. My station is reporting 7c but on PWSWeather it is showing as 0.3c. Any help is appreciated. You can see the deviation in the data below.

[https://www.pwsweather.com/station/pws/N20LONDON](https://www.pwsweather.com/station/pws/N20LONDON)

> **[Tempest](https://tempestwx.com/station/29794)**
>
> Tempest Weather System

---

<div class="post-metadata">

**Author:** ![mike11](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@mike11](https://community.tempest.earth/u/mike11)\
**Post date:** [March 14, 2022, 11:44pm UTC](https://community.tempest.earth/t/pwsweather-functionality/4379/28 "2022-03-14T23:44:24Z")

</div>

Hello

I wonder if it is still using the simulator mode.  
Once you install the WeeWx UDP driver for Weatherflow, you should be able to select the station type 0 for Weatherflow…  
You can modify the Weewx configuration by editing: **/etc/weewx/weewx.conf**

I have the Orbit Bhyve contoller and it uses my weather station from PWS . Works well.

---

<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:** [March 14, 2022, 11:44pm UTC](https://community.tempest.earth/t/pwsweather-functionality/4379/29 "2022-03-14T23:44:29Z")

</div>

See [faq how to report a problem · weewx/weewx Wiki · GitHub](https://github.com/weewx/weewx/wiki/faq-how-to-report-a-problem)

We need to see your syslog data. My ‘guess’ is that you installed the driver but you did not reconfigure weewx to ‘use’ the WF UDP driver, but in the absence of logs it’s just a guess.

Check out [the docs](https://weewx.com/docs/utilities.htm#wee_config_utility) for the wee\_config option and specifically the --reconfigure switch to it.

---

<div class="post-metadata">

**Author:** ![corey](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@corey](https://community.tempest.earth/u/corey)\
**Post date:** [March 15, 2022, 12:03am UTC](https://community.tempest.earth/t/pwsweather-functionality/4379/30 "2022-03-15T00:03:36Z")

</div>

It looks like the simulator was reporting data. I have reconfigured to use the weatherflow UDP driver. I have tried broadcast and putting in the IP address of the Tempest to no avail. It seems to be looking for broadcast udp address and as a result times out. Grateful for any suggestions.

Syslog  
Mar 14 23:51:56 raspberry weewx[8647] INFO weewx.engine: ‘pyephem’ not detected, extended almanac data is not available  
Mar 14 23:51:56 raspberry weewx[8647] DEBUG weewx.engine: Finished loading service weewx.engine.StdReport  
Mar 14 23:51:56 raspberry weewx[8647] INFO **main** : Starting up weewx version 4.7.0  
Mar 14 23:51:56 raspberry weewx[8647] DEBUG weewx.engine: Station does not support reading the time  
Mar 14 23:51:56 raspberry weewx[8647] INFO weewx.engine: Using binding ‘wx\_binding’ to database ‘weewx.sdb’  
Mar 14 23:51:56 raspberry weewx[8647] INFO weewx.manager: Starting backfill of daily summaries  
Mar 14 23:51:56 raspberry weewx[8647] INFO weewx.manager: Daily summaries up to date  
Mar 14 23:51:56 raspberry weewx[8647] INFO weewx.engine: Starting main packet loop.  
Mar 14 23:51:56 raspberry /weewxd: weatherflowudp: MainThread: Listening for UDP broadcasts to IP address on port 50222, with timeout 90 and share\_socket False…  
Mar 14 23:51:56 raspberry weewx[8647] DEBUG weewx.manager: Daily summary version is 4.0  
Mar 14 23:53:27 raspberry /weewxd: weatherflowudp: MainThread: Socket timeout waiting for incoming UDP packet!  
Mar 14 23:54:57 raspberry /weewxd: weatherflowudp: MainThread: Socket timeout waiting for incoming UDP packet!

[WeatherFlowUDP]  
driver = user.weatherflowudp  
log\_raw\_packets = True  
# udp\_address =   
udp\_address = 192.168.3.7  
# udp\_address = 255.255.255.255  
udp\_port = 50222  
udp\_timeout = 90  
share\_socket = True

```
[[sensor_map]]
    outTemp = air_temperature.HB-00021792.obs_st
    outHumidity = relative_humidity.HB-00021792.obs_st
    pressure = station_pressure.HB-00021792.obs_st
    # lightning_strikes = lightning_strike_count.HB-00021792.obs_st
    # avg_distance = lightning_strike_avg_distance.HB-00021792.obs_st
    outTempBatteryStatus = battery.HB-00021792.obs_st
    windSpeed = wind_speed.HB-00021792.rapid_wind
    windDir = wind_direction.HB-00021792.rapid_wind
    # lux = illuminance.HB-00021792.obs_st
    UV = uv.HB-00021792.obs_st
    rain = rain_accumulated.HB-00021792.obs_st
    windBatteryStatus = battery.HB-00021792.obs_st
    radiation = solar_radiation.HB-00021792.obs_st
    # lightningYYY = distance.HB-00021792.evt_strike
    # lightningZZZ = energy.HB-00021792.evt_strike
```

---

<div class="post-metadata">

**Author:** ![corey](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@corey](https://community.tempest.earth/u/corey)\
**Post date:** [March 15, 2022, 12:07am UTC](https://community.tempest.earth/t/pwsweather-functionality/4379/31 "2022-03-15T00:07:50Z")

</div>

That is my goal as well! I will get there.

---

<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:** [March 15, 2022, 12:27am UTC](https://community.tempest.earth/t/pwsweather-functionality/4379/32 "2022-03-15T00:27:08Z")

</div>

Your logfile says “share\_socket = False” but your config file snippet says True, so it’s possible you’re didn’t do a weewx restart after editing the file.

Looks like your udp\_broadcast is wrong:

```auto
udp_address = <broadcast>
    # udp_address = 0.0.0.0
    # udp_address = 255.255.255.255

    This is the broadcast address that we should be listening
    on for packets. If the driver throws an error on start,
    try one of the other commented-out options (in order).
    This seems to be platform-specific. All three work on
    Debian Linux and my Raspberry Pi, but only 0.0.0.0 works
    on my Macbook running OS-X or MacOS.

```

Just use the default. It works on a pi.

---

<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:** [March 15, 2022, 12:47am UTC](https://community.tempest.earth/t/pwsweather-functionality/4379/33 "2022-03-15T00:47:00Z")

</div>

You’re using the Hub’s serial number (HB-########) in your sensor\_map, not the Tempest’s (ST-########).

If you go to your station on the [TempestWX.com](http://TempestWX.com) web site, there is a green dot with the word “Online” at the bottom right corner of the screen. Click on that, and it will bring you to a details page that shows the serial numbers of every device being used in your station. Find the ST-########, put it in the sensor\_map above, restart WeeWX, and everything should hopefully work…

---

<div class="post-metadata">

**Author:** ![corey](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@corey](https://community.tempest.earth/u/corey)\
**Post date:** [March 15, 2022, 1:13am UTC](https://community.tempest.earth/t/pwsweather-functionality/4379/34 "2022-03-15T01:13:13Z")

</div>

**1. I have tried to run with the various suggestions and I am still getting timed out.**

pi@raspberry:/usr/share/weewx/user $ tail -f /var/log/syslog  
Mar 15 00:53:13 raspberry weewx[1956] DEBUG weewx.engine: Finished loading service weewx.engine.StdReport  
Mar 15 00:53:13 raspberry weewx[1956] INFO **main** : Starting up weewx version 4.7.0  
Mar 15 00:53:13 raspberry weewx[1956] DEBUG weewx.engine: Station does not support reading the time  
Mar 15 00:53:13 raspberry weewx[1956] INFO weewx.engine: Using binding ‘wx\_binding’ to database ‘weewx.sdb’  
Mar 15 00:53:13 raspberry weewx[1956] INFO weewx.manager: Starting backfill of daily summaries  
Mar 15 00:53:13 raspberry weewx[1956] INFO weewx.manager: Daily summaries up to date  
Mar 15 00:53:13 raspberry weewx[1956] INFO weewx.engine: Starting main packet loop.  
Mar 15 00:53:13 raspberry /weewxd: weatherflowudp: MainThread: Listening for UDP broadcasts to IP address on port 50222, with timeout 90 and share\_socket False…  
Mar 15 00:53:13 raspberry weewx[1956] DEBUG weewx.manager: Daily summary version is 4.0  
Mar 15 00:53:14 raspberry ntpd[790]: 139.162.219.252 local addr 192.168.1.65 →   
Mar 15 00:54:12 raspberry ntpd[790]: 95.215.175.2 local addr 192.168.1.65 →   
Mar 15 00:54:15 raspberry ntpd[790]: 162.159.200.123 local addr 192.168.1.65 →   
Mar 15 00:54:21 raspberry systemd[1]: Starting Cleanup of Temporary Directories…  
Mar 15 00:54:21 raspberry systemd[1]: systemd-tmpfiles-clean.service: Succeeded.  
Mar 15 00:54:21 raspberry systemd[1]: Started Cleanup of Temporary Directories.  
Mar 15 00:54:25 raspberry ntpd[790]: 80.82.244.120 local addr 192.168.1.65 →   
Mar 15 00:54:43 raspberry /weewxd: weatherflowudp: MainThread: Socket timeout waiting for incoming UDP packet!  
Mar 15 00:55:22 raspberry ntpd[790]: 162.159.200.1 local addr 192.168.1.65 →   
Mar 15 00:56:13 raspberry /weewxd: weatherflowudp: MainThread: Socket timeout waiting for incoming UDP packet!

**2. I have changed the sensor number to ST. I have tried all three methods. I am assuming that you comment out the other two methods and not have all three simultaneously.**

[WeatherFlowUDP]  
driver = user.weatherflowudp  
log\_raw\_packets = True  
udp\_address =

# udp\_address = 0.0.0.0

# udp\_address = 255.255.255.255

udp\_port = 50222  
udp\_timeout = 90  
share\_socket = True

[[sensor\_map]]  
outTemp = air\_temperature.ST-00008830.obs\_st  
outHumidity = relative\_humidity.ST-00008830.obs\_st  
pressure = station\_pressure.ST-00008830.obs\_st

# lightning\_strikes = lightning\_strike\_count.ST-00008830.obs\_st

# avg\_distance = lightning\_strike\_avg\_distance.ST-00008830.obs\_st

outTempBatteryStatus = battery.ST-00008830.obs\_st  
windSpeed = wind\_speed.ST-00008830.rapid\_wind  
windDir = wind\_direction.ST-00008830.rapid\_wind

# lux = illuminance.ST-00008830.obs\_st

UV = uv.ST-00008830.obs\_st  
rain = rain\_accumulated.ST-00008830.obs\_st  
windBatteryStatus = battery.ST-00008830.obs\_st  
radiation = solar\_radiation.ST-00008830.obs\_st

# lightningYYY = distance.ST-00008830.evt\_strike

# lightningZZZ = energy.ST-00008830.evt\_strike

**3. I have pinged to Tempest to make sure I can see it on my network that works.**

pi@raspberry:/usr/share/weewx/user $ ping 192.168.3.17  
PING 192.168.3.17 (192.168.3.17) 56(84) bytes of data.  
64 bytes from [192.168.3.17](http://192.168.3.17): icmp\_seq=1 ttl=254 time=3.52 ms  
64 bytes from [192.168.3.17](http://192.168.3.17): icmp\_seq=2 ttl=254 time=2.85 ms  
64 bytes from [192.168.3.17](http://192.168.3.17): icmp\_seq=3 ttl=254 time=3.64 ms  
64 bytes from [192.168.3.17](http://192.168.3.17): icmp\_seq=4 ttl=254 time=8.65 ms  
64 bytes from [192.168.3.17](http://192.168.3.17): icmp\_seq=5 ttl=254 time=3.12 ms  
64 bytes from [192.168.3.17](http://192.168.3.17): icmp\_seq=6 ttl=254 time=3.43 ms  
64 bytes from [192.168.3.17](http://192.168.3.17): icmp\_seq=7 ttl=254 time=3.63 ms  
64 bytes from [192.168.3.17](http://192.168.3.17): icmp\_seq=8 ttl=254 time=2.90 ms

**4. I am using an old WindowsPC running Debian. I am wondering if that would make a difference? I would think not.**

**5. Despite starting and stopping the machine and even powering it down it still does not work.**

**6. Despite share\_stock = true. It always comes up false.**

Any help gratefully received.

---

<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:** [March 15, 2022, 2:21am UTC](https://community.tempest.earth/t/pwsweather-functionality/4379/35 "2022-03-15T02:21:23Z")

</div>

Try my listener utility to see if it’s hearing anything - [(link)](https://github.com/vinceskahan/weatherflow-udp-listener) - just grab the ‘listener.py’ file and run it with “_ **python3 listen.py --raw** _” and you should see the UDP messages basically right away. Hit control-C once or twice to stop it.

Make sure you follow the “Installation” instructions to install the python3 library prerequisites.

If you have share\_socket=True on for weewx you can just let it running, or shut weewx down. Whatever you want. If you have share\_socket=False you ‘must’ shut down weewx before running my standalone listener.

My ‘guess’ is you have an incorrect ST-nnnnnnnn number but it’s just a guess. Running my listener will tell you for certain what’s being broadcast.

Or run wireshark and listen for udp/50222 on all interfaces and you can sniff it the hard way.

---

<div class="post-metadata">

**Author:** ![gizmoev](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/gizmoev/32/941_2.png) [@gizmoev](https://community.tempest.earth/u/gizmoev)\
**Post date:** [March 15, 2022, 5:35am UTC](https://community.tempest.earth/t/pwsweather-functionality/4379/36 "2022-03-15T05:35:55Z")

</div>

If you don’t see the UDP packets make sure your access point isn’t blocking them.

---

<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:** [March 15, 2022, 12:11pm UTC](https://community.tempest.earth/t/pwsweather-functionality/4379/37 "2022-03-15T12:11:47Z")

</div>

> [@corey](#):
>
> Mar 15 00:53:13 raspberry /weewxd: weatherflowudp: MainThread: Listening for UDP broadcasts to IP address on port 50222, with timeout 90 and share\_socket False…  
> .  
> .  
> .  
> udp\_address =

Needs to be `udp_address = <broadcast>` if it isn’t already. (See last paragraph for forum software cut/paste quirk that may be hiding this in your post.)

> [@](#):
>
> Mar 15 00:53:14 raspberry ntpd[790]: 139.162.219.252 local addr _ **192.168.1.65** _ →  
> .  
> .  
> .  
> pi@raspberry:/usr/share/weewx/user $ ping _ **192.168.3.17** _  
> PING 192.168.3.17 (192.168.3.17) 56(84) bytes of data.  
> 64 bytes from [192.168.3.17](http://192.168.3.17): icmp\_seq=1 ttl=254 time=3.52 ms

Are the Debian/WeeWX computer and Tempest Hub on the same IP subnet? Remember, UDP broadcasts _cannot_ cross subnet/router boundaries. Assuming the customary home router /24 subnet (netmask 255.255.255.0), 192.168.1.x and 192.168.3.y are on two different IP subnets.

Regarding the share\_socket, the spacing in the config file may be off. Python is extremely picky about indents/spaces, and the forum editor is munging the config file pastes because they are not using the editor’s pre-formatted text feature `</>` when posted…

 ![Screen Shot 2022-03-15 at 8.05.00 AM](https://us1.discourse-cdn.com/flex020/uploads/sws/original/2X/b/beb2ec0034839680086a3342d35ddd0923c9342e.png)

---

<div class="post-metadata">

**Author:** ![corey](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@corey](https://community.tempest.earth/u/corey)\
**Post date:** [March 16, 2022, 6:33am UTC](https://community.tempest.earth/t/pwsweather-functionality/4379/38 "2022-03-16T06:33:48Z")

</div>

Thanks. Yes the Tempest was on a different subnet. I use a Unifi route where all my cloud devices are an virtual lan. I did move it over and still did not work. I will try the spacing idea. Failing that I will wipe the install and start again.

---

<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:** [March 16, 2022, 3:52pm UTC](https://community.tempest.earth/t/pwsweather-functionality/4379/39 "2022-03-16T15:52:19Z")

</div>

I have to disagree to the comment about spaces in weewx.conf - it simply does not care about that at all. I’ve used random spacing all through mine for years and everything works fine.

Put both boxes on the same VLAN and make sure they’re also on the same ip subnet with the same netmask. Run my listener program on your weewx box. See if it hears anything. If it doesn’t hear anything, it’s an os or network issue.

---

<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:** [September 7, 2023, 3:53pm UTC](https://community.tempest.earth/t/pwsweather-functionality/4379/40 "2023-09-07T15:53:16Z")

</div>

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

[Previous page](https://community.tempest.earth/t/pwsweather-functionality/4379.md?page=1)
