Fixes bug in config.txt that prevents data being sent
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"driverFileName": "pondlevel.py",
|
||||
"deviceName": "pondlevel",
|
||||
"driverId": "130",
|
||||
"driverId": "0130",
|
||||
"releaseVersion": "4",
|
||||
"files": {
|
||||
"file1": "pondlevel.py",
|
||||
|
||||
@@ -114,7 +114,7 @@ class start(threading.Thread, deviceBase):
|
||||
except Exception as e:
|
||||
log.warning("No stored strapping table. Got Error: {}".format(e))
|
||||
|
||||
wait_sec = 30
|
||||
wait_sec = 60
|
||||
for i in range(0, wait_sec):
|
||||
log.info("pondlevel driver will start in {} seconds".format(wait_sec - i))
|
||||
time.sleep(1)
|
||||
@@ -152,11 +152,11 @@ class start(threading.Thread, deviceBase):
|
||||
temp_psi = scale_to_eu(analog1_val, self.PSI_RAWMAX, self.PSI_RAWMIN, self.PSI_EUMAX, self.PSI_EUMIN)
|
||||
except AttributeError as err:
|
||||
log.error("Could not connect to MCU object, this device might not have an MCU: {}".format(err))
|
||||
pass
|
||||
except KeyError as err:
|
||||
log.error("Connected to MCU, but {} does not exist.".format(err))
|
||||
|
||||
pass
|
||||
|
||||
|
||||
if (now - pond_level['timestamp']) > send_time:
|
||||
log.info("Sending pond level {} due to time limit".format(temp_pl))
|
||||
pl_send_now = True
|
||||
@@ -197,8 +197,6 @@ class start(threading.Thread, deviceBase):
|
||||
send_loops = 0
|
||||
else:
|
||||
send_loops += 1
|
||||
|
||||
|
||||
time.sleep(10)
|
||||
|
||||
def _check_ip_address(self):
|
||||
|
||||
Reference in New Issue
Block a user