Commit 3ba0d75b authored by Piotr "PHT" Jasiek's avatar Piotr "PHT" Jasiek

Fixing bugs

parent c5169854
......@@ -10,7 +10,7 @@ from modules.database import *
from modules.bmp280 import *
####Constant
sensor = BME280(t_mode=BME280_OSAMPLE_8, p_mode=BME280_OSAMPLE_8, h_mode=BME280_OSAMPLE_8)
sensor = BME280(t_mode=BME280_OSAMPLE_8, p_mode=BME280_OSAMPLE_8, h_mode=BME280_OSAMPLE_8, address=0x76)
###Requesting time
......@@ -23,10 +23,10 @@ laptop_hdd = get_disk_percent('/')
laptop_fan_rpm = get_fan_rpm()
laptop_cpu_temp = get_cpu_temp()
laptop_outside_temp = round(sensor.read_temperature(), 2)
laptop_outside_humidity = round(sensor.read_humidity(), 2)
laptop_outside_pressure = round(sensor.read_pressure()/100, 2)
laptop_outside_humidity = round(sensor.read_humidity(), 0)
laptop_outside_pressure = round(sensor.read_pressure()/100, 1)
##Upload sensor reading
###Upload sensor reading
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment