Skip to content

Commit

Permalink
v1.9.3 Changed poll() to get the right vehicleId
Browse files Browse the repository at this point in the history
  • Loading branch information
yracine committed Nov 13, 2015
1 parent 4dce7f4 commit 24cc3b7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions myautomatic.devicetype
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* My Automatic Device
*
* Copyright 2015 Yves Racine
* Version 1.8.2
* Version 1.8.3
* linkedIn profile: ca.linkedin.com/pub/yves-racine-m-sc-a/0/406/4b/
* Refer to readme file for installation instructions.
*
Expand Down Expand Up @@ -568,7 +568,10 @@ metadata {
void poll() {


def vehicleId= determine_vehicle_id("")
def vehicleId= determine_vehicle_id(settings.vehicleId)
// Update the vehicle information

getVehicles(vehicleId)

String dateInLocalTime = new Date().format("yyyy-MM-dd", location.timeZone)

Expand All @@ -578,9 +581,6 @@ void poll() {

getCurrentUserInfo()

// Update the vehicle information

getVehicles(vehicleId)

if (settings.trace) {
log.debug "poll>about to call generateTripStats,dateInLocalTime=${dateInLocalTime},state.lastGeneratedDate= $state.lastGeneratedDate"
Expand Down

0 comments on commit 24cc3b7

Please sign in to comment.