diff --git a/GaugeProjectApache/py/main.py b/GaugeProjectApache/py/main.py index 42317b3..f2f6848 100644 --- a/GaugeProjectApache/py/main.py +++ b/GaugeProjectApache/py/main.py @@ -258,6 +258,13 @@ def main(): time.sleep(15) if (int(currentDT.hour) == 23): + + gauge_chart = pygal.Gauge(human_readable=True) + try: + open('static/svg/kWhHourly.svg', 'w').close() + except: + print("Exception") + mainkWhConstant = myFunction("Main (kWh)") if mainkWhConstant == '': mainkWhConstant = 0