Here's what I have working:
#!/usr/bin/env python
import syslog
import weewx
from weewx.wxengine import StdService
from Adafruit_BME280 import *
class PressureService(StdService):
def __init__(self, engine, config_dict):
super(PressureService, self).__init__(engine, config_dict)
Thanks. I read above that Tom suggested
new_valueTuple = weewx.units.convertStd((22.5, "degree_C",
"group_temperature"), packet['usUnits'])
However packet is undefined in eg, the electricity example. (I get an error)
So I am doing
pres_tuple = weewx.units.convertStd((hectopascals, "mbar",
Right.. ok, makes sense now.
The file from Craig Thom seems to do a lot of processing, and converting,
and filtering/massaging... so wasn't clear on that point
So I went back to the electricity example in the customizing guide, and it
sort of makes sense now!
I am not sure what all that
Hi,
In this case order matters. The StdArchive service is the service that does the
final processing of archive records and ultimately saves the archive record to
database. You have placed your service after StdArchive so by the time your
service is obtaining data, and presumably adding it to
I am also interested in this, and here's what I've managed to do / not do.
I attached the sensor, and ran
sudo i2cdetect -y 1
to check it was there.
It was showing as position 0x77, which is decimal 119 just as in Craig's
post above.
These parts were missing above, and I eventually figured