Getting acclimated with VOC API - WOW, so much potential! - Page 2
Username
Do you already have an account?
Forgot your password?
  • Log in or Sign up

    Page 2 of 2 FirstFirst 1 2
    Results 36 to 69 of 69
    1. #36
      Junior Member
      Join Date
      Feb 2018
      Posts
      20
      yes, as mentioned above you use basic authentication. Your credentials are sent in the header of each http get/post.

      the header line is
      Code:
      authorization: Basic username:password
      where username : password is base64 encoded

      e.g.
      Code:
      authorization: Basic eW91d2FudDpteXBhc3N3b3JkPw==

    2. Remove Advertisements

      Advertisements
       

    3. #37
      Junior Member tunedxc60's Avatar
      Join Date
      Oct 2016
      Location
      USA
      Posts
      516

      Getting acclimated with VOC API - WOW, so much potential!

      Quote Originally Posted by ant1sec View Post

      It's interesting that the vehicle location is more accurate than any of the clients I've tested (iPhone X, Pixel 2, Surface Pro). I'm thinking it would be cool to trigger a home entry scene when the vehicle is within 10 feet of the final location (coordinates of a garage parking spot, for example).

      I'm kinda looking at something else right now. I've started trying to understand the recent Onstar and UConnect vulnerabilities, and am experimenting with SOS. Putting the APIs aside for a bit.
      This is essentially what Tesla is doing with the automatic open/close garage door function. This trigger also raises and lowers the vehicle for ground height clearance on driveways.



      Sent from my iPhone using Tapatalk Pro
      2018 XC90 T6 Inscription - Polestar tune + Racechip GTS, and Stealth Hitch
      2011 C30 (Ex K-Pax Racing)
      SOLD: 2016 XC60 T6 AWD Platinum/Inscription - Full bolt ons (Snabb air intake & turbo pipe, Do88 Intercooler, Viva Hybrid Turbo, Ferrita downpipe, IPD exhaust catback, H&R Springs), Stage 3 Hilton Tune: Dual JL Audio 10" stealth subs & 750Watt amp

    4. #38
      Member
      Join Date
      Dec 2017
      Location
      PNW
      Posts
      5,457
      Quote Originally Posted by climr View Post
      yes, as mentioned above you use basic authentication. Your credentials are sent in the header of each http get/post.

      the header line is
      Code:
      authorization: Basic username:password
      where username : password is base64 encoded

      e.g.
      Code:
      authorization: Basic eW91d2FudDpteXBhc3N3b3JkPw==
      Not even https:// ?

      Fusion · Red · T8 · XC60
      Rolling, Fusion Red - 2018 XC60 - T8
      Running to retire, 2000 V70XC 236+k miles

    5. Remove Advertisements
      SwedeSpeed.com
      Advertisements
       

    6. #39
      Junior Member
      Join Date
      Feb 2018
      Posts
      20
      yes, https is used, sorry if that wasn't clear

    7. #40
      Junior Member
      Join Date
      Jun 2017
      Location
      Austin, TX
      Posts
      115
      Thanks for the info!

      Got the authorization header right, but when hitting https://vocapi-na.wirelesscar.net/customerapi/rest/v3.0/vehicles/<my vin>/status I'm still getting the InvalidInputCriteria error HTML back.

      Is there anything else necessary other than the Authorization header?

    8. #41
      Junior Member
      Join Date
      Jun 2017
      Location
      Austin, TX
      Posts
      115
      Figured it out. If you look in volvooncall.py, there's a couple of headers that are obligatory. It won't work without them.

    9. #42
      Junior Member
      Join Date
      Sep 2017
      Posts
      604
      Did anyone ever create a SmartThings Device Handler that they would be able to share? I finally got around to getting the volvooncall from GitHub working in my Bash on Windows 10... and, it seems to be working fine, but, if someone could share their VOC Device Handler, that would be amazing!
      2017 XC90 T8 Inscription (*LEMON - RETURNED TO VOLVO 2019-02-04 - THREAD OF FINAL 5 MONTHS*) (Crystal White + Amber, Packages: Vision, Convenience, Climate w/HUD, Leather Panel, Bowers and Wilkins, 4 Corner Air, 21" 8-Spoke)
      And, the BUY BACK or LEMON LAW Process - Information You Need to Know

    10. #43
      Junior Member
      Join Date
      May 2018
      Posts
      43
      It is always risky to develop 3rd Party APP when the primary vendor does not publish API Documentation.

      There are many features I wish the VOC APP provided.

      If someone where to develop IFTTT integration that would be great. My killer user scenarios is:

      Hey Google
      Start my car at 7:30 AM and warm it up to 70 degrees

      or

      Hey Google
      Start my car in an hour and warm it up to 70 degrees

    11. #44
      VOC / Connectivity Expert
      Join Date
      Mar 2017
      Posts
      382
      Quote Originally Posted by NCAviator View Post
      It is always risky to develop 3rd Party APP when the primary vendor does not publish API Documentation.

      There are many features I wish the VOC APP provided.

      If someone where to develop IFTTT integration that would be great. My killer user scenarios is:

      Hey Google
      Start my car at 7:30 AM and warm it up to 70 degrees

      or

      Hey Google
      Start my car in an hour and warm it up to 70 degrees
      Volvo is already implementing something like this... the issue on why it's not out yet was around security and ultimately avoid someone from randomly saying to unlock the car by asking... this of course was the last time I asked my dealer.

    12. #45
      Junior Member
      Join Date
      May 2018
      Posts
      43
      Quote Originally Posted by WhoaVolvo View Post
      Volvo is already implementing something like this... the issue on why it's not out yet was around security and ultimately avoid someone from randomly saying to unlock the car by asking... this of course was the last time I asked my dealer.
      BMW has Google Home support. Of course I could never get it to work.

      Where did you see public information from Volvo that they were developing Google Home integration? The Security is easy. Google has that developed. You do the pairing in the Google Home APP. If you can change your NEST thermostat you should be able to talk to your Volvo.

    13. #46
      Junior Member
      Join Date
      Sep 2017
      Posts
      604
      There's a lot of stuff that can be pulled from the car, and can be done.. Until it's blocked out completely... They can implement some security or secondary check within their apps (e.g. Windows, Android, iOS), but, I'm sure that would lead to more trouble than it's worth...

      For example, here's what I can pull back (using the VolvoOnCall code from GitHub, which just pulls the server message) - from my XC90 T8:

      Code:
      {
          "ERS": {
              "status": "off",
              "timestamp": "2018-06-27T16:24:12+00:00",
              "engineStartWarning": "None",
              "engineStartWarningTimestamp": "2018-06-27T16:24:12+00:00"
          },
          "VIN": "REMOVED",
          "assistanceCallSupported": true,
          "averageFuelConsumption": 58.0,
          "averageFuelConsumptionTimestamp": "2018-07-05T18:02:04+00:00",
          "averageSpeed": 40,
          "averageSpeedTimestamp": "2018-07-05T18:02:04+00:00",
          "bCallAssistanceNumber": "+18553994691",
          "brakeFluid": "Normal",
          "brakeFluidTimestamp": "2018-07-05T18:02:04+00:00",
          "bulbFailures": [],
          "bulbFailuresTimestamp": "2018-07-05T18:02:04+00:00",
          "calculatedPosition": {
              "longitude": null,
              "latitude": null,
              "timestamp": null,
              "speed": null,
              "heading": null
          },
          "carLocatorDistance": 1000,
          "carLocatorSupported": true,
          "carLocked": true,
          "carLockedTimestamp": "2018-07-05T18:02:04+00:00",
          "climatizationCalendarMaxTimers": 8,
          "climatizationCalendarVersionsSupported": [
              "climatizationCalendarV1"
          ],
          "connectionStatus": "ConnectedWithPower",
          "connectionStatusTimestamp": "2018-07-05T18:13:22+00:00",
          "country": {
              "iso2": "US"
          },
          "distanceToEmpty": 80,
          "distanceToEmptyTimestamp": "2018-07-05T18:02:04+00:00",
          "doors": {
              "tailgateOpen": false,
              "rearRightDoorOpen": false,
              "rearLeftDoorOpen": false,
              "frontRightDoorOpen": false,
              "frontLeftDoorOpen": false,
              "hoodOpen": false,
              "timestamp": "2018-07-05T18:02:04+00:00"
          },
          "engineCode": "REMOVED",
          "engineRunning": false,
          "engineRunningTimestamp": "2018-07-05T18:02:04+00:00",
          "engineStartSupported": true,
          "exteriorCode": "REMOVED",
          "fuelAmount": 14,
          "fuelAmountLevel": 28,
          "fuelAmountLevelTimestamp": "2018-07-05T18:02:04+00:00",
          "fuelAmountTimestamp": "2018-07-05T18:02:04+00:00",
          "fuelTankVolume": 50,
          "fuelType": "HEV",
          "gearboxCode": "REMOVED",
          "grossWeight": 3010,
          "heater": {
              "seatSelection": {
                  "frontDriverSide": false,
                  "frontPassengerSide": false,
                  "rearDriverSide": false,
                  "rearPassengerSide": false,
                  "rearMid": false
              },
              "status": "off",
              "timer1": {
                  "time": null,
                  "state": null
              },
              "timer2": {
                  "time": null,
                  "state": null
              },
              "timestamp": "2018-06-12T01:42:34+00:00"
          },
          "highVoltageBatterySupported": true,
          "honkAndBlinkDistance": 500,
          "honkAndBlinkSupported": true,
          "honkAndBlinkVersionsSupported": [
              "honkAndOrBlink",
              "honkAndBlink"
          ],
          "hvBattery": {
              "hvBatteryChargeStatusDerived": "CablePluggedInCar_Charging",
              "hvBatteryChargeStatusDerivedTimestamp": "2018-07-05T18:13:22+00:00",
              "hvBatteryChargeModeStatus": null,
              "hvBatteryChargeModeStatusTimestamp": null,
              "hvBatteryChargeStatus": "ChargeProgress",
              "hvBatteryChargeStatusTimestamp": "2018-07-05T18:13:22+00:00",
              "hvBatteryLevel": 22,
              "hvBatteryLevelTimestamp": "2018-07-05T18:13:22+00:00",
              "distanceToHVBatteryEmpty": 3,
              "distanceToHVBatteryEmptyTimestamp": "2018-07-05T18:13:22+00:00",
              "hvBatteryChargeWarning": "UnexpectedPowerloss",
              "hvBatteryChargeWarningTimestamp": "2018-07-05T02:46:24+00:00",
              "timeToHVBatteryFullyCharged": 300,
              "timeToHVBatteryFullyChargedTimestamp": "2018-07-05T18:13:22+00:00"
          },
          "interiorCode": "REMOVED",
          "journalLogEnabled": true,
          "journalLogSupported": true,
          "lockSupported": true,
          "maxActiveDelayChargingLocations": 7,
          "modelYear": 2017,
          "numberOfDoors": 5,
          "odometer": 10972640,
          "odometerTimestamp": "2018-07-05T18:02:04+00:00",
          "overrideDelayChargingSupported": false,
          "position": {
              "longitude": REMOVED,
              "latitude": REMOVED,
              "timestamp": "2018-07-05T17:18:51+00:00",
              "speed": null,
              "heading": null
          },
          "preclimatizationSupported": true,
          "privacyPolicyEnabled": false,
          "privacyPolicyEnabledTimestamp": "2018-02-16T21:03:14+00:00",
          "registrationNumber": "UNKNOWN",
          "remoteClimatizationStatus": "Charging",
          "remoteClimatizationStatusTimestamp": "2018-07-05T18:13:22+00:00",
          "remoteHeaterSupported": false,
          "sendPOIToVehicleVersionsSupported": [
              "sendSinglePOIToVehicle"
          ],
          "serverVersion": "4.18.17-feature-att_paygo_rateplan-voc-deployable",
          "serviceWarningStatus": "Normal",
          "serviceWarningStatusTimestamp": "2018-07-05T18:02:04+00:00",
          "status.parkedIndoor.supported": false,
          "subscriptionEndDate": "2020-09-23T12:00:00+00:00",
          "subscriptionStartDate": "2017-09-23T12:00:00+00:00",
          "subscriptionType": "PREMIUM_2013",
          "theftAlarm": null,
          "timeFullyAccessible": 7200,
          "timeFullyAccessibleUntil": "2018-07-10T17:18:02+00:00",
          "timePartiallyAccessible": 31680,
          "timePartiallyAccessibleUntil": "2018-07-27T17:18:02+00:00",
          "tripMeter1": 557100,
          "tripMeter1Timestamp": "2018-07-05T18:02:04+00:00",
          "tripMeter2": 5000,
          "tripMeter2Timestamp": "2018-07-05T18:02:04+00:00",
          "tyreDimensionCode": "REMOVED",
          "tyreInflationPressureHeavyCode": null,
          "tyreInflationPressureLightCode": null,
          "tyrePressure": {
              "frontLeftTyrePressure": "Normal",
              "frontRightTyrePressure": "Normal",
              "rearLeftTyrePressure": "Normal",
              "rearRightTyrePressure": "Normal",
              "timestamp": "2018-07-05T18:02:04+00:00"
          },
          "unlockSupported": true,
          "unlockTimeFrame": 120,
          "vehiclePlatform": "REMOVED",
          "vehicleType": "XC90",
          "vehicleTypeCode": "REMOVED",
          "verificationTimeFrame": 120,
          "vin": "REMOVED",
          "washerFluidLevel": "Normal",
          "washerFluidLevelTimestamp": "2018-07-05T18:02:04+00:00",
          "windows": {
              "frontLeftWindowOpen": false,
              "frontRightWindowOpen": false,
              "timestamp": "2018-07-05T18:02:04+00:00",
              "rearLeftWindowOpen": false,
              "rearRightWindowOpen": false
          }
      }
      Looking at the documentation for accessing third party API/calls with SmartThings, it looks like it may be something that's easily doable, for someone that's written it before (which is why I asked if anyone has done it ).. I guess I can give it a shot when I can get free time (which is rare to never)…

      At that point, since you can tie SmartThings to both Google and Amazon (Alexa), it should be somewhat easy to get things automated... Not sure on the scheduling aspect, since I'm sure that would take a little more work (and coding in the Google/Amazon cloud, versus just writing in a SmartThings handler). But, saying "Alexa, turn on XC90" (assuming you have a virtual device in Alexa/SmartThings tied to the Remote Start On/Off state) should work…
      2017 XC90 T8 Inscription (*LEMON - RETURNED TO VOLVO 2019-02-04 - THREAD OF FINAL 5 MONTHS*) (Crystal White + Amber, Packages: Vision, Convenience, Climate w/HUD, Leather Panel, Bowers and Wilkins, 4 Corner Air, 21" 8-Spoke)
      And, the BUY BACK or LEMON LAW Process - Information You Need to Know

    14. #47
      Any additional movement here? I've been following the GitHub repo for the Python application....and I'm getting an empty accountVehicleRelations array which essentially causes vehicles not to be found and/or usable. Has anybody ran into this?

    15. #48
      Awaiting Approval
      Join Date
      Mar 2019
      Posts
      1
      I'm also interested, I achieved to call the Webservice from Azure Cloud.

      I wanted to track the position of my car every 5 minutes but as said previously the position is not changing while the car is moving.
      It only returns the latest position of the vehicule when it was parked.

    16. #49
      Junior Member
      Join Date
      Oct 2018
      Posts
      5
      Quote Originally Posted by MisterG View Post
      I'm also interested, I achieved to call the Webservice from Azure Cloud.

      I wanted to track the position of my car every 5 minutes but as said previously the position is not changing while the car is moving.
      It only returns the latest position of the vehicule when it was parked.
      If you’ve ever tried to use the OnCall app right after turning the vehicle off, you get a message saying fuctions cannot be done cause the vehicle is in use. This is likely for safety reasons (imagine being able to turn off the vehicle while it’s in motion) and for reducing the amount of data the oncall SIM consumes, so they only use location service when absolutely necessary.

      I’m sure this crowd is familiar with Charlie Miller’s work, so for me, it’s reassuring to see Volvo developing their APIs with thought an caution, and creating / exposing only those functions that are safe to do so.
      2019 XC60 R-Design

    17. #50
      Junior Member
      Join Date
      Oct 2018
      Posts
      5
      It looks like a lot of reverse engineering has already been done to the VOC API in this project. Catch is it appears to be buried in the python code of the base app. Going to install it and dig around when I have some time.

      https://www.home-assistant.io/components/volvooncall/
      2019 XC60 R-Design

    18. #51
      Junior Member
      Join Date
      Jun 2018
      Location
      UK
      Posts
      409
      An aftermarket option would be great for those US spec vehicles in Europe who are unable to utilise the existing app. It sucks not being able to take advantage of its functionality.



      Sent from my iPad using Tapatalk
      __________________________________________________ ____________

      Hooligan of Volvo
      '19 XC60 T6 AWD Inscription; Pine Gray; Maroon Brown Leather; Pole*
      '16 XC90 T6 AWD Inscription; Ember Black; Charcoal Leather; Pole*

    19. #52
      Junior Member
      Join Date
      Sep 2018
      Posts
      23
      Quote Originally Posted by ant1sec View Post
      Here's some more info - kinda swamped today.

      Use a tool called Postman (https://www.getpostman.com/) to run some tests.

      In Postman, select Import -> Paste Raw Text. Then paste one of the examples below.

      Status example:

      curl -X GET \
      https://vocapi-na.wirelesscar.net/cu...IN_HERE/status \
      -H 'cache-control: no-cache' \
      -H 'content-type: application/json' \
      -H 'x-device-id: Device' \
      -H 'x-originator-type: App' \
      -H 'x-os-type: Android' \
      -H 'x-os-version: 22'

      Action example:

      curl -X POST \
      https://vocapi-na.wirelesscar.net/cu..._VIN_HERE/lock \
      -H 'cache-control: no-cache' \
      -H 'content-type: application/json' \
      -H 'x-device-id: Device' \
      -H 'x-originator-type: App' \
      -H 'x-os-type: Android' \
      -H 'x-os-version: 22'


      Replace "YOUR_VIN_HERE" with your VIN.
      Configure Authorization to Basic, set the username to your VOC email address and password.


      Some other actions:
      https://vocapi-na.wirelesscar.net/cu...E/heater/start

      /heater/start
      /heater/stop
      /preclimatization/start
      /preclimatization/stop
      /parkingclimate/start
      /parkingclimate/stop
      /precleaning/start
      /precleaning/stop
      /engine/start
      /engine/stop
      /honk_and_flash
      /honk_blink/both
      /honk_blink/horn
      /honk_blink/lights


      Also, to grab your vehicle link without having the VIN,

      curl -X GET \
      https://vocapi-na.wirelesscar.net/cu...stomeraccounts \
      -H 'cache-control: no-cache' \
      -H 'content-type: application/json' \
      -H 'x-device-id: Device' \
      -H 'x-originator-type: App' \
      -H 'x-os-type: Android' \
      -H 'x-os-version: 22'

      Returns a "accountVehicleRelations" link.
      accountVehicleRelations returns the vehicle link with VIN.

      did you ever capture passing google maps locations from the app to the car?

    20. #53
      Awaiting Approval
      Join Date
      Jul 2019
      Posts
      1

      Lightbulb Collected some information - Postman Collection for easy consumption

      Hello all,

      I got my XC90 last Monday and found this thread :-) As a developer I really appreciate the work and research which is already done.

      To contribute and make it easier for the next folks to follow, I created a postman collection and environment to consume the APIs.

      https://github.com/matthiasuweberg/v...master/postman

      If time permits, I will start with some node_module for the API (like the Python repo already posted).

      Would be happy to get some more information and feedback.

      Kind regards,
      Matthias

    21. #54
      Junior Member
      Join Date
      Sep 2012
      Posts
      156
      Quote Originally Posted by Trulox View Post
      Hello all,

      I got my XC90 last Monday and found this thread :-) As a developer I really appreciate the work and research which is already done.

      To contribute and make it easier for the next folks to follow, I created a postman collection and environment to consume the APIs.

      https://github.com/matthiasuweberg/v...master/postman

      If time permits, I will start with some node_module for the API (like the Python repo already posted).

      Would be happy to get some more information and feedback.

      Kind regards,
      Matthias
      Super helpful!!
      2018 XC 60 | T6 AWD P* | Momentum | Onyx Black/Amber | Convenience/Vision/Advanced/Nav/Cold Weather

    22. #55
      Junior Member Kranvagn's Avatar
      Join Date
      Nov 2018
      Location
      Silicon Valley, CA
      Posts
      189
      Sorry if this was mentioned above, didn't read through it all, but a real-time feed of oil level information would be lovely for our dipstickless engines.
      Last edited by Kranvagn; 07-30-2019 at 12:57 AM.
      2019 XC60 T8 Fusion Red R-Design - www.MotorSportUnPlugged.com -

    23. #56
      Junior Member
      Join Date
      Jan 2018
      Location
      Belgium
      Posts
      3
      Quote Originally Posted by Kranvagn View Post
      Sorry if this was mentioned above, didn't read through it all, but a real-time feed of oil level information would be lovely for our dipstickless engines.
      Only these: washerFluidLevel & brakeFluid (for 'liquids')

    24. #57
      Junior Member
      Join Date
      Jan 2020
      Location
      The Netherlands
      Posts
      1
      Quote Originally Posted by ant1sec View Post
      /heater/start
      /heater/stop
      /preclimatization/start
      /preclimatization/stop
      /parkingclimate/start
      /parkingclimate/stop
      /precleaning/start
      /precleaning/stop
      /engine/start
      /engine/stop
      /honk_and_flash
      /honk_blink/both
      /honk_blink/horn
      /honk_blink/lights
      I was wondering how all of these actions were figured out. The reason why is because I was wondering if meanwhile new actions could have been added. This seems to be the most complete list around, since precleaning does not seem to be mentioned anywhere else but on this forum. By the way, does anybody know what precleaning is supposed to do? Also, I would expect precleaningSupported under Attributes, but haven't read about that anywhere. Or do all models support it? Has anyone tried?

    25. #58
      Junior Member shamusom's Avatar
      Join Date
      Nov 2017
      Posts
      76
      Quote Originally Posted by Bernold View Post
      I was wondering how all of these actions were figured out. The reason why is because I was wondering if meanwhile new actions could have been added. This seems to be the most complete list around, since precleaning does not seem to be mentioned anywhere else but on this forum. By the way, does anybody know what precleaning is supposed to do? Also, I would expect precleaningSupported under Attributes, but haven't read about that anywhere. Or do all models support it? Has anyone tried?
      I've tried Postman with the queries that were posted earlier. Some of them work fine, but some just give me the following error:

      {
      "errorLabel": "VehicleDoesNotExist",
      "errorDescription": "The Vehicle does not exist"
      }

      For the environment, I tried using na but that doesn't seem to help at all. I have the VIN set correctly, but in the environment setup, I just have region set to: na There are no brackets, quotes around it. I'd love to see someone else's query for position and what they get returned.

      For example, if I try to query:

      https://vocapi{{region}}.wirelesscar.net/customerapi/rest/v3.0/vehicles/{{VIN}}/position

      I just get the error I posted above. I do get valid responses for say:
      https://vocapi{{region}}.wirelesscar.net/customerapi/rest/v3.0/customeraccounts

      It returns the following (data set to xxx on purpose)

      {
      "username": "xxxxxxxxxxcom",
      "firstName": "xxxxxx",
      "lastName": "xxxxxxx",
      "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "account": "https://vocapi.wirelesscar.net/customerapi/rest/v3.0/customeraccounts/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "accountVehicleRelations": []
      }


      Anyone else been successful with other queries?

    26. #59
      Junior Member LamboJay's Avatar
      Join Date
      Jan 2020
      Location
      Charlotte
      Posts
      3
      Every query I've tried so far seems to be working fine. Here are my exact request and response. Not sure what the difference between position and calculated position is but position is correct. My car was parked at the time.

      Hope this helps.

      Request:
      GET https://vocapi-na.wirelesscar.net/customerapi/rest/v3.0/vehicles/<vin>/position HTTP/1.1
      Host: vocapi-na.wirelesscar.net
      X-Device-Id: Device
      X-OS-Type: Android
      X-Originator-Type: App
      X-OS-Version: 22
      Content-Type: application/json
      Authorization: Basic <hash>


      Response:
      {
      "position": {
      "longitude": <redacted>,
      "latitude": <redacted>,
      "timestamp": "2020-01-07T01:26:15+0000",
      "speed": null,
      "heading": null
      },
      "calculatedPosition": {
      "longitude": null,
      "latitude": null,
      "timestamp": null,
      "speed": null,
      "heading": null
      }
      }

    27. #60
      Junior Member PSamy's Avatar
      Join Date
      Sep 2019
      Location
      Southern CT
      Posts
      85
      shamusom,
      I am facing exactly same error, I am using Python to call the APIs and Its returning the customer account info correctly but later when I invoke other options, it returns "Vehicle not found". I am not sure why am I getting this error since my VOC app is working.

      Do you have your license plate number listed on VOC?

      2019 XC60 - T6 - R-Design - Polestar - Air Suspension W/Four-C Chassis - Advance - Crystal White Pearl - 21" R-Design Wheels

    28. #61
      Junior Member shamusom's Avatar
      Join Date
      Nov 2017
      Posts
      76
      Quote Originally Posted by PSamy View Post
      shamusom,
      I am facing exactly same error, I am using Python to call the APIs and Its returning the customer account info correctly but later when I invoke other options, it returns "Vehicle not found". I am not sure why am I getting this error since my VOC app is working.

      Do you have your license plate number listed on VOC?

      I switched to Python as well (https://github.com/molobrakos/volvooncall) and am getting a little further. I still get some unexplained errors, well errors perhaps I just don't understand given the context.

      Here is an example of a successful one:

      voc -u [email protected] -p xxxxxx -i xxxxxxxxxxxxxxx -r na status

      ? (XC60/2018) xxxxxxxxxxxxxxxxxx 33789km (fuel 52% 260km)
      position: XX.1111129516601562,-XX.11176916503906
      engine: off
      locked: yes
      heater: off

    29. #62
      Junior Member PSamy's Avatar
      Join Date
      Sep 2019
      Location
      Southern CT
      Posts
      85
      Quote Originally Posted by shamusom View Post
      I switched to Python as well (https://github.com/molobrakos/volvooncall) and am getting a little further. I still get some unexplained errors, well errors perhaps I just don't understand given the context.

      Here is an example of a successful one:

      voc -u [email protected] -p xxxxxx -i xxxxxxxxxxxxxxx -r na status

      ? (XC60/2018) xxxxxxxxxxxxxxxxxx 33789km (fuel 52% 260km)
      position: XX.1111129516601562,-XX.11176916503906
      engine: off
      locked: yes
      heater: off

      It looks like the region is mandatory parameter that needs to be passed, it working fine now. I was able to start , stop , get trips etc. through code. However 'Honk_and_Blink' , unlock and lock are not working. I read somewhere that we need to pass distance from vehicle as part of the call and I will dig further. I see some exceptions primarily from dependent modules.

      2019 XC60 - T6 - R-Design - Polestar - Air Suspension W/Four-C Chassis - Advance - Crystal White Pearl - 21" R-Design Wheels

    30. #63
      Junior Member stocis's Avatar
      Join Date
      Oct 2019
      Location
      Cyprus
      Posts
      178
      Can I ask, what is the end goal/purpose?
      Current: 2020 Volvo XC60 R-Design, 2018 Volvo XC40 R-Design
      Previous: 2008 Volvo C70, 2003 Saab 9-5, 1999 Mitsubishi FTO, 1998 Land Rover Freelander, 1995 Suzuki Swift Sedan

    31. #64
      Junior Member
      Join Date
      Sep 2017
      Location
      Livingston, NJ
      Posts
      105
      I would love to setup a volvooncall device on my samsung smartthings hub and ask Alexa to start the vehicle in the morning.

    32. #65
      Junior Member
      Join Date
      Jan 2019
      Location
      Concord, MA
      Posts
      744
      Quote Originally Posted by kozak79 View Post
      I would love to setup a volvooncall device on my samsung smartthings hub and ask Alexa to start the vehicle in the morning.
      You can already do that. Or at least you can with a Google Home. All I had to do is change the region in my Google Home app to be a random place in the UK, and voila, Volvo On Call via Google Assistant works as it does in other markets.

    33. #66
      Junior Member stocis's Avatar
      Join Date
      Oct 2019
      Location
      Cyprus
      Posts
      178
      Quote Originally Posted by nbvolks View Post
      You can already do that. Or at least you can with a Google Home. All I had to do is change the region in my Google Home app to be a random place in the UK, and voila, Volvo On Call via Google Assistant works as it does in other markets.
      I can do it with Siri too on my iPhone but limited functions such as ask if my car is locked, please lock/unlock my car.
      Current: 2020 Volvo XC60 R-Design, 2018 Volvo XC40 R-Design
      Previous: 2008 Volvo C70, 2003 Saab 9-5, 1999 Mitsubishi FTO, 1998 Land Rover Freelander, 1995 Suzuki Swift Sedan

    34. #67
      Junior Member PSamy's Avatar
      Join Date
      Sep 2019
      Location
      Southern CT
      Posts
      85
      Quote Originally Posted by stocis View Post
      Can I ask, what is the end goal/purpose?
      stocis, I have few requirements, where this can be used. I have built an quick and dirty app to constantly pull our trip details and categorize such as Business , personal etc , no more one month limitation. We will use this for tax exemption. I also can build an custom IFTTT (https://ifttt.com/) flow and do many different things that can not be done by 'Volvooncall' app.
      2019 XC60 - T6 - R-Design - Polestar - Air Suspension W/Four-C Chassis - Advance - Crystal White Pearl - 21" R-Design Wheels

    35. #68
      Junior Member
      Join Date
      Aug 2019
      Location
      Belgium
      Posts
      52
      Quote Originally Posted by PSamy View Post
      stocis, I have few requirements, where this can be used. I have built an quick and dirty app to constantly pull our trip details and categorize such as Business , personal etc , no more one month limitation. We will use this for tax exemption. .
      Cool! Would love to use that app. Is there any possibility you could share it or is that not so easy?



      Sent from my smartphone using Tapatalk

    36. #69
      Junior Member
      Join Date
      Jan 2019
      Location
      Concord, MA
      Posts
      744
      Quote Originally Posted by stocis View Post
      I can do it with Siri too on my iPhone but limited functions such as ask if my car is locked, please lock/unlock my car.
      Because you're in Europe, where VOC is allowed to work with Siri and Google Assistant. In the US that functionality is blocked, unless you change the region on your Google Home/Assistant to be somewhere in Europe, then it works. But then it also thinks you're physically in that location, so you get weather and news notifications related to that location. :P

    37. Remove Advertisements

      Advertisements
       

    Page 2 of 2 FirstFirst 1 2