Compare commits
1 Commits
2c9ca24164
...
ef9cc23744
Author | SHA1 | Date | |
---|---|---|---|
|
ef9cc23744 |
@ -1,4 +1,3 @@
|
|||||||
import os
|
|
||||||
import json
|
import json
|
||||||
import datetime
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
@ -19,7 +18,7 @@ heat_pin = 26
|
|||||||
|
|
||||||
heat_state = False
|
heat_state = False
|
||||||
|
|
||||||
CONFIG_FILE = "greenhouse/config/greenhouse.json"
|
CONFIG_FILE = "config/greenhouse.json"
|
||||||
|
|
||||||
GPIO.setwarnings(False)
|
GPIO.setwarnings(False)
|
||||||
GPIO.setmode(GPIO.BCM)
|
GPIO.setmode(GPIO.BCM)
|
||||||
@ -95,7 +94,6 @@ class GreenControl(Thread):
|
|||||||
while self.__run_condition:
|
while self.__run_condition:
|
||||||
if self.__trigger_read_config:
|
if self.__trigger_read_config:
|
||||||
self.__trigger_read_config = False
|
self.__trigger_read_config = False
|
||||||
log.info(os.getcwd())
|
|
||||||
with open(self.cfg_file, "r") as f:
|
with open(self.cfg_file, "r") as f:
|
||||||
self.config = json.load(f)
|
self.config = json.load(f)
|
||||||
now = datetime.datetime.now()
|
now = datetime.datetime.now()
|
||||||
|
Loading…
Reference in New Issue
Block a user