Hi,

You are correct in that sensors.inc needs to be modified and you probably 
want to add a few entries to the Seasons skin.conf or weewx.conf as well. I 
have included a modified sensors.inc 
<https://github.com/gjr80/weewx-gw1000/tree/master/supplementary/skins/Seasons> 
in the GW100 driver repo on GitHub. To modify Seasons to display GW100 
sensor battery states:

1. move aside your existing skins/Seasons/sensor.inc by renaming it to 
sensors_orig.inc. For setup.py installs:

$ sudo mv /home/weewx/skins/Seasons/sensors.inc /home/weewx/skins/Seasons/
sensors_orig.inc

or for package installs:

$ sudo mv /etc/weewx/skins/Seasons/sensors.inc /home/weewx/skins/Seasons/
sensors_orig.inc

2. download sensors.inc from the GW1000 driver GitHub repo, for setup.py 
installs:

$ wget -P /home/weewx/skins/Seasons https:
//raw.githubusercontent.com/gjr80/weewx-gw1000/master/supplementary/skins/Seasons/sensors.inc

or for package installs:

$ wget -P /etc/weewx/skins/Seasons https:
//raw.githubusercontent.com/gjr80/weewx-gw1000/master/supplementary/skins/Seasons/sensors.inc

3. edit sensors.inc and make the necessary changes to $sensor_batt_data to 
reflect the sensors connected to your GW1000. There are comments towards 
the top of the file that describe how to make the changes.

4. edit Seasons/skin.conf and if required add suitable descriptive names 
for each sensor state field under the [Labels] [[Generic]] stanza. These 
labels are the text that will appear for each sensor battery state entry in 
the Sensor Status panel. For example:

[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




On Wednesday, 12 August 2020 00:15:33 UTC+10, Blaze wrote:
>
> Hi,
>
> How do I show the battery status for my Ecowitt weather sensors? This is a 
> default install running on "Ubuntu 20.04.1 LTS". I installed WeeWx using 
> the setup.py,  with Apache2, WeeWx v4.1.1 and the new GW1000 driver 
> (gw1000-0.1.0b10.tar.gz).  As you can see below I am getting the data, but 
> I don't understand how to get battery status to show on my page. I assume I 
> need to modify the "/home/weewx/skins/Seasons/sensors.inc" file, but I'm 
> not sure what I would need to add or change. Can someone give me pointers?
>
> Aug 10 03:05:25 myweewx weewx[14186] DEBUG gw1000: user.gw1000: Filtered 
> parsed data: {'intemp': 21.5, 'inhumid': 54, 'absbarometer': 985.8, 
> 'relbarometer': 985.8, 'outtemp': 24.0, 'outhumid': 80, 'soilmoist1': 53, 
> 'soilmoist2': 37, 'soilmoist3': 47, 'soilmoist4': 59, 'temp1': 19.3, 
> 'humid1': 59, 'wh26_batt': 0, 'wh31_ch1_batt': 0, 'wh51_ch1_batt': 0, 
> 'wh51_ch2_batt': 0, 'wh51_ch3_batt': 0, 'wh51_ch4_batt': 0, 
> 'wh51_ch5_batt': 0, 'datetime': 1597028725}
> Aug 10 03:05:25 myweewx weewx[14186] DEBUG gw1000: user.gw1000: Next 
> update in 60 seconds
> Aug 10 03:05:25 myweewx weewx[14186] DEBUG gw1000: user.gw1000: Augmented 
> packet: {'dateTime': 1597028725, 'usUnits': 17, 'inTemp': 21.5, 'outTemp': 
> 24.0, 'inHumidity': 54, 'outHumidity': 80, 'pressure': 985.8, 
> 'relbarometer': 985.8, 'extraTemp1': 19.3, 'extraHumid1': 59, 'soilMoist1': 
> 53, 'soilMoist2': 37, 'soilMoist3': 47, 'soilMoist4': 59, 'wh26_batt': 0, 
> 'wh31_ch1_batt': 0, 'wh51_ch1_batt': 0, 'wh51_ch2_batt': 0, 
> 'wh51_ch3_batt': 0, 'wh51_ch4_batt': 0, 'wh51_ch5_batt': 0}
>
> Thanks!
> Rob
>

-- 
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/103277e3-c643-4a6a-b540-9435f7bceda7o%40googlegroups.com.

Reply via email to