From 21a3036b31f1c5d195e645b988800c0a887ac0fd Mon Sep 17 00:00:00 2001 From: britkat Date: Mon, 22 Aug 2022 19:34:47 +0100 Subject: [PATCH] 1.1.6 --- startup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/startup.py b/startup.py index b79341e2..77ec6675 100644 --- a/startup.py +++ b/startup.py @@ -100,17 +100,17 @@ while True: for inv in range(1,int(os.getenv('NUMINVERTORS'))+1): PATH= "/app/GivTCP_"+str(inv) - if os.getenv('SELF_RUN') and not selfRun[inv].poll()==None: + if os.getenv('SELF_RUN')==True and not selfRun[inv].poll()==None: logger.error("Self Run loop process died. restarting...") os.chdir(PATH) logger.critical ("Running Invertor read loop every "+str(os.getenv('SELF_RUN_LOOP_TIMER'))) selfRun[inv]=subprocess.Popen(["/usr/local/bin/python3",PATH+"/read.py", "self_run2"]) - elif os.getenv('MQTT_OUTPUT') and not mqttClient[inv].poll()==None: + elif os.getenv('MQTT_OUTPUT')==True and not mqttClient[inv].poll()==None: logger.error("MQTT Client process died. Restarting...") os.chdir(PATH) logger.critical ("Subscribing Mosquitto on port "+str(os.getenv('MQTT_PORT'))) mqttClient[inv]=subprocess.Popen(["/usr/local/bin/python3",PATH+"/mqtt_client.py"]) - elif os.getenv('WEB_DASH') and not webDash[inv].poll()==None: + elif os.getenv('WEB_DASH')==True and not webDash[inv].poll()==None: logger.error("Web Dashboard process died. Restarting...") os.chdir(PATH2) WDPORT=int(os.getenv('WEB_DASH_PORT'))+inv-1