aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: c0323a0f7f15769fd4dd751e8a5a3307b05ae8c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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