Installing on Raspberry Pi 3
(change hallonlarm_0.1.0_linux_armv7.tar.gz
from armv7
to armv6
in first command for RPi 1/2)
# Download the binary to /usr/local/bin
curl -L https://github.com/hemtjanst/hallonlarm/releases/download/v0.1.0/hallonlarm_0.1.0_linux_armv7.tar.gz | sudo tar zx -C /usr/local/bin hallonlarm
# Install the unit file
sudo curl -Lo /etc/systemd/system/hallonlarm.service https://raw.githubusercontent.com/hemtjanst/hallonlarm/v0.1.0/hallonlarm.service
# Edit the unit file to change mqtt address
sudo nano /etc/systemd/hallonlarm.service
# Reload systemd
sudo systemctl daemon-reload
# Copy and edit the sample configuration
sudo curl -Lo /etc/hallonlarm.conf https://raw.githubusercontent.com/hemtjanst/hallonlarm/v0.1.0/example.conf
sudo nano /etc/hallonlarm.conf
# Start the service
sudo systemctl start hallonlarm.service
# Enable at boot
sudo systemctl enable hallonlarm.service
Changelog
03864a9 only build for linux ARM since a RPi is required
fc052ff fix build
e64b34c update gitignore
c60620c add travis and goreleaser
5d84264 ⬆️ Update paho to master
27d31cd ⬆️ Update depedencies b/c of a deadlock
34d3e5c 📝 Set up onConnect handler for discovery
90e438f 📚 Update documentation and samples
8a30327 ⬆️ Update to latest Hemtjänst version
51330b1 📝 Add logging, keep track of last reported state instead of resetting reported to false each time the state changes
2d1b647 📝 Require mqtt configuration to be specified in commandline / environment variables for now
Automated with GoReleaser
Built with go version go1.9.4 linux/amd64