There are ST-nnnnnn in the raw packets and ST_nnnnnn in the parsed
packets. I previously had added a couple more loginf() statements to print
raw, parsed and loop. The parsed rapid_wind packet for the Tempest is in a
different order than the Sky rapid_wind packet.
>From parseUDPPacket.py (line 211):
def parseUDPPacket(pkt):
packet = dict()
if 'serial_number' in pkt:
if 'type' in pkt:
serial_number = pkt['serial_number'].replace("-","_")
Some additional log data:
Feb 22 19:32:43 MITX-6930 weewx[15023]: weatherflowudp: MainThread: raw
packet: {'serial_number': 'SK-00015052', 'type': 'rapid_wind', 'ob':
[1677123161, 0.0, 0], 'hub_sn': 'HB-00011764'}
Feb 22 19:32:43 MITX-6930 weewx[15023]: weatherflowudp: MainThread:
pkt_type: rapid_wind
Feb 22 19:32:43 MITX-6930 weewx[15023]: weatherflowudp: MainThread:
pkt_label: SK_00015052.rapid_wind
Feb 22 19:32:43 MITX-6930 weewx[15023]: weatherflowudp: MainThread: i:
serial_number
Feb 22 19:32:43 MITX-6930 weewx[15023]: weatherflowudp: MainThread:
pkt_item: serial_number.SK_00015052.rapid_wind
Feb 22 19:32:43 MITX-6930 weewx[15023]: weatherflowudp: MainThread: i: type
Feb 22 19:32:43 MITX-6930 weewx[15023]: weatherflowudp: MainThread:
pkt_item: type.SK_00015052.rapid_wind
Feb 22 19:32:43 MITX-6930 weewx[15023]: weatherflowudp: MainThread: i: ob
Feb 22 19:32:43 MITX-6930 weewx[15023]: weatherflowudp: MainThread:
pkt_item: ob.SK_00015052.rapid_wind
Feb 22 19:32:43 MITX-6930 weewx[15023]: weatherflowudp: MainThread: i:
hub_sn
Feb 22 19:32:43 MITX-6930 weewx[15023]: weatherflowudp: MainThread:
pkt_item: hub_sn.SK_00015052.rapid_wind
Feb 22 19:32:43 MITX-6930 weewx[15023]: weatherflowudp: MainThread: parsed
packet: {'serial_number.SK_00015052.rapid_wind': 'SK-00015052',
'type.SK_00015052.rapid_wind': 'rapid_wind',
'hub_sn.SK_00015052.rapid_wind': 'HB-00011764',
'time_epoch.SK_00015052.rapid_wind': 1677123161,
'ob.SK_00015052.rapid_wind': [1677123161, 0.0, 0],
'wind_speed.SK_00015052.rapid_wind': 0.0,
'wind_direction.SK_00015052.rapid_wind': 0, 'time_epoch': 1677123161}
Feb 22 19:32:43 MITX-6930 weewx[15023]: weatherflowudp: MainThread: Loop
packet: {'windDir': 0, 'windSpeed': 0.0, 'usUnits': 17, 'dateTime':
1677123161}
Feb 22 19:32:42 MITX-6930 weewx[15023]: weatherflowudp: MainThread: raw
packet: {'serial_number': 'ST-00060370', 'type': 'rapid_wind', 'ob':
[1677123160, 0.0, 0], 'hub_sn': 'HB-00016474'}
Feb 22 19:32:42 MITX-6930 weewx[15023]: weatherflowudp: MainThread:
pkt_type: rapid_wind
Feb 22 19:32:42 MITX-6930 weewx[15023]: weatherflowudp: MainThread:
pkt_label: ST_00060370.rapid_wind
Feb 22 19:32:42 MITX-6930 weewx[15023]: weatherflowudp: MainThread: i:
serial_number
Feb 22 19:32:42 MITX-6930 weewx[15023]: weatherflowudp: MainThread:
pkt_item: serial_number.ST_00060370.rapid_wind
Feb 22 19:32:42 MITX-6930 weewx[15023]: weatherflowudp: MainThread: i: type
Feb 22 19:32:42 MITX-6930 weewx[15023]: weatherflowudp: MainThread:
pkt_item: type.ST_00060370.rapid_wind
Feb 22 19:32:42 MITX-6930 weewx[15023]: weatherflowudp: MainThread: i: ob
Feb 22 19:32:42 MITX-6930 weewx[15023]: weatherflowudp: MainThread:
pkt_item: ob.ST_00060370.rapid_wind
Feb 22 19:32:42 MITX-6930 weewx[15023]: weatherflowudp: MainThread: i:
hub_sn
Feb 22 19:32:42 MITX-6930 weewx[15023]: weatherflowudp: MainThread:
pkt_item: hub_sn.ST_00060370.rapid_wind
Feb 22 19:32:42 MITX-6930 weewx[15023]: weatherflowudp: MainThread: parsed
packet: {'hub_sn.ST_00060370.rapid_wind': 'HB-00016474',
'serial_number.ST_00060370.rapid_wind': 'ST-00060370',
'time_epoch.ST_00060370.rapid_wind': 1677123160,
'wind_direction.ST_00060370.rapid_wind': 0,
'wind_speed.ST_00060370.rapid_wind': 0.0, 'time_epoch': 1677123160,
'type.ST_00060370.rapid_wind': 'rapid_wind', 'ob.ST_00060370.rapid_wind':
[1677123160, 0.0, 0]}
Feb 22 19:32:42 MITX-6930 weewx[15023]: weatherflowudp: MainThread: Loop
packet: {'usUnits': 17, 'dateTime': 1677123160}
On Wednesday, February 22, 2023 at 2:16:21 PM UTC-8 vince wrote:
> Nope. I think you have typos in there. You have ST_nnnnn as well as
> ST-nnnnn.
>
> On Wednesday, February 22, 2023 at 1:53:05 PM UTC-8 Patrick Mendiuk wrote:
>
>> Has there been a change to the Weatherflow UDP format? I have a WeeWX
>> 3.9.1 installation that has been running without issue with Weatherflow Sky
>> and Air Sensors. The Weatherflow Sky sensor partially failed and I wanted
>> to replace the Sky data with Tempest data but I am not seeing any updates
>> for those fields after editing weewx.conf and restarting WeeWX. When I
>> look at syslog I see this for the Sky sensor:
>>
>> Feb 22 13:08:39 MITX-6930 weewx[31934]: weatherflowudp: MainThread: raw
>> packet: {'serial_number': 'SK-00015052', 'type': 'rapid_wind', 'ob':
>> [1677100117, 0.52, 170], 'hub_sn': 'HB-00011764'}
>> Feb 22 13:08:39 MITX-6930 weewx[31934]: weatherflowudp: MainThread:
>> parsed packet: {'serial_number.SK_00015052.rapid_wind': 'SK-00015052',
>> 'type.SK_00015052.rapid_wind': 'rapid_wind',
>> 'hub_sn.SK_00015052.rapid_wind': 'HB-00011764',
>> 'time_epoch.SK_00015052.rapid_wind': 1677100117,
>> 'ob.SK_00015052.rapid_wind': [1677100117, 0.52, 170],
>> 'wind_speed.SK_00015052.rapid_wind': 0.52,
>> 'wind_direction.SK_00015052.rapid_wind': 170, 'time_epoch': 1677100117}
>>
>> For the Tempest Sensor I see this:
>>
>> Feb 22 13:08:39 MITX-6930 weewx[31934]: weatherflowudp: MainThread: Loop
>> packet: {'windDir': 170, 'windSpeed': 0.52, 'usUnits': 17, 'dateTime':
>> 1677100117}
>> Feb 22 13:08:47 MITX-6930 weewx[31934]: weatherflowudp: MainThread: raw
>> packet: {'firmware_revision': 172, 'serial_number': 'ST-00060370', 'type':
>> 'obs_st', 'obs': [[1677100124, 1.36, 1.81, 2.31, 34, 20, 992.97, 0.13,
>> 90.52, 55199, 2.28, 460, 0.0, 0, 0, 0, 2.713, 1]], 'hub_sn': 'HB-00016474'}
>> Feb 22 13:08:47 MITX-6930 weewx[31934]: weatherflowudp: MainThread:
>> parsed packet: {'serial_number.ST_00060370.obs_st': 'ST-00060370',
>> 'obs.ST_00060370.obs_st': [[1677100124, 1.36, 1.81, 2.31, 34, 20, 992.97,
>> 0.13, 90.52, 55199, 2.28, 460, 0.0, 0, 0, 0, 2.713, 1]],
>> 'type.ST_00060370.obs_st': 'obs_st', 'hub_sn.ST_00060370.obs_st':
>> 'HB-00016474', 'firmware_revision.ST_00060370.obs_st': 172}
>> Feb 22 13:08:47 MITX-6930 weewx[31934]: weatherflowudp: MainThread: Loop
>> packet: {}
>>
>> I don't see any updates for the Weatherflow UDP driver since 2020 so I am
>> wondering if the Weatherflow UDP format for the Tempest sensor changed
>> since then.
>>
>>
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/185cdc12-fd3e-4bb3-a1da-4144eaafceabn%40googlegroups.com.