Compare commits

...

No commits in common. 'master' and 'main' have entirely different histories.
master ... main

  1. 3
      CHANGELOG.md
  2. 11
      victron_mqtt_exporter.py

@ -11,6 +11,3 @@ All notable changes to this project will be documented in this file.
## [1.0.0] - 2022-10-28
First working version.
## [1.0.1] - 2022-11-10
Program used 100% cpu due to inefficient while-loop. Fixed.

@ -633,16 +633,15 @@ def main():
victron_mqtt_keep_alive(mqtt_client)
# Get system time for keepalive delay loop
#starttime = time.time()
starttime = time.time()
while 1 == 1:
# Should be called every 30 seconds to keep Victron Energy Cebo GX awake (keepalive)
time.sleep(30)
#if time.time() - starttime > 30:
#logging.info(f"Keepalive")
victron_mqtt_keep_alive(mqtt_client)
#starttime = time.time()
if time.time() - starttime > 30:
#logging.info(f"Keepalive")
victron_mqtt_keep_alive(mqtt_client)
starttime = time.time()
loop_stop()

Loading…
Cancel
Save