Accumulator types: custom accumulators

With custom accumulators, you can reset a signal based on accumulators on a daily basis or with an input signal. You'll be able to show those accumulators in the Assets list.

This is very useful if you for example want to measure engine hours, daily driving time, start and end odometer readings, or continuous driving time.

This example demonstrates how to display both the total driving time for the current day and the driving time for the most recent trip. The input signal "Engine" is used to track driving time.

  •  The first accumulator, named “Today,” is reset every day to capture daily driving hours.
  • The second accumulator, named “Trip,” is reset whenever the engine is turned off, with a 15-minute delay to ensure trip data is fully captured.

Additionally, you can include Start and End Odometer readings in the Daily Summary panel. This helps you accurately monitor the total distance driven during a specific time period, providing a clearer overview of driving activity.

Accumulator_odometer_values.png

Application setup

Enable the following Privileges in the application.

1. Log in to an application using a Site Admin user.

2. Go to the application privileges, and enable the following privileges:

_BatchEditUsers,  _EditAccumulatorType and _EditDeviceMapperScript

mceclip1.png

3. Click on Save to save your application

Device mapper setup

In this example, we will use Ignition as the input that triggers the events we need in the accumulator. 

1. Open the Device Mapper

2. Navigate to Scripts 

3. Click on +Script to add a new script, and set a name for it

4. Select CustomBoolean1 as the output of the script

Screenshot 2024-12-17 at 10.34.00.png

4. Press on Open Script Editor and then enter the following script:

return !fields.get('Ignition',false);

The script inverts the Ignition signal to be used to reset the Trip accumulator later on.

5. Test the script and Save.

6. Save the Device Mapper as well. 

Repeat these steps (1-5) for each tracker type you want to have this feature.

Setup Accumulators

Follow these steps to create the accumulators “Today” and “Trip”.

1. Go to Main Menu Admin → Accumulator Types

2. Click on the button + Type

3. Give your accumulator the name Driving Today with the following settings:

4. Click on Save.

5. Create a new accumulator with the name Trip with the following settings:

6. Click on Save and reload the page.

Assign the accumulators to your assets

The next step is to assign the accumulators to the assets:

1. Click right on the asset and select Edit 

2. Navigate to Accumulators and press on + Accumulator

Add Driving Today and Trip accumulators to the asset.

3. Click on Save to save these changes to the user.

Note: If you need to apply these changes to many assets at once, use instead Batch Edit User tool.

Show Accumulators in the Assets panel

Finally, we want to show the accumulators in the Assets list.

1. Click on the right of the Assets panel and select the two accumulators. 

If you don't see them, use the Manage Columns option to add them here.

2. Save your Workspace to keep the changes.

Add accumulators to your reports

To add an accumulator to reports, follow this guide.

Limitations

Currently, the accumulators with reset capabilities (of type active time with reset) only display information in real-time, accumulator history is not available. 

Enable accumulator through Rest API

The accumulator can be added or deleted from the Rest API. Find more about these new API resources that enable you to manage users' accumulators more efficiently.

Screenshot 2024-10-14 at 09.48.48.png