Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision |
dh22 [2021/12/19 20:58] – admin | dh22 [2021/12/19 21:00] – admin |
---|
now = time.strftime('%d-%m-%Y %H:%M:%S', time.localtime(epoch)) | now = time.strftime('%d-%m-%Y %H:%M:%S', time.localtime(epoch)) |
| |
sendData('Pi Humidity', 'radiopi_humidity', humidity, '%') | sendData('KitchenPi Humidity', 'kitchenpi_humidity', round(humidity, 3), '%') |
sendData('Pi Temperature', 'radiopi_temperature', temperature, 'C') | sendData('KitchenPi Temperature', 'kitchenpi_temperature', round(temperature, 3), 'C') |
| |
print('"{0:s}","{1:0.1f}","{2:0.1f}"'.format(now, temperature, humidity)) | print('"{0:s}","{1:0.1f}","{2:0.1f}"'.format(now, temperature, humidity)) |