On Monday, September 5, 2016 at 3:11:37 AM UTC-4, Macha wrote: > > 1. I set my station type (WEA22) in weewx.conf as 'model = WEA22'. > However, $station.hardware in the .tmpl file seems to return > 'FineOffSetUSB'. Have I missed something? >
$station.hardware returns the name of the driver. the station registry uses station_type (the name of the driver) and station_model (same as $station.hardware) the value for $station.hardware depends on the hardware. for fine offset stations it should be the value of the 'model' parameter in the [FineOffsetUSB] stanza. i have no idea where FineOffSetUSB would be coming from (note the capitalization) > 2. It seems have started returning 'true' for $current.ET.has_data, > together with some values. I don't understand this and I wonder if some > guidance could be offered on how to track down where it originates? > $current.ET.has_data should be true if ET has a value other than None > 3. I needed a new group (illuminance) with a value 'lux' and symbol 'lx'. > I put the relevant additions into units.py. Obviously, I'll have to > remember this if (and when) I next update. So my question is whether it's > possible to add a new group via the .conf files without tinkering with the > core files? > to extend units, modify the file user/extensions.py. for example, to add the group and accumulator information do something like this: weewx.units.obs_group_dict['grid_power'] = 'group_power' # watt weewx.units.obs_group_dict['grid_energy'] = 'group_energy' # watt-hour weewx.accum.extract_dict['grid_energy'] = weewx.accum.Accum.sum_extract changes made in the user directory will not be modified across updates. 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.
