I was getting an error after installing the gjr80 <https://github.com/gjr80> / * weewx-realtime_gauge-data <https://github.com/gjr80/weewx-realtime_gauge-data> * extension so I reinstalled everything from scratch. After reinstalling from scratch (OS, Apache, Weewx, RealtimeGauge-Data extension) I get the same error:
Sep 7 20:23:33 WeeWx2021 weewx[3153] INFO weewx.engine: Starting main packet loop. Sep 7 20:23:33 WeeWx2021 weewx[3153] INFO user.rtgd: rtgdthread: **** Traceback (most recent call last): Sep 7 20:23:33 WeeWx2021 weewx[3153] INFO user.rtgd: rtgdthread: **** File "/usr/share/weewx/user/rtgd.py", line 1815, in process_packet Sep 7 20:23:33 WeeWx2021 weewx[3153] INFO user.rtgd: rtgdthread: **** data = self.calculate(cached_packet) Sep 7 20:23:33 WeeWx2021 weewx[3153] INFO user.rtgd: rtgdthread: **** File "/usr/share/weewx/user/rtgd.py", line 2187, in calculate Sep 7 20:23:33 WeeWx2021 weewx[3153] INFO user.rtgd: rtgdthread: **** data[field] = self.get_field_value(field, packet) Sep 7 20:23:33 WeeWx2021 weewx[3153] INFO user.rtgd: rtgdthread: **** File "/usr/share/weewx/user/rtgd.py", line 1944, in get_field_value Sep 7 20:23:33 WeeWx2021 weewx[3153] INFO user.rtgd: rtgdthread: **** _raw_vt = as_value_tuple(packet, source) Sep 7 20:23:33 WeeWx2021 weewx[3153] INFO user.rtgd: rtgdthread: **** File "/usr/share/weewx/weewx/units.py", line 1740, in as_value_tuple Sep 7 20:23:33 WeeWx2021 weewx[3153] INFO user.rtgd: rtgdthread: **** val = record_dict[obs_type] Sep 7 20:23:33 WeeWx2021 weewx[3153] INFO user.rtgd: rtgdthread: **** KeyError: 'beaufort' Sep 7 20:23:33 WeeWx2021 weewx[3153] INFO user.rtgd: rtgdthread: **** Traceback (most recent call last): Sep 7 20:23:33 WeeWx2021 weewx[3153] INFO user.rtgd: rtgdthread: **** File "/usr/share/weewx/user/rtgd.py", line 1815, in process_packet Sep 7 20:23:33 WeeWx2021 weewx[3153] INFO user.rtgd: rtgdthread: **** data = self.calculate(cached_packet) Sep 7 20:23:33 WeeWx2021 weewx[3153] INFO user.rtgd: rtgdthread: **** File "/usr/share/weewx/user/rtgd.py", line 2187, in calculate Sep 7 20:23:33 WeeWx2021 weewx[3153] INFO user.rtgd: rtgdthread: **** data[field] = self.get_field_value(field, packet) Sep 7 20:23:33 WeeWx2021 weewx[3153] INFO user.rtgd: rtgdthread: **** File "/usr/share/weewx/user/rtgd.py", line 1944, in get_field_value Sep 7 20:23:33 WeeWx2021 weewx[3153] INFO user.rtgd: rtgdthread: **** _raw_vt = as_value_tuple(packet, source) Sep 7 20:23:33 WeeWx2021 weewx[3153] INFO user.rtgd: rtgdthread: **** File "/usr/share/weewx/weewx/units.py", line 1740, in as_value_tuple Sep 7 20:23:33 WeeWx2021 weewx[3153] INFO user.rtgd: rtgdthread: **** val = record_dict[obs_type] What am I doing wrong? Thank you, Marty On Tuesday, September 7, 2021 at 7:28:05 AM UTC-7 Marty b wrote: > Thank you. I will give it a try today... > > On Tuesday, September 7, 2021 at 5:49:19 AM UTC-7 gjr80 wrote: > >> There are a couple of ways you can disable generation of gauge-data.txt >> by the SteelSeries skin, but the simplest is to edit the SteelSeries skin >> skin config file (/etc/weewx/skins/ss/skin.conf) and comment out the >> highlighted lines under [CheetahGenerator]: >> >> [CheetahGenerator] >> encoding = html_entities >> [[ToDate]] >> [[[index]]] >> template = index.html.tmpl >> # [[[data]]] >> # template = gauge-data.txt.tmpl >> >> Save the file (no need to restart WeeWX) and the SteelSeries skin will no >> longer generate gauge-data.txt. The only downside of this approach is if >> you ever re-install or update the SteelSeries skin you will need to revisit >> the skin config file and disable the gauge-data.txt generation. >> >> Gary >> On Tuesday, 7 September 2021 at 12:16:41 UTC+10 Marty b wrote: >> >>> Thank you. I will make sure I have the realtime gauge-data extension >>> installed and enabled. >>> >>> How do I disable the generation of the gauge-data.txt by the SteelSeries >>> skin? >>> >>> Marty >>> >>> On Monday, September 6, 2021 at 6:56:03 PM UTC-7 gjr80 wrote: >>> >>>> Thanks. The logs indicate that you have the SteelSeries skin >>>> <https://github.com/weewx/weewx/wiki/steelseries> installed and the >>>> Realtime >>>> gauge-data extension >>>> <https://github.com/gjr80/weewx-realtime_gauge-data>, if installed, is >>>> not enabled. The SteelSeries skin generates gauge-data.txt during the >>>> report cycle at the end of every archive period, in your case every five >>>> minutes. The wiki you are referring to is for the Realtime gauge-data >>>> extension which can generate gauge-data.txt on receipt of each loop >>>> packet, >>>> in your case every 2.5 odd seconds. The setting for the Realtime >>>> gauge-data >>>> extension have no effect on the SteelSeries skin. >>>> >>>> If you want gauge-data.txt to be generated on every loop packet then >>>> you need to install (or enable if already installed) the Realtime >>>> gauge-data extension. Note you will then. need to disable generation of >>>> gauge-data.txt by the SteelSeries skin or you will have the skin and the >>>> extension both generating gauge-data.txt. This would be bad. >>>> >>>> Gary >>>> >>>> On Tuesday, 7 September 2021 at 10:40:54 UTC+10 Marty b wrote: >>>> >>>>> Hi, >>>>> >>>>> Thanks for the response. The logs are attached.... >>>>> >>>>> Marty >>>>> >>>>> On Monday, September 6, 2021 at 4:22:58 PM UTC-7 gjr80 wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> There are two means of having WeeWX generate gauge-data.txt; one is >>>>>> via the SteelSeries skin and the other is via the real-time gauge data >>>>>> extension. The former generates gauge-data.txt no quicker than every >>>>>> archive interval the latter up to every ‘loop interval’. It sounds like >>>>>> you >>>>>> may be using the former. It would help to know what you have installed >>>>>> and >>>>>> enabled. Could you please set debug = 1 in weewx.conf and then restart >>>>>> WeeWX. Let WeeWX run for at least two archive intervals and then post >>>>>> the >>>>>> log showing the full WeeWX startup through until the two archive >>>>>> intervals >>>>>> have passed.nThat will tell us exactly what your install is doing. >>>>>> >>>>>> Gary >>>>>> On Tuesday, 7 September 2021 at 08:03:42 UTC+10 Marty b wrote: >>>>>> >>>>>>> Hello everyone, >>>>>>> >>>>>>> I am trying to figure out how to get gauge-data.txt to update each >>>>>>> time a loop packet is received. Currently it only updates at the same >>>>>>> interval as the rest of the weewx files (~every 10 minutes). I looked >>>>>>> at >>>>>>> the wiki page for extension, but the section for ' Changing how >>>>>>> often *gauge-data.txt* is generated' says ' To be written.' >>>>>>> >>>>>>> Any help would be appreciated. >>>>>>> >>>>>>> Thanks! >>>>>>> >>>>>> -- 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/25890607-45f5-4a5f-a6d9-0ba980d9bf35n%40googlegroups.com.
