Skip to content

Commit

Permalink
Setup repo for pi-app-updater
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmarklloyd committed Nov 30, 2021
1 parent 33cdcb7 commit 8213d3d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
project_path: "./client"
binary_name: "pi-sensor"
extra_files: install/pi-sensor.service.tmpl install/run.sh
- uses: wangyoucao577/go-release-action@v1.17
- uses: wangyoucao577/go-release-action@v1.18
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
Expand Down
7 changes: 7 additions & 0 deletions .pi-app-updater.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: pi-sensor
heroku:
app: pi-sensor
env:
- CLOUDMQTT_URL
- DOOR_LIGHT_DOOR
- DOOR_LIGHT_DEVICE_NAME
4 changes: 2 additions & 2 deletions scripts/door-light/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const (
// POC for turning on smart outlet when door is open
func main() {
brokerurl := flag.String("brokerurl", os.Getenv("CLOUDMQTT_URL"), "The broker to connect to")
deviceName := flag.String("devicename", os.Getenv("DEVICE_NAME"), "The outlet to control")
door := flag.String("door", os.Getenv("DOOR"), "The door to monitor")
deviceName := flag.String("devicename", os.Getenv("DOOR_LIGHT_DEVICE_NAME"), "The outlet to control")
door := flag.String("door", os.Getenv("DOOR_LIGHT_DOOR"), "The door to monitor")
if *brokerurl == "" {
logger.Fatalln("at least one broker is required")
}
Expand Down

0 comments on commit 8213d3d

Please sign in to comment.