After much time, I've done it!
The following is my "CookBook" step-by-step, as to *add new Units Group to Dictionary:* Example, consider adding new Group "illuminance" with Unit 'lux' (lx), after adding 'illuminance' data to Extended Database. 1) Edit 'belchertown.py' or associated 'driverfile.py <http://xxxx.py>' file - according to your hardware - that will run upon weewx start (a driver file may makes sense, as it contains the Extension/data variable associated with the Unit) % cd /usr/share/weewx/user % nano driverfile.py <http://weatherflowupd.py> add the following (modifying accordingly to your new Group and Unit): import weewx.units (might be already in file) weewx.units.obs_group_dict['illuminance'] = 'group_illuminance' weewx.units.USUnits['group_illuminance'] = 'lux' weewx.units.MetricUnits['group_illuminance'] = 'lux' weewx.units.MetricWXUnits['group_illuminance'] = 'lux' weewx.units.default_unit_format_dict['lux'] = '%.0f' weewx.units.default_unit_label_dict['lux'] = ' lx' 2) Edit 'weewx.conf' and 'skin.conf' adding new Group and Unit accordingly 3) Restart weewx http://www.weewx.com/docs/customizing.htm#Creating_a_new_unit_group Xant -- 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/0ce744a1-1a2d-415f-8ed4-6e42a5f0e799%40googlegroups.com.
