A Somfy RTS Gateway using Signalduino
ls -l /dev/serial/by-id
total 0
lrwxrwxrwx 1 root root 13 Oct 24 07:49 usb-1a86_USB2.0-Serial-if00-port0 -> ../../ttyUSB1
lrwxrwxrwx 1 root root 13 Dec 22 13:02 usb-SHK_SIGNALduino_868-if00-port0 -> ../../ttyUSB0
If needed remove the modemmanager
sudo apt-get purge modemmanager
GOOS=linux GOARCH=arm GOARM=5 CGO_ENABLED=0 go build -mod=vendor -o somfy-rts-gateway
set GOOS=linux
set GOARCH=arm
set GOARM=6
set CGO_ENABLED=0
go build -mod=vendor -o somfy-rts-gateway
scp -r ./arm/* pi@192.168.66.139:/opt/somfy
Copy this file into /etc/systemd/system
as root, for example:
sudo cp myscript.service /etc/systemd/system/myscript.service
Once this has been copied, you can attempt to start the service using the following command:
sudo systemctl start myscript.service
Stop it using following command:
sudo systemctl stop myscript.service
When you are happy that this starts and stops your app, you can have it start automatically on reboot by using this command:
sudo systemctl enable myscript.service