diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2023-11-19 15:53:09 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2023-11-19 15:53:09 +0000 |
commit | 224c7385c9f2c0eafd7751bf8e100ab5d8c52345 (patch) | |
tree | e19c4ba8deabfd4132230792b17eeb56e6e93802 /README.md | |
parent | 408fa00f2387d19995e078c66d8e3d1c75f473f1 (diff) | |
download | power.eda.gay-224c7385c9f2c0eafd7751bf8e100ab5d8c52345.tar.gz power.eda.gay-224c7385c9f2c0eafd7751bf8e100ab5d8c52345.zip |
Added MQTT broker, some instructions
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..c0323a0 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# power.eda.gay + +Logs Tasmota-flashed power usage monitors to InfluxDB and Grafana using MQTT. + +## Setup + +- `touch .passwords` +- `sudo docker-compose up -d` +- `sudo docker exec -it poweredagay_mqtt_1 sh` Then in the container: + - `chmod 0700 /mosquitto/passwd_file` + - `chmod root:root /mosquitto/passwd_file` + - ` mosquitto_passwd -c /mosquitto/passwd_file user_name` Changing `user_name` as appropriate, then it will prompt for a password +- `sudo docker-compose restart` +- Test with the `mosquitto_sub` and `mosquitto_pub` commands, the name of the package on debian is `mosquitto-clients` +- Change the config in the Tasmota MQTT web UI, then check the logs to make sure it connects nicely +- I like to run `TelePeriod 30` in the Tasmota console to set it to send MQTT messages every 30 seconds, for example. The default is every 5 minutes I believe |