On Saturday, April 27, 2019 at 10:40:19 PM UTC-4, Ken Booth wrote: > > Uggh! I've just dumped the schema and there's not enough temperature, > humidity, pressure, battery level, and signal strength columns for 11 > sensors > > There's only 3 extraTemps and it would be messy to hijack soilTemp and > leafTemp, there's only 2 extraHumids, only 1 baramoter and signal, and no > extraBatteryStatus > > Looks like it's going to be a lot of work to rewrite everything to > duplicate what hubapi.myacurite.com used to do :-( >
it is really not that difficult. if you are starting from scratch, just extend the wview schema: 1 copy the wview schema definition to a new file cp bin/schemas/wview.py bin/user/wview_extended.py 2 add as many temperature and humidity fields as you need by modifying the new schema file. see this for an example of what 8 temperature/humidity sensors and signals looks like: https://github.com/weewx/weewx/blob/schema/bin/schemas/wview_extended.py 3 add the units for each new field. in the file bin/user/extensions.py add something like this: import weewx.units weewx.units.obs_group_dict['extraTemp4'] = 'group_temperature' weewx.units.obs_group_dict['extraTemp5'] = 'group_temperature' weewx.units.obs_group_dict['extraTemp6'] = 'group_temperature' weewx.units.obs_group_dict['extraTemp7'] = 'group_temperature' weewx.units.obs_group_dict['extraHumid4'] = 'group_percent' weewx.units.obs_group_dict['extraHumid5'] = 'group_percent' weewx.units.obs_group_dict['extraHumid6'] = 'group_percent' weewx.units.obs_group_dict['extraHumid7'] = 'group_percent' 4 tell weewx to use the new schema. in the weewx configuration file do this: [DataBindings] [[wx_binding]] ... schema = user.wview_extended.schema 5 delete or move aside any existing weewx database 6 start weewx if you need to retain existing data it is slightly more complicated. the process is explained in the weewx customization guide. m -- 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]. For more options, visit https://groups.google.com/d/optout.
