User Tools

Site Tools


dh22

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
dh22 [2021/12/19 21:00] admindh22 [2021/12/19 21:07] (current) admin
Line 1: Line 1:
-====== DH22 ======+====== DH22 - HomeAssistant ====== 
 + 
 +Get values (temperature and humidity) from DH22, round the values and send it to HomeAssistant
  
 <code python> <code python>
 #!/usr/bin/python3 #!/usr/bin/python3
  
-import os, sys 
 import Adafruit_DHT import Adafruit_DHT
 import time import time
 import requests import requests
-import html 
  
 def sendData(name, sensor, value, unit): def sendData(name, sensor, value, unit):
dh22.txt · Last modified: 2021/12/19 21:07 by admin