Interval Event
This plugin contains two expressions that can be used in Event Rules. First "Interval Expression" that can be used to generate events every time a GpsGate Variable reaches an interval value. Typically the new accumulator variable _Odometer can be used to generate events every X km a vehicle has traveled. And secondly a "Time Interval Expression" which can be used to generate events with a time interval of a day, week, month or year.
Those two event expressions can be used to setup simple maintenance configurations. But it is in no way intended to be a full featured maintenance solution.
How to install
1. Make sure you have Core 3.1.0.3840 or later installed.
2. Install "Interval Event" from labsupdate.gpsgate.com
Interval Expression
This expression is true when the value of a selected signal passes a start value, and each time the value passes a provided interval length. The expression is intended for signals that only increase in value, for example _Odometer.
The following example creates an event when a vehicle passes 1000 km and each time it passes 500 km after that:
1. Select the odometer accumulator signal ("_Odometer" in the list)
2. Enter Start Value 1000 km
3. Enter Interval Length 500 km
(Leave the "Keep event open" check box unchecked)
NOTE! _Odometer is a new feature in GpsGate Server v3.1. To Activate it for a vehicle, right click on the vehicle, select "Edit User", and than set the _Odometer under "Accumulators".
Time Interval Expression
This expression is true when the device time (or optionally server time) passes a start date and time, and each day/week/month/year from the start value. The expression can create a new event each time the time interval is passed, or the event can optionally be kept open.
The following example creates an event when the device time passes 10/24/2012 08:00 AM. The event is kept open.
1. Select "Device Time" in the list
2. Select 10/24/2012 for date
3. Select 10:00 AM for time of day
4. Select "Day"
(Leave the "Keep event open" check box unchecked)
Advanced
The expression can act as a "one shot" event each time the interval length is passed, or the event can optionally be kept open. The default setting is that the event rule opens and closes the event at the same time. This is called a "one shot" event. If you instead want to keep the event open, and use an end expression to close the event select "Keep event open".
Regards,
Johan
GpsGate Support