From e6df65e0bfedbae3c579b1890ac564f602018b7a Mon Sep 17 00:00:00 2001 From: Dan Esparza Date: Fri, 4 Aug 2017 20:51:21 -0400 Subject: [PATCH] Oops -- forgot to compile for linux arm locally --- sensordata/collect_linux_arm.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sensordata/collect_linux_arm.go b/sensordata/collect_linux_arm.go index 3688952..e4db65d 100644 --- a/sensordata/collect_linux_arm.go +++ b/sensordata/collect_linux_arm.go @@ -235,10 +235,11 @@ func trackActivity(activity data.Activity) error { // Track the activity in the cloud + return nil } // Send a pushover notification -func sendPushoverNotification(c ConfigDB, runningTime int) error { +func sendPushoverNotification(c data.ConfigDB, runningTime int) error { // Get the config data pushAPIkey, err := c.Get("pushoverapikey") @@ -252,6 +253,9 @@ func sendPushoverNotification(c ConfigDB, runningTime int) error { message := pushover.NewMessage(fmt.Sprintf("The dryer has finished running. It ran for about %v minutes", runningTime)) message.Sound = "bike" _, err := pushClient.SendMessage(message, recipient) + if err != nil { + return err + } } return err