Community
ECM access
Is there a way to get real-time engine data directly from the ECM? I'm working with a large fleet that is interested in creating an app for drivers that can help them manage their fuel economy in real time.
Posted by Dave Goodwin over 3 years ago
Samsara camera live stream media (video) to a third party processor
Can video content from Samsara cameras be diverted (streamed in real-time) to a third party onboard processor for interpretation? The use case I am looking at is a POC that would run in parallel to the verticalized Samsara configuration (camera-gateway-cloud).
As a follow-up question, is Samsara considering allowing third-party AI/algorithms to run on their in-vehicle (vs. cloud) tech stack?
Posted by David Braunstein over 3 years ago
Discrepancy between Samsara Activity Report and Drivers Efficiency API End Point
Hey guys,
Quick question! I have noticed that the miles in the Samsara Activity Report over a given time range do not match the miles that I am returning from the API. Although the numbers are not far off, not a single one of them is matching exact, with the majority of them being inflated in the Samsara UI.
Here is an example:
One of my drivers shows 4,226.5 mi in the dashboard, while the value under the totalDistanceDrivenMeters key shows 6539284 or 4063.322695 miles. This is the case with all the drivers.
This data was being pulled through the month of march through both the UI and the dashboard. I will put my API call below for a reference:
RestClient.get"https://api.samsara.com/fleet/drivers/efficiency?startTime=2021-03-01T00:00:00Z&endTime=2021-03-31T23:59:00Z",
{:Authorization => '''}
Any ideas what may be going on?
Posted by Tyler Pulse about 3 years ago
Is it possible to get or calculate MPG fuel economy ?
Hello! I am looking for ways to get data feed types that would let me calculate the vehicle fuel economy in MPG for a given time period. I found fuelPercents and obdOdometerMeters diagnostic types, but what I am really after is an absolute value of fuel gallons or liters.
Thanks!
Posted by Chris over 3 years ago
Retrieve the Walkaround Inspection images in a DVIR from the API
Is there a way to get the images, or an URL to the images, that are part of a DVIR?
Posted by Keith Emery about 3 years ago
How precise is the odometer reading coming from the legacy locations endpoint?
Does the odometer reading returned from the legacy locations endpoint include fractional mileage? For example, it returns meters, and when I convert to miles using division by 1609.344 and then use basic rounding (from midpoint), sometimes I don't get the result I expect (i.e. the mileage reading can round down when I expect it to round up).
I even cross compared with the new vehicle stats history endpoint and the last three digits always seem to be zero, which would tell me I lose precision.
Posted by Taco 🌮 about 3 years ago
Driver Duty Status / Engine Status
We are working on Driver Duty Status project in C. H. Robinson. We need to know the status of Driver / Engine on specific time. Let’s say, if I want to know the status of Driver at 9:25 AM on 17-Sept-2020 so I should get one of the statuses from "offDuty""sleeperBed""driving""onDuty""yardMove""personalConveyance" .
This can be solved by Get HOS logs API. Here we have few questions:
1. This API expects Driver ID to be passed as Input. We can fetch Driver ID from Retrieve a vehicle API. In response of Retrieve a vehicle API, we don’t get staticAssignedDriver attribute always and without that we can’t hit HOS log API. So which API can give us correct duty status on specific time?
2. If we make sure that staticAssignedDriver attribute come always in response of Vehicle API then we can use it. Also if we don’t pass Start Time and End Time as input, will HOS give current status?
Could you please help us to know the answers?
Posted by Aadesh Agrawat almost 4 years ago
Get per state mileage by trip
https://api.samsara.com/v1/fleet/trips
It feels like this trips report should also return the Shipping IDs?
I would like to query each trip and pull per state mileage into my management system, has anyone found a way to do this?
Posted by David C. Moody over 3 years ago
Question about Oauth2 implementation details
Hi,
Currently I am using Samsara Legacy API. The authorization logic atm is using the api key.
But I saw, that there is oaut2 mention. We prefer to use oauth2 based authorizations, to add additional level of security - using static api key is not as secure as oaut2.
So, for Oauth2 related info I see in the docs: https://www.samsara.com/api-legacy#section/Authentication/OAuth2 just that table.
From where can we get more info, about:
- how it must be implemented
- do we need to create app, which will be installed per client, with permissions .. etc
- what are the possible scopes
- possible examples, for:
- authorization, eg initiall "install" request
- refresh /get new token pairs/
Posted by Mihail Krastev over 3 years ago