User Tools

Site Tools


uphp:mqtt_configuration

MQTT Configuration

Wattmon can connect to any standard MQTT server - you can install the open source mosquitto for example. In order for Wattmon to work with MQTT, it needs to be enabled. To do this, create a config file called mqtt.ini in the /config/ folder.

[config]
enabled=1
mqtt_server=10.0.0.1

See the below table for an explanation of the possible parameters

KEYVALUEDESCRIPTION
enabled1 or 0Set this to 1 to enable MQTT support
mqtt_serverstringip address or host name of MQTT server you are using
mqtt_userstringOptional username when connecting to MQTT
mqtt_passwordstringOptional password when connecting to MQTT
mqtt_idstringOptional id of Wattmon device. If not specified, the device's MAC address will be used.
uphp/mqtt_configuration.txt · Last modified: 2021/09/13 05:57 (external edit)