Desktop shourtcat
Desktop Shortcuts
Desktop Shortcuts
http://pimylifeup.com/raspberry-pi-security-camera/
https://www.element14.com/community/docs/DOC-73950/l/raspberry-pi-3-model-b-gpio-40-pin-block-pinout
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: