Alerting when a vehicle leaves the country
Who can do it: Service provider
Where: Wialon Platform Studio, Wialon Platform FleetSpace
Set up a system that automatically sends an online notification whenever a vehicle crosses the national border and leaves the country. This workflow involves three main parts:
- Creating the country border geofence
- Configuring the action template
- Configuring the Logical expression automation
- Linking the action template to the automation
Creating the country border geofence
To create the geofence that outlines the country border:
- In Wialon Platform FleetSpace, navigate to the Geofences page.
- Click the Add button to create a new geofence.
- Select the polygon shape (pentagon icon) to draw a custom shape.
- On the map, click point by point along the country’s border to outline the polygon.
- Double-click the last point to complete the shape.
- In the New geofence window, enter a descriptive name (for example,
National border
). - (Optional): Assign the geofence to a group if your service provider has configured geofence groups.
- Click Save.
Configuring the action template
To create a Send online notification action template:
- In Wialon Platform Studio, navigate to the Automations tab.
- Click Add and select Add action template.
- Enter a descriptive name, for example
Alert
. - Select the
Send online notification
type. - Enable the action template.
- Click Save.
Configuring the “Logical expression” automation
To configure the automation:
- On the Automations tab, click the Add automation button.
- In the New automation form, on the Settings sub-tab, enter a descriptive name, for example,
Vehicle left the area
. - In the Type field, select Logical expression.
- In the Expression to trigger alarm field, use the specific parameter sent by your device. For example, if you are using Howen Hero-ME32-08, the parameter for the geofence leaving an area is
geofence.out.alarm
. Find it in the list of parameters and click on it to copy. Learn more about the logical expression format. - Add the operator and condition to the expression:
geofence.out.alarm == true
- Enable the Geofences toggle:
- In the Geofence groups field, select a group to which the geofence belongs.
- In the Geofences field, select the geofences you want to monitor.
- Enable the automation using the toggle.
- In the Devices to monitor section, select the devices and labels that you want to monitor.
- Click Save.
Linking the action template to the automation
To finalize the configuration:
- Go to the Associated action templates tab within the automation.
- Click Link action template.
- From the dropdown list, select the
Alert
action template. - Customize the notification message, for example:
The vehicle has left the country.
After completing these steps, whenever a monitored vehicle leaves the configured National border
geofence, an online notification with the message “The vehicle has left the country.” will be displayed in Wialon Platform FleetSpace.