rastabrew

git clone https://git.tarina.org/rastabrew
Log | Files | Refs

commit 2f1f3098c0eb2487d7f4965b9550dd84edcf52c0
parent 175058c73523b1b01242c9f4261e497813c22ee0
Author: rob <rob@tarina.org>
Date:   Mon, 22 Aug 2022 22:54:51 +0300

någå

Diffstat:
Mride_on.py | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/ride_on.py b/ride_on.py @@ -36,6 +36,12 @@ GPIO.setup(4, GPIO.IN) # PIR1 brewerishere = False while True: + with Onewire('u') as o: + devices = o.get() + print(devices) + humidity = o.sensor('26.CD0492010000').humidity + temp1 = o.sensor('26.CD0492010000').temperature + temp2 = o.sensor('28.2F1F7C060000').temperature if GPIO.input(4): brewerishere = True else: