It might be a stupid question, but I am brave enough to ask it anyway:
I am retrieving trip information of my volvo using the voc script from github
For requesting the trips I get a response with the entire list of my trips.
This leads to a timeout in my rule with a timeout of 10 seconds.
"trips": [
{
"tripDetails": [
{
"electricalConsumption": 0,
"startPosition": {
"longitude": x.xxx,
"streetAddress": "Some Street",
"city": "Some City",
"ISO2CountryCode": "DE",
"postalCode": "xxxxx",
"Region": "Some Region",
"latitude": x.xxx
},
"fuelConsumption": 64,
"startTime": "2018-09-06T16:43:22+00:00",
"startOdometer": 26766958,
"endTime": "2018-09-06T16:59:47+00:00",
"endOdometer": 26775434,
"distance": 8476,
"endPosition": {
"longitude": xxx,
"streetAddress": "Some other Street",
"city": "Same City",
"ISO2CountryCode": "DE",
"postalCode": "xxxxx",
"Region": "Same Region",
"latitude": x.xxx
},
"electricalRegeneration": 0
}
],
"name": null,
"userNotes": null,
"id": 970132060,
"trip": "https://vocapi.wirelesscar.net/customerapi/rest/v3.0/vehicles/xxx/trips/970132060",
"category": "unassigned"
},
{
"tripDetails": [
Now my question:
Is it possible to stop receiving the response as soon as the second “tripDetails” appears or is this purely server related and I need to figure out how to retrieve the trip data for a single trip (by ID ??)?