Control of home devices.
- Make password file for mqtt.
- Check config file for mqtt at
mqtt_broker/config/mosquitto.conf
. - Make
.env
file formonika_bot
at this section
- run
$ docker-compose -f docker-compose.dev.yaml up
- Check path at docker-compose and service files.
- Copy service to systemd and run.
$ sudo cp home_portal.service /etc/systemd/system
$ sudo systemctl daemon-reload
$ sudo systemctl enable home_portal.service
$ sudo systemctl start home_portal.service
This is a classic MQTT mosquitto broker hosted on server.
- After change password file you should restart the container.
- Tips: http://www.steves-internet-guide.com/mqtt-username-password-example/
- You can use
mosquitto_passwd
command at the docker like:docker exec -it mqtt mosquitto_passwd
$ mosquitto_passwd -c /mosquitto/config/passwords username
$ mosquitto_passwd -D /mosquitto/config/passwords username
$ mosquitto_passwd /mosquitto/config/passwords username
This is telegram bot for controll monika`s led bed.
$ cp monika_bot/.env_example monika_bot/.env