rtgd-0.5.5 extension Wind Direction Average

132 views
Skip to first unread message

David Marshall

unread,
Oct 31, 2022, 7:34:05 PM10/31/22
to weewx-user
Built a new station using an esp32 which mqtt’s data every second to a Raspi. A python program converts this to a txt file which I then file parse into weewx. All ok.
I have successfully installed the steelseries gauges and the rtgd extension. All works fine and it is fantastic to see the gauges updating in real time.

Just one small problem - the Wind Direction gauge shows latest and average, but the average is always the same as the latest. Tried playing with the rtgd.py program but even when I set data[avgdirection] to a different value, nothing  changes.

Any ideas?

gary....@gmail.com

unread,
Nov 1, 2022, 12:16:57 AM11/1/22
to weewx-user
Use the MQTT driver which takes the data directly from your mosquitto server.
Avoids all the middleware.
I use Rich's excellent package.

gjr80

unread,
Nov 1, 2022, 1:50:51 AM11/1/22
to weewx-user
Thanks for spotting this. There is an issue is v0.5.5 that maps current wind direction to both the 'bearing' and 'avgbearing' fields used by the SteelSeries gauges. I should have a fix by tomorrow.

Gary

David Marshall

unread,
Nov 1, 2022, 12:26:52 PM11/1/22
to weewx-user
Thanks Gary, looking at that.
Tried to keep things as simple as possible at the esp32 end, (which by the way is an amazing piece of kit for $10). So it is sending very raw data - number of clicks from the rain bucket, number of revolutions from the wind cups, for example. The python program then converts this into sensible data.
If I need to make any changes in the esp32 it needs to be physically connected to the pc using the Arduino ide, which is a pain. Also wanted to make as few demands on it as possible until I see how stable it is. But so far so good.
If it stays stable will try the direct mqtt driver.
David

David Marshall

unread,
Nov 1, 2022, 12:28:59 PM11/1/22
to weewx-user
Thanks Gary, that would be great.
Amazing piece of work by the way.
David

gjr80

unread,
Nov 3, 2022, 2:58:33 AM11/3/22
to weewx-user
I've released v0.6.0 which should fix the average bearing/current bearing issue highlighted in this thread. The release can be found in the usual place.

In testing v0.6.0 I've noticed a problem with sporadic windrun updates on the Wind Rose gauge. I'm not sure if this a bug or an issue with my system as it needs more debug time than I have available just now. I will investigate later this week and if necessary make a dot dot release.

Gary  

Δημήτρης Βήχος

unread,
Nov 3, 2022, 9:55:40 AM11/3/22
to weewx-user
something goes wrong with 0.6.0 vresion to me. log tel me after installing and restarting weewx

Nov  3 09:36:57 metfm weewx[9966] INFO user.rtgd: rtgdthread: ****   File "/usr/share/weewx/user/rtgd.py", line 2155, in get_field_value
Nov  3 09:36:57 metfm weewx[9966] INFO user.rtgd: rtgdthread: ****     _conv_default = weeutil.weeutil.convert(this_field_map['default'],
Nov  3 09:36:57 metfm weewx[9966] INFO user.rtgd: rtgdthread: **** AttributeError: module 'weeutil.weeutil' has no attribute 'convert'
Nov  3 09:37:57 metfm weewx[9966] INFO user.rtgd: rtgdthread: **** Traceback (most recent call last):
Nov  3 09:37:57 metfm weewx[9966] INFO user.rtgd: rtgdthread: ****   File "/usr/share/weewx/user/rtgd.py", line 1896, in process_packet
Nov  3 09:37:57 metfm weewx[9966] INFO user.rtgd: rtgdthread: ****     data = self.calculate(cached_packet)
Nov  3 09:37:57 metfm weewx[9966] INFO user.rtgd: rtgdthread: ****   File "/usr/share/weewx/user/rtgd.py", line 2390, in calculate
Nov  3 09:37:57 metfm weewx[9966] INFO user.rtgd: rtgdthread: ****     data[field] = self.get_field_value(field, packet)
Nov  3 09:37:57 metfm weewx[9966] INFO user.rtgd: rtgdthread: ****   File "/usr/share/weewx/user/rtgd.py", line 2155, in get_field_value
Nov  3 09:37:57 metfm weewx[9966] INFO user.rtgd: rtgdthread: ****     _conv_default = weeutil.weeutil.convert(this_field_map['default'],
Nov  3 09:37:57 metfm weewx[9966] INFO user.rtgd: rtgdthread: **** AttributeError: module 'weeutil.weeutil' has no attribute 'convert'

im going back to 0.5.5  and all works  fine

gjr80

unread,
Nov 3, 2022, 10:20:57 AM11/3/22
to weewx-user
Download and install it again.

Gary

Δημήτρης Βήχος

unread,
Nov 3, 2022, 3:00:19 PM11/3/22
to weewx-user
οκ after reinstalling works fine .

David Marshall

unread,
Nov 3, 2022, 4:17:48 PM11/3/22
to weewx-user
All working fine.
Many thanks for the new release.
Reply all
Reply to author
Forward
0 new messages