Driver Login Report
Here is how to create a simple report listing periods when a driver was logged in to a vehicle that can be run for either drivers or vehicles.
- Set up an Event Rule for drivers.
- Enable Script Expressions.
Event Rule with a Script Expression
Create a new Event Rule, named, for example, DriverReport, and set it to Disabled. This way, the rule is not evaluated in live mode, but you can still generate reports for it.
In the Expressions section, add a Script Expression and edit it to contain the script below.
In the Notifiers section, add Report Argument notifiers like in the picture below and save the Rule.
In SiteAdmin > Reporting > Manage Reports, create a new Report based on EV1000 Event Rule report.
Click on the top header of the column labeled “Vehicle”, and choose Delete Column to remove it. We want to use the vehicle and driver data generated through Report Arguments instead.
Now save the new report. Activate and configure this report for the application in which you created the DriverReport Rule.
You can now generate it for the DriverReport rule, for either tags denoting drivers or tags denoting vehicles.
The result should look something like this: