Skip to content

Commit f71665e

Browse files
committed
Fixes
1 parent 76d3519 commit f71665e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Examples/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ services:
5050

5151
- pvinflux=True
5252
- pvinflux2=True
53-
- pvifhost=influxdb
53+
- pvifhost=localservername
5454
- pvif2protocol=http
5555
- pvif2org=acme
5656
- pvif2bucket=fusionsolar
@@ -61,7 +61,7 @@ services:
6161
- pvpvoutputapikey=GENERATE_THIS_AND_SYSTEMID_ON_PVOUTPUT.ORG
6262

6363
- pvmqtt=True
64-
- pvmqtthost=mosquitto
64+
- pvmqtthost=localservername
6565
- pvmqttauth=False
6666

6767
volumes:

pvmqtt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def publish_to_mqtt(self, fusionsolar_json_data):
2020
auth_obj = None
2121

2222
try:
23+
self.logger.info("Publishing to MQTT. Data: {}".format(jsonmsg))
2324
publish.single(
2425
self.conf.mqtttopic,
2526
payload=jsonmsg,
@@ -30,8 +31,7 @@ def publish_to_mqtt(self, fusionsolar_json_data):
3031
client_id=self.conf.pvsysname,
3132
keepalive=60,
3233
auth=auth_obj
33-
)
34-
self.logger.info("Published data to MQTT: {}".format(str(jsonmsg)))
34+
)
3535

3636
except TimeoutError as e:
3737
self.logger.error("Timeout while publishing to MQTT: '{}'".format(str(e)))

0 commit comments

Comments
 (0)