1

Custom Driving Behavior and Fuel Performance Monitoring Dashboard

Topic: Custom Driving Behavior and Fuel Performance Monitoring Dashboard

Hello,

We are working on a custom dashboard with the primary intent of displaying driving behavior widget including (speeding count, speeding duration, harsh breaking count, harsh acceleration count, harsh turning count, continuous driving over 4hrs count, night trips count and night driving duration) and a fuel performance widget showing total fuel filled, total fuel drained, total fuel consumed, top fuel fillers, top fuel drainers and top fuel consumers for the dashboard interval.

Could you please advise on the best approach we should follow for an efficient implementation of the requirement? shall we create report templates and use JS API to execute multiple reports via API and merge the response to get the data as inquired and try showing in the dashboard or shall we read messages for the interval and do the processing as needed? or is there any other advisable option for a timely and efficient implementation?

Your advise is highly appreciated!

2

Custom Driving Behavior and Fuel Performance Monitoring Dashboard

Re: Custom Driving Behavior and Fuel Performance Monitoring Dashboard

Hello, nasnew,

You may try to use events to control different unit state.
First, you need to add units into the session with update_units request.
Specify all required events that you want to control (sensors, speeding, fuel), then check the updates with check_updates request and store it on the side of your app to detect changes with the new updates.

As for the driving behavior and drivers activity, you may use reports with the Eco Driving and Driver Activity table types, respectively. 

Please, write us if you have any additional questions.

Anton Zinovyev
Technical Care Engineer (L2)
Wialon
3

Custom Driving Behavior and Fuel Performance Monitoring Dashboard

Re: Custom Driving Behavior and Fuel Performance Monitoring Dashboard

Thanks Zant, I appreciate !

Concerning reports, should the report template be pre created under resources? If for example we need the custom dashboard work for all accounts what is the best implementation approach ?

BR

4

Custom Driving Behavior and Fuel Performance Monitoring Dashboard

Re: Custom Driving Behavior and Fuel Performance Monitoring Dashboard

nasnew you may create a separate resource, specifically for such reports and then execute the report with the fixed report resource ID, but for the units available for the required users.

Anton Zinovyev
Technical Care Engineer (L2)
Wialon
5

Custom Driving Behavior and Fuel Performance Monitoring Dashboard

Re: Custom Driving Behavior and Fuel Performance Monitoring Dashboard

Dear Zant,

Is there any exec_report JS implementation for the below? I need to execute the report for all units under a user without any groups. the execReport JS function works for a single unitID or groupID for multi-units. but I couldn't get any JS function that allowed me to pass an array of units as in the remote API reportObjectIdList.

In addition, for the creation of the report under a separate resource advise, is there any way we can get reports under resource without granting access to the resource for the user ?

Thanks for your assistance!

svc=report/exec_report&params={"reportResourceId":<long>,
                   "reportTemplateId":<long>,
                   "reportObjectId":<long>,
                   "reportObjectSecId":<long>,
                   "reportObjectIdList":[<uint>, ...]},
                   "interval":{
                           "from":<uint>,
                           "to":<uint>,
                           "flags":<uint>
                   },
                               "remoteExec":<uint>,
                   "reportTemplate":<object>}