Discussions

Ask a Question
ANSWERED

Is there an API to get the Time-on-site for specifi addresses

We're looking to get the data found in the report "Time-on-site". Do you have the requet for that, and get all the list of the visites : Vehicule / arrivalTimeMs / ...
ANSWERED

Is the Camera Media Endpoint down?

No matter how i try and reach it i only get error 404's curl -L -X GET 'https://api.samsara.com/fleet/vehicles/cameras/media/history?startTime=2023-02-24T08%3A00%3A00Z&endTime=2023-02-25T08%3A00%3A00Z' \ -H 'Authorization: Bearer samsara_api_xxxxxxxxx' \ -d 'startTime=2023-02-24T08%3A00%3A00Z' \ -d 'endTime=2023-02-25T08%3A00%3A00Z'
ANSWERED

HOS Duplicate entries for same driver and same Event Time

Samsara team. We are getting some duplicate entries for the new Driver HOS Logs BETA (https://api.samsara.com/beta/fleet/hos/drivers/eld-events) From time to time we get different EventCodes from the same driver and at the exact same EventTime. Here is an example of the received JSON { "time": "2023-02-20T07:59:46.726Z", "eldEventType": 3, "eldEventCode": 2, "eldEventRecordOrigin": 2, "eldEventRecordStatus": 1, "accumulatedVehicleMeters": 0, "totalVehicleMeters": 211908185, "elapsedEngineHours": 0.05, "location": { "latitude": 29.98909713, "longitude": -95.299343009, "city": "Humble", "state": "TX", "eldLocation": "2.3 mi WSW Humble, TX" }, "vehicle": { "id": "---", "name": "---", "externalIds": { "samsara.serial": "---", "samsara.vin": "---" } } }, { "time": "2023-02-20T07:59:46.726Z", "eldEventType": 3, "eldEventCode": 0, "eldEventRecordOrigin": 2, "eldEventRecordStatus": 1, "accumulatedVehicleMeters": 0, "totalVehicleMeters": 211908185, "elapsedEngineHours": 0.05, "location": { "latitude": 29.98916745, "longitude": -95.29901374, "city": "Humble", "state": "TX", "eldLocation": "2.3 mi WSW Humble, TX" }, "vehicle": { "id": "---", "name": "---", "externalIds": { "samsara.serial": "---", "samsara.vin": "---" } } } As you can see both entries have the same Event time, they are both for the same driver and the same company. Why do these cases happen? How should we address them? I really appreciate any help you can provide. Jorge
ANSWERED

Distance Travelled

I was trying to use the Vehicle Stats Feed to daily poll (currently, could increase to more frequently, which is why I was trying the feed) and get updated engine hours, miles driven, etc https://api.samsara.com/fleet/vehicles/stats/feed However, I'm quite frequently getting negative mileage? I'm not exactly sure how that is possible? NEGATIVE Bus: 908 908 reported -70717 miles via Samsara at the last read on 2023-02-22 00:00:19. Samsara reports everything in meters, so are doing a meters2miles conversion, but that shouldn't have any affect on it? I store the meters number after each daily read and then the next day, I'm just subtracting the "newly read" meters from the previous meters and at least 1 vehicle each day reports some crazy negative mileage?? Anyone else experiencing this? Is stats/history the better API to be using for this purpose?
ANSWERED

HOS Logs with distance driven

We are using the API to replicate the drivers HOS logs - /fleet/hos/logs - but the data returned does not include the distance travelled for driving / personal conveyance duties. We have implemented a solution where we get the odometer values and calculate the distance travelled - but we need to make a large number of API requests; in some cases there are no odometer values for the driving duty. Given that ELD devices must record the odometer with each event, can Samsara simply expose the odometer / distance in the HOS logs?
ANSWERED

Which API returns the vehicle's current fuel level?

I want to get vehicle's current fuel level(fuel tank), but I cannot find it.
ANSWERED

How to remove a tag from a vehicle

I can add vehicles to tags however no way of removing from another tag when updating it will only add to another tag
ANSWERED

Defect Pictures

Is there any roadmap to include the Pictures with the Defects in the get all defects API? Or at least a flag that says picture available? So we could direct people to go to the samsara portal to view the picture.
ANSWERED

Unable to See API Token

I Have created APP, to use apis, there no option showing API Tokens in Dashboard page, left bottom gare icon
ANSWERED

Odometer for HOS

In the [beta] Get driver HOS ELD events I can see there is an "accumulatedVehicleMeters" that would work as an odometer. I need confirmation that this is from the Engine Control Module and not from the GPS. Thanks in advance