Update groveStreams.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Mon, 12 Aug 2019 19:57:05 +0000 (12:57 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Mon, 12 Aug 2019 19:57:05 +0000 (12:57 -0700)
third-party/groveStreams.groovy

index 24b3c8c..a3a3928 100755 (executable)
@@ -108,18 +108,18 @@ def initialize() {
        subscribe(thermostats, "thermostatMode", handleThermostatModeEvent)
        subscribe(thermostats, "fanMode", handleFanModeEvent)
        subscribe(thermostats, "thermostatOperatingState", handleThermostatOperatingStateEvent)
-       subscribe(automatic, "yesterdayTripsAvgAverageKmpl",handleDailyStats)
-       subscribe(automatic, "yesterdayTripsAvgDistanceM",handleDailyStats)
-       subscribe(automatic, "yesterdayTripsAvgDurationS",handleDailyStats)
-       subscribe(automatic, "yesterdayTotalDistanceM",handleDailyStats)
-       subscribe(automatic, "yesterdayTripsAvgFuelVolumeL",handleDailyStats)
-       subscribe(automatic, "yesterdayTotalFuelVolumeL",handleDailyStats)
-       subscribe(automatic, "yesterdayTotalDurationS:",handleDailyStats)
-       subscribe(automatic, "yesterdayTotalNbTrips",handleDailyStats)
-       subscribe(automatic, "yesterdayTotalHardAccels",handleDailyStats)
-       subscribe(automatic, "yesterdayTotalHardBrakes:",handleDailyStats)
-       subscribe(automatic, "yesterdayTripsAvgScoreSpeeding",handleDailyStats)
-       subscribe(automatic, "yesterdayTripsAvgScoreEvents",handleDailyStats)
+       subscribe(automatic, "presence",handleDailyStats)
+       //subscribe(automatic, "yesterdayTripsAvgDistanceM",handleDailyStats)
+       //subscribe(automatic, "yesterdayTripsAvgDurationS",handleDailyStats)
+       //subscribe(automatic, "yesterdayTotalDistanceM",handleDailyStats)
+       //subscribe(automatic, "yesterdayTripsAvgFuelVolumeL",handleDailyStats)
+       //subscribe(automatic, "yesterdayTotalFuelVolumeL",handleDailyStats)
+       //subscribe(automatic, "yesterdayTotalDurationS:",handleDailyStats)
+       //subscribe(automatic, "yesterdayTotalNbTrips",handleDailyStats)
+       //subscribe(automatic, "yesterdayTotalHardAccels",handleDailyStats)
+       //subscribe(automatic, "yesterdayTotalHardBrakes:",handleDailyStats)
+       //subscribe(automatic, "yesterdayTripsAvgScoreSpeeding",handleDailyStats)
+       //subscribe(automatic, "yesterdayTripsAvgScoreEvents",handleDailyStats)
        def queue = []
        atomicState.queue=queue