-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlaunch.sh.example
More file actions
36 lines (29 loc) · 779 Bytes
/
launch.sh.example
File metadata and controls
36 lines (29 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
export GG_API_PORT="80"
export GG_DB_DIALECT="sqlite3"
export GG_DB_PATH="database/gogrow.db"
export GG_AMBIENT_DHT_PIN="15"
export GG_TENT_DHT_PIN="14"
export GG_DB_LOGMODE="ON"
export GG_POLLING_INTERVAL="300"
export GG_PLATFORM="pi3"
export GG_ZIPCODE="12345"
export GG_OPENWEATHER_API_KEY="MYKEY"
export GG_OPENWEATHER_API_UNITS="imperial"
export GG_CAMERA_INTERVAL_HOURS="1"
export GG_TIMEZONE_OFFSET="0700"
export GG_CHART_HOURS="336"
# if "VCHI initialization failed" error appears, run this
# sudo usermod -aG video <username>
# Get latest libs
echo "Pulling latest code"
go get -u bitbucket.org/vacovsky/greenguard
# ###
echo "Building..."
echo ""
# GOARCH="arm64" GOOS="linux"
# go build -o greenguard &&
###
echo "Launching..."
echo ""
./greenguard