meltaxa / solariot

Leverage your IoT enabled Solar PV Inverter to stream your solar energy usage data to a real time dashboard.
https://solariot.live
MIT License
207 stars 70 forks source link

MQTT Broker Authentication #14

Closed MeldrumIO closed 3 years ago

MeldrumIO commented 4 years ago

Great work with incorporating the modbus decryption in to your script. Note that you just need to add an extra line in for MQTT broker authentication to work.

try: mqtt_client = mqtt.Client('pv_data') mqtt.username_pw_set(config.mqtt_username,config.mqtt_password) mqtt_client.connect(config.mqtt_server, port=config.mqtt_port) except: mqtt_client = None

meltaxa commented 3 years ago

Done. Also the branch update contains the new SungrowModbusTcpClient library that has recently been made available in pypi.

meltaxa commented 3 years ago

Merged to master.