From 4ad7f2e5111ca9e27dcbe5781c87f249bc7377ad Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Thu, 9 Nov 2023 13:57:26 +0100 Subject: added new function to get env which handles missing env better... --- scripts/neohub.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts/neohub.py') diff --git a/scripts/neohub.py b/scripts/neohub.py index bf43859..f4c4f2b 100644 --- a/scripts/neohub.py +++ b/scripts/neohub.py @@ -2,15 +2,14 @@ """ Get stuff from neohub! This is mostly the usage-example from https://gitlab.com/neohubapi/neohubapi/ """ import asyncio -import os import time from datetime import datetime import common import neohubapi.neohub as neohub -neohub_ip = os.environ["el_neohub_ip"] -neohub_port = os.environ["el_neohub_port"] +neohub_ip = common.env("el_neohub_ip") +neohub_port = common.env("el_neohub_port") SLEEP = 120 # Sleep between runs -- cgit v1.2.3