This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTU21D humidity value
#1
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
Reply


Messages In This Thread
HTU21D humidity value - by Swokey - 2016-03-22, 02:46 PM
RE: HTU21D humidity value - by Sailoog - 2016-03-22, 06:35 PM
RE: HTU21D humidity value - by Swokey - 2016-03-22, 09:42 PM
RE: HTU21D humidity value - by Vamonos - 2016-03-23, 02:17 AM
RE: HTU21D humidity value - by Sailoog - 2016-03-23, 09:10 PM
RE: HTU21D humidity value - by Swokey - 2016-03-27, 07:00 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)