Thanks. I found that in units.py and was reading the comments about the
value tuples. I assumed that the "target units" was whatever was defined
in weewx.conf.
I am new to Python and objects, really, since it's been over twenty years
since I wrote anything. What it looks like to me, for the
Function weewx.units.convertStd() is what you want. For example, to convert
from Celsius to whatever unit system the LOOP packet is using:
new_valueTuple = weewx.units.convertStd((22.5, "degree_C",
"group_temperature"), packet['usUnits'])
If you haven't run into them yet, read up about "ValueTup
I want to convert from the native Pa and °C to whatever the user has configured
weewx to use when I add to either the LOOP or archive data.
I'll check there. Thanks.
Depends on exactly what you want to do. There are a bunch of conversion
programs in module weewx.units, mostly in the bottom third of the file.
-tk
On Thu, Apr 6, 2017 at 1:54 PM, Craig Thom wrote:
> I know I saw, somewhere, a way to call an existing weewx method to convert
> units to whatever
Thx for feedback Andy !!
Nice to hear it works fine !
the MQTT driver works fine also on my side, with barometer & inTemp sensors.
Still slowly but not stopping developping the other sensors
I know I saw, somewhere, a way to call an existing weewx method to convert
units to whatever is needed, but I can't find it again. It may have been
in a service in the Wiki rather than in the documentation, because I can't
find it there.
Is there such a thing?
I didn't like how limited the A
I have given up on trying to use the SPI interface with my own code. It
works using code I found using pigpio, but, ultimately, I decided to just
use the i2c interface and branch the i2c pins to allow my RTC to keep
working.
It works using i2c and the Adafruit software. This weekends project,