I still have a lot of fun with openplotter. Now I'm using it for a new project (creating mine own drying place for meat). I allready have tried a lot, but I don't have a solution yet. So if anyone can help me it would be great.
The action/triggers are not a solution because I need to combine several input before I do an action.
I need the output of the humidity from the HTU21D. When I use it with openplotter I see the NMEA sentence with the correct value. So I extracted the code from the i2c.py file with that what I think need.
Why don't get I the humidity?
--------------------------------
import socket, time, pynmea2, RTIMU, math, csv
SETTINGS_FILE3 = "RTIMULib3"
s3 = RTIMU.Settings(SETTINGS_FILE3)
humidity_val = RTIMU.RTHumidity(s3)
humidity_val.humidityInit()
humidity_val_b = True
humidity=''
humidity=read[1]
hum=round(humidity,1)
print hum
humidity=''
-------------------------------
Kind regards
The action/triggers are not a solution because I need to combine several input before I do an action.
I need the output of the humidity from the HTU21D. When I use it with openplotter I see the NMEA sentence with the correct value. So I extracted the code from the i2c.py file with that what I think need.
Why don't get I the humidity?
--------------------------------
import socket, time, pynmea2, RTIMU, math, csv
SETTINGS_FILE3 = "RTIMULib3"
s3 = RTIMU.Settings(SETTINGS_FILE3)
humidity_val = RTIMU.RTHumidity(s3)
humidity_val.humidityInit()
humidity_val_b = True
humidity=''
humidity=read[1]
hum=round(humidity,1)
print hum
humidity=''
-------------------------------
Kind regards