Commit 772543ed authored by Piotr "PHT" Jasiek's avatar Piotr "PHT" Jasiek

Temporary suspension of "Greenhouse" project - disconnecting all of the sensors.

parent 2cfb0f47
......@@ -11,13 +11,13 @@ from modules.bmp280 import *
from modules.dht11 import *
####Adding kernel modules
os.system('modprobe i2c-dev')
os.system('modprobe w1-gpio')
os.system('modprobe w1-therm')
#os.system('modprobe w1-gpio')
#os.system('modprobe w1-therm')
####
####Constant
outside_sensor = BME280(t_mode=BME280_OSAMPLE_8, p_mode=BME280_OSAMPLE_8, h_mode=BME280_OSAMPLE_8, address=0x76)
greenhouse_sensor = BME280(t_mode=BME280_OSAMPLE_8, p_mode=BME280_OSAMPLE_8, h_mode=BME280_OSAMPLE_8, address=0x77)
#greenhouse_sensor = BME280(t_mode=BME280_OSAMPLE_8, p_mode=BME280_OSAMPLE_8, h_mode=BME280_OSAMPLE_8, address=0x77)
inside_sensor = 17
#outside_sensor = '/sys/bus/w1/devices/28-0000074e18a7/w1_slave'
#inside_sensor = '/sys/bus/w1/devices/28-0000074e7326/w1_slave'
......@@ -34,9 +34,9 @@ outside_temp = round(outside_sensor.read_temperature(), 2)
outside_humidity = round(outside_sensor.read_humidity(), 0)
outside_pressure = round(outside_sensor.read_pressure()/100, 1)
greenhouse_temp = round(greenhouse_sensor.read_temperature(), 2)
greenhouse_humidity = round(greenhouse_sensor.read_humidity(), 0)
greenhouse_pressure = round(greenhouse_sensor.read_pressure()/100, 1)
#greenhouse_temp = round(greenhouse_sensor.read_temperature(), 2)
#greenhouse_humidity = round(greenhouse_sensor.read_humidity(), 0)
#greenhouse_pressure = round(greenhouse_sensor.read_pressure()/100, 1)
inside_temp = get_from_dht11(inside_sensor, "temp")
inside_hum = get_from_dht11(inside_sensor, "hum")
......@@ -56,9 +56,9 @@ try:
add_record(request_time, 'inside_hum', inside_hum)
# add_record(request_time, 'desktop_temp', temp_desktop)
add_record(request_time, 'greenhouse_temp', greenhouse_temp)
add_record(request_time, 'greenhouse_hum', greenhouse_humidity)
add_record(request_time, 'greenhouse_pressure' , greenhouse_pressure)
# add_record(request_time, 'greenhouse_temp', greenhouse_temp)
# add_record(request_time, 'greenhouse_hum', greenhouse_humidity)
# add_record(request_time, 'greenhouse_pressure' , greenhouse_pressure)
add_record(request_time, 'device_proc_temp', temp_station_controller)
......
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