mirror of
https://github.com/alexhopeoconnor/SunGather.git
synced 2026-10-04 02:48:12 +10:00
19 lines
493 B
Python
19 lines
493 B
Python
import logging
|
|
|
|
class export_console(object):
|
|
def __init__(self):
|
|
return
|
|
|
|
# Configure MQTT
|
|
def configure(self, config, config_inverter):
|
|
logging.info("Configured Console Logging")
|
|
|
|
def publish(self, inverter):
|
|
|
|
print("{:<40} {:<25}".format('Register','Value'))
|
|
for register in inverter:
|
|
print("{:<40} {:<25}".format(register,str(inverter.get(register))))
|
|
|
|
print(f"Logged {len(inverter)} registers to Console")
|
|
|
|
return |