ok, I tried, it's working ! :D
so finally, I updated my database with:
update archive set Isolar=(Isolar/1000) where Isolar > 0;
worked fine!
I added this in extension.py:
weewx.units.conversionDict['amp'] = {'milliamp': lambda x : x * 1000}
weewx.units.conversionDict['milliamp'] = {'amp': lambda x : x * 0.001}
weewx.units.default_unit_format_dict['milliamp'] = '%.0f'
weewx.units.default_unit_label_dict['amp'] = ' A'
weewx.units.default_unit_label_dict['milliamp'] = ' mA'
weewx.units.obs_group_dict['Isolar'] = 'group_amp'
and I changed units where needed in weewx.conf for example here:
[[battery]]
HTML_ROOT = /var/www/html/weewx
skin = solar
enable = true
[[[Units]]]
[[[[Groups]]]]
group_amp = milliamp
my sensor software is also updated to emit amps instead of mA values (I
tried a couple of dummy values, to be confirmed in real tomorrow with the
sun :)
--
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.