some refactorings; parses the /net/wlan-sessions mqtt topic and send devices data

This commit is contained in:
Holger Cremer
2017-12-03 16:43:46 +01:00
parent 9b377bcb81
commit 2e48c808b9
25 changed files with 3503 additions and 396 deletions

26
do.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
usage() {
echo "Usage $0 (build-linux|sync)"
}
if [ "$1" == "" ]; then
usage
exit 1
fi
while (( "$#" )); do
case "$1" in
build-linux)
env GOOS=linux GOARCH=amd64 go build cmd/spaceDevices.go
;;
sync)
rsync -avzi --delete spaceDevices webUI root@spacegate:/home/status/spaceDevices2/
;;
*)
usage
exit 1
esac
shift
done