$ sudo mv /home/weewx/skins/Seasons/sensors.inc /home/weewx/skins/Seasons/sensors_orig.inc$ sudo mv /etc/weewx/skins/Seasons/sensors.inc /home/weewx/skins/Seasons/sensors_orig.inc$ wget -P /home/weewx/skins/Seasons https://raw.githubusercontent.com/gjr80/weewx-gw1000/master/supplementary/skins/Seasons/sensors.inc$ wget -P /etc/weewx/skins/Seasons https://raw.githubusercontent.com/gjr80/weewx-gw1000/master/supplementary/skins/Seasons/sensors.inc[Labels]
# Override some labels. No need to identify these as a "Battery"
# or "Voltage", because that is included in the template.
[[Generic]]
....
wh31_ch1_batt = Garage (WH31)
wh31_ch2_batt = Kitche (WH31)
wh41_ch1_batt = Dining (WH41)
wh51_ch1_batt = Front Garden (WH51)
wh51_ch3_batt = Flower Bed (WH51)
wh57_batt = Lightning (WH57)
You could also place these entries in weewx.conf under [StdReport] [[SeasonsReport]] [[Labels]]] [[[[Generic]]]]. The choice is yours, arguably weewx.conf is upgrade safe but it is highly unlikely that a WeeWX upgrade will make destructive changes to Seasons skin.conf.
5. On the next report cycle provided you have sensor battery state data in your archive record it should be included in the Seasons main page Sensor Status panel. Note you may have to refresh the page.
Gary
Gary
But once I cleaned up the "sensors.inc" file to only include the sensors that are actually connecting, it worked beautifully.Aug 13 23:11:01 myweewx weewx[24594] DEBUG weewx.reportengine: Running reports for latest time in the database.Aug 13 23:11:01 myweewx weewx[24594] DEBUG weewx.reportengine: Running report 'SeasonsReport'Aug 13 23:11:01 myweewx weewx[24594] DEBUG weewx.reportengine: Found configuration file /home/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'Aug 13 23:11:01 myweewx weewx[24594] DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']Aug 13 23:11:01 myweewx weewx[24594] DEBUG weewx.manager: Daily summary version is 2.0Aug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: Generate failed with exception '<class 'TypeError'>'Aug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** Ignoring template /home/weewx/skins/Seasons/index.html.tmplAug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** Reason: 'UnknownType' object is not subscriptableAug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** Traceback (most recent call last):Aug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 322, in generateAug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** unicode_string = compiled_template.respond()Aug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** File "_home_weewx_skins_Seasons_index_html_tmpl.py", line 225, in respondAug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1708, in _handleCheetahIncludeAug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** self._CHEETAH__cheetahIncludes[_includeID].respond(trans)Aug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** File "_home_weewx_skins_Seasons_sensors_inc.py", line 325, in respondAug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/units.py", line 1083, in rawAug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** return self._raw_value_tuple[0]Aug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/units.py", line 1106, in _raw_value_tupleAug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** vtx = self.converter.convert(self.value_t)Aug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/units.py", line 889, in convertAug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** if val_t[1] is None and val_t[2] is None:Aug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** TypeError: 'UnknownType' object is not subscriptableAug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: Generate failed with exception '<class 'TypeError'>'Aug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** Ignoring template /home/weewx/skins/Seasons/telemetry.html.tmplAug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** Reason: 'UnknownType' object is not subscriptableAug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** Traceback (most recent call last):Aug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 322, in generateAug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** unicode_string = compiled_template.respond()Aug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** File "_home_weewx_skins_Seasons_telemetry_html_tmpl.py", line 195, in respondAug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1708, in _handleCheetahIncludeAug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** self._CHEETAH__cheetahIncludes[_includeID].respond(trans)Aug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** File "_home_weewx_skins_Seasons_sensors_inc.py", line 325, in respondAug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/units.py", line 1083, in rawAug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** return self._raw_value_tuple[0]Aug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/units.py", line 1106, in _raw_value_tupleAug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** vtx = self.converter.convert(self.value_t)Aug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/units.py", line 889, in convertAug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** if val_t[1] is None and val_t[2] is None:Aug 13 23:11:01 myweewx weewx[24594] ERROR weewx.cheetahgenerator: **** TypeError: 'UnknownType' object is not subscriptableAug 13 23:11:01 myweewx weewx[24594] INFO weewx.cheetahgenerator: Generated 6 files for report SeasonsReport in 0.25 secondsAug 13 23:11:01 myweewx weewx[24594] DEBUG weewx.manager: Daily summary version is 2.0Aug 13 23:11:01 myweewx weewx[24594] INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 0.17 secondsAug 13 23:11:01 myweewx weewx[24594] INFO weewx.reportengine: Copied 0 files to /home/weewx/public_htmlAug 13 23:11:01 myweewx weewx[24594] DEBUG weewx.reportengine: Report 'SmartphoneReport' not enabled. Skipping.Aug 13 23:11:01 myweewx weewx[24594] DEBUG weewx.reportengine: Report 'MobileReport' not enabled. Skipping.Aug 13 23:11:01 myweewx weewx[24594] DEBUG weewx.reportengine: Report 'StandardReport' not enabled. Skipping.Aug 13 23:11:01 myweewx weewx[24594] DEBUG weewx.reportengine: Report 'FTP' not enabled. Skipping.Aug 13 23:11:01 myweewx weewx[24594] DEBUG weewx.reportengine: Report 'RSYNC' not enabled. Skipping.
Thanks again for your efforts, and very nice work!Aug 13 23:16:02 myweewx weewx[24594] DEBUG weewx.reportengine: Running reports for latest time in the database.Aug 13 23:16:02 myweewx weewx[24594] DEBUG weewx.reportengine: Running report 'SeasonsReport'Aug 13 23:16:02 myweewx weewx[24594] DEBUG weewx.reportengine: Found configuration file /home/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'Aug 13 23:16:02 myweewx weewx[24594] DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']Aug 13 23:16:02 myweewx weewx[24594] DEBUG weewx.manager: Daily summary version is 2.0Aug 13 23:16:02 myweewx weewx[24594] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 0.28 secondsAug 13 23:16:02 myweewx weewx[24594] DEBUG weewx.manager: Daily summary version is 2.0Aug 13 23:16:02 myweewx weewx[24594] INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 0.17 secondsAug 13 23:16:02 myweewx weewx[24594] INFO weewx.reportengine: Copied 0 files to /home/weewx/public_htmlAug 13 23:16:02 myweewx weewx[24594] DEBUG weewx.reportengine: Report 'SmartphoneReport' not enabled. Skipping.Aug 13 23:16:02 myweewx weewx[24594] DEBUG weewx.reportengine: Report 'MobileReport' not enabled. Skipping.Aug 13 23:16:02 myweewx weewx[24594] DEBUG weewx.reportengine: Report 'StandardReport' not enabled. Skipping.Aug 13 23:16:02 myweewx weewx[24594] DEBUG weewx.reportengine: Report 'FTP' not enabled. Skipping.Aug 13 23:16:02 myweewx weewx[24594] DEBUG weewx.reportengine: Report 'RSYNC' not enabled. Skipping.Aug 13 23:17:01 myweewx CRON[24631]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/103277e3-c643-4a6a-b540-9435f7bceda7o%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscribe@googlegroups.com.