in principle all seems to be correct in
weewx.conf
now, how to check the database: get yourself the sqlitebrowser and look it up yourself
sudo apt-get install sqlitebrowser
you will have to load your database and you can see everything, all records etc.
but you may have a unit problem as the Ecowitt battery status comes over either as integer values (0, 1, 2, 3) or as voltage e.g. 1.64
As far as I know Gary has described this in the Ecowitt Gateway WiKi
therefore the units to be used (which may be
different from wsview_extended schema) need to be added to
extensions.py
https://github.com/gjr80/weewx-gw1000/wiki/Sensor-battery-states
and make sure you have the respective
entries in your extension.py
e.g.
weewx.units.obs_group_dict['wh51_ch1_batt'] = 'group_volt'
weewx.units.obs_group_dict['wn34_ch1_batt'] = 'group_volt'
and
weewx.units.obs_group_dict['wh31_ch1_batt'] = 'group_count'
etc.
the signal levels should also belong to group_count
try that ...
--
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/437461fd-ddf9-49c6-a10b-a8ba8737690fn%40googlegroups.com.
If the predefined unit of a database field
changes (i.e. you want it to be changed), weewx needs to be told
how to interprete the value stored in this field.
Entries in extensions.py will override the default unit
definitions weewx keeps in a table at runtime (the
obs_group_dict).
E.g.
you have more than 4 soil moisture sensors
SM1 - SM4 you can simply assign to the wsview_extended database
field soilMoist1-4
but you have 6 SM sensors and want to use the soilTemp1-2 fields
to store the values
be it via a field_map_extension or via an assignment in
[StdCalibrate] [[Corrections]]
the default unit for SoilTemp1 is degree_celsius - you want it
to be percent, you enter in extensions.py
weewx.units.obs_group_dict['soilTemp1']
= 'group_percent'
you have to make an entry for each database
field whose unit interpretation you want to change
weewx.units.obs_group_dict['soilTemp2']
= 'group_percent'
as you want to use the database fields SoilTemp1 and SoilTemp2,
but don't want °C to be shown in the reports
so it's always the database field name
in the above example - the default unit for
soilMoisture1-4 is cb (centibar) which is the unit group
"group_moisture" - you may want it to be percent as we did for
SM5-6
then you will have to add 4 entries to extensions.py
weewx.units.obs_group_dict['soilMoist1'] = 'group_percent'
weewx.units.obs_group_dict['soilMoist2']
= 'group_percent'
weewx.units.obs_group_dict['soilMoist3']
= 'group_percent'
weewx.units.obs_group_dict['soilMoist4']
= 'group_percent'
If you have only 2 WH51 and want to display
their readings in percent, you only need the first two entries
now you should know which field name to put in extensions.py for your WH51 battery status ... 😎
changes in extensions.py become only effective after a restart of
weewx !
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/002dccfa-1e56-4c8d-8cdb-44fbd8e9285cn%40googlegroups.com.