A Web application to control all of my IoT devices from Home-IoT repository.
$ git clone https://github.com/KNaiskes/Home-Panel
$ cd Home-Panel
$ go get -d ./...
$ go install
$ sudo apt-get install mosquitto mosquitto-clients
$ sudo pacman -S mosquitto
Append /etc/mosquitto/mosquitto.conf
sudo vim /etc/mosquitto/mosquitto.conf
allow_anonymous false
password_file /etc/mosquitto/pwfile
listener 1883
sudo mosquitto_passwd -c /etc/mosquitto/pwfile username
sudo systemctl restart mosquitto
Open config.json and add your username and password in the appropriate fields
"mqtt_username": "myUsername"
"mqtt_password": "myPassword"