Sht71 – pi
Pi paket https://pypi.python.org/pypi/sht-sensor/15.01.5 Sht71 easy_install pip pip install sht-sensor from sht_sensor import Sht sht = Sht(21, 17) print ‘Temperature’, sht.read_t() print ‘Relative Humidity’, sht.read_rh()
Pi paket https://pypi.python.org/pypi/sht-sensor/15.01.5 Sht71 easy_install pip pip install sht-sensor from sht_sensor import Sht sht = Sht(21, 17) print ‘Temperature’, sht.read_t() print ‘Relative Humidity’, sht.read_rh()
import time def read_ds1820(senzor): tempfile = open(“/sys/bus/w1/devices/”+senzor+”/w1_slave”) thetext = tempfile.read() tempfile.close() tempdata = thetext.split(“\n”)[1].split(” “)[9] temperature = float (tempdata[2:]) temperature = temperature / 1000 return temperature while 1: print “t1:
Prenesi stran: https://www.siteground.com/tutorials/wordpress/transfer-wordpress/ V drugo domeno: https://www.siteground.com/tutorials/wordpress/change-url.htm
To je moja vsa dokumentacija …
Rezervacija vstavi
Dostopnost
Slikana dokumentacija
Ni izvlečka, ker je prispevek zaščiten.