Open kskenyon opened 2 years ago
I'm going to need more information. What version of WeeWX? What station and driver? Does the error occur immediately on startup or sporadically? Is this a new install or has it been working in the past? A debug log will help answer a number of these questions - refer to this WeeWX Wiki entry on how to get a good log extract.
Weewx 4.8.0
rtgd.py 0.5.5
MQTTSubscribe.py in Driver mode.
python 3.7.3
Everything is working fine without rtgd.py. This error seems to stop the loop.
Hi, is a solution for these problem? I have changed my weatherstation and now I have the same error. With TE923 it works, with Weatherflow not. weeWX 4.10.2 latest RTGD version 0.6.2 Thank you!
No there is no solution, happy to look into it but I will need more information. With your system set to use weather flow can you:
debug = 1
. To do this edit weewx.conf
, set debug = 1
, save weewx.conf
and restart WeeWX. Let WeeWX run for at least a couple of archive periods or until the error occurs. Take a WeeWX log extract covering from when you restarted WeeWX through until the the two archive periods have elapsed or the error occurred. Please provide the full log extract, don't edit/delete anything. If you need help getting a log extract this WeeWX wiki entry may help.Actually, I think I may have found the issue. Can you try rtgd.py
v0.6.3 as follows:
rename you existing rtgd.py
to rtgd_orig.py
or something else, rtgd.py
should be in /home/weewx/bin/user
or /usr/share/weewx/user
depending on your WeeWX install
download rtgd.py
v0.6.3 and save it in place of the old rtgd.py
using the following command:
$ wget -P /home/weewx/bin/user https://raw.githubusercontent.com/gjr80/weewx-realtime_gauge-data/master/bin/user/rtgd.py
changing /home/weewx/bin/user
to /usr/share/weewx/user
if required, you may also need to prefix wget
with sudo
, again depending on your install
restart WeeWX
monitor the WeeWX log for errors, if any occur please make a copy of the log and post back here
Thank you very much. I have done the steps and until now no error message appeared. Regards
windGust data should be coming into the buffer but...
INFO user.rtgd: rtgdthread: Traceback (most recent call last): INFO user.rtgd: rtgdthread: File "/usr/share/weewx/user/rtgd.py", line 1889, in process_packet INFO user.rtgd: rtgdthread: data = self.calculate(cached_packet) INFO user.rtgd: rtgdthread: File "/usr/share/weewx/user/rtgd.py", line 2157, in calculate INFO user.rtgd: rtgdthread: wgust = self.buffer['windGust'].history_max(ts, age=600).value INFO user.rtgd: rtgdthread: AttributeError: 'NoneType' object has no attribute 'value'