Skip to main content

Events

McEasy provides real-time events through webhooks to help you monitor and track your fleet operations. These events are categorized into different types and delivered in JSON format.

📡 Event Categories

Below is a categorized list of events your webhook service will receive:

🚗 General Data Update

IDNameCodeDescription
1LocationDVC-DU1/L1Provides real-time location data from the vehicle.
2TemperatureDVC-DU1/T1Provides temperature sensor data from the vehicle.
3FuelDVC-DU1/F1Provides fuel level updates, including percentage and liters remaining.

🚛 Fleet Task Data Update

IDNameCodeDescription
15Status Fleet TaskAPI-DU1/SF1Updates on fleet task statuses such as scheduled, started, or ended.
16POP/PODAPI-DU1/PP1Updates on Proof of Pickup (POP) and Proof of Delivery (POD).
17Location with Fleet TaskDVC-DU1/LF1Provides real-time location data from vehicles that actively executing Fleet Tasks.

⚠️ General Alarm

IDNameCodeDescription
5GeofenceDVC-A1/G1Notifies if a vehicle enters or exits a designated geographic area.
6TemperatureDVC-A1/T1Notifies if the temperature sensor readings exceed or drop below thresholds.
7FuelDVC-A1/F1Detects sudden fuel drops, indicating possible leakage or theft.
8DoorDVC-A1/D1Notifies when the vehicle doors are opened or closed.
9TamperDVC-A1/T2Indicates interference with the tracking device or vehicle system.
13EngineDVC-A1/E1Notifies when the vehicle engine is turned on or off.
14SOSDVC-A1/S1Emergency alert triggered manually by the driver in distress.
26ShockDVC-A1/S4Detects sudden vehicle impact or collision.

🚗 Driving Behavior Alarm

IDNameCodeDescription
4OverspeedDVC-A1/O1Triggers when a vehicle exceeds a predefined speed limit.
10Harsh BrakingDVC-A1/HB1Triggers when a vehicle suddenly decelerates, indicating harsh braking.
11Harsh AccelerationDVC-A1/HA1Alerts when a vehicle accelerates too quickly, potentially indicating reckless driving.
12Sharp TurnDVC-A1/ST1Notifies when a vehicle makes an abrupt turn, which may suggest unsafe driving behavior.

🛑 Driver Monitoring Alarm

IDNameCodeDescription
18FatigueDVC-A1/F2Detects signs of driver fatigue, such as prolonged eye closure.
19Close EyeDVC-A1/CE1Alerts when the driver's eyes remain closed beyond a set threshold.
20YawnDVC-A1/Y1Triggers when yawning is detected, signaling possible driver drowsiness.
21DistractionDVC-A1/D2Identifies when the driver is looking away from the road for an extended period.
22SmokingDVC-A1/S2Detects if the driver is smoking while operating the vehicle.
23Phone CallDVC-A1/PC1Alerts when the driver is using a mobile phone while driving.
24Missing FaceDVC-A1/MF1Notifies when the driver's face is not detected by the monitoring system.
25SeatbeltDVC-A1/S3Detects whether the driver is not wearing a seatbelt while driving.

📄 JSON Data Structure

Location Data Update (DVC-DU/L1)
{
license_plate: string,
hull_no: string,
imei: string,
driver: string,
latitude: float,
longitude: float,
speed: int,
direction: int,
engine_on: bool,
last_packet: string,
last_receive: string,
last_motion: string,
motion_status: string
}
Temperature Data Update (DVC-DU/T1)
{
license_plate: string,
imei: string,
driver: string,
latitude: float,
longitude: float,
temperature_num: int,
temperature: float,
engine_on: bool
}
Fuel Data Update (DVC-DU/F1)

{
license_plate: string,
imei: string,
driver: string,
latitude: float,
longitude: float,
liter: float,
percentage: float,
engine_on: bool
}
Overspeed Alarm (DVC-A1/O1)
{
event_timestamp: string,
license_plate: string,
imei: string,
driver: string,
latitude: float,
longitude: float,
speed: int
}
Geofence Alarm (DVC-A1/G1)
{
event_timestamp: string,
license_plate: string,
imei: string,
driver: string,
latitude: float,
longitude: float,
condition: string, // Going in or out of geofence. Possible values: in, out
geofence: string // Name of the geofence
}
Temperature Alarm (DVC-A1/T1)
{
event_timestamp: string,
license_plate: string,
imei: string,
driver: string,
latitude: float,
longitude: float,
condition: string, // Higher or Lower than alert threshold. Possible values: lower, higher
temperature: float,
origin: string // Origin of the temperature alert. Possible values: refrigerator, engine
}
Fuel Alarm (DVC-A1/F1)
{
event_timestamp: string,
license_plate: string,
imei: string,
driver: string,
latitude: float,
longitude: float,
condition: string, // Gaining or Losing fuel. Possible values: gain, loss
percentage: float,
capacity: float
}
Door Alarm (DVC-A1/D1)
{
event_timestamp: string,
license_plate: string,
imei: string,
driver: string,
latitude: float,
longitude: float,
door_num: int, // Indicates which door sensor it is. Possible values: 1, 2
condition: string, // Is door opened or closed. Possible values: open, close
address: string // Address of the coordinates
}
Tamper Alarm (DVC-A1/T2)
{
event_timestamp: string,
license_plate: string,
imei: string,
driver: string,
latitude: float,
longitude: float
}
Harsh Braking Alarm (DVC-A1/HB1)
{
event_timestamp: string,
license_plate: string,
imei: string,
driver: string,
latitude: float,
longitude: float
}
Harsh Acceleration Alarm (DVC-A1/HA1)
{
event_timestamp: string,
license_plate: string,
imei: string,
driver: string,
latitude: float,
longitude: float
}
Sharp Turn Alarm (DVC-A1/ST1)
{
event_timestamp: string,
license_plate: string,
imei: string,
driver: string,
latitude: float,
longitude: float
}
Engine Alarm (DVC-A1/E1)
{
event_timestamp: string,
license_plate: string,
imei: string,
driver: string,
latitude: float,
longitude: float
condition: string, // Is engine on or off. Possible values: On, Off
}
SOS Alarm (DVC-A1/S1)
{
event_timestamp: string,
license_plate: string,
imei: string,
driver: string,
latitude: float,
longitude: float
}
Status Fleet Task (API-DU1/SF1)
{
event_code: string,
fo_number: string,
vehicle_id: integer,
license_plate: string,
driver: string,
driver_contact: string,
expected_departure_on: string,
estimated_arrival_on: string,
actual_departure_on: string,
actual_arrival_on: string,
company_id: integer,
status: string,
delivery_orders: [
{
number: string,
origin_address: {
name: string,
full_name: string,
geolocation: string,
geolocation_type: string
},
destination_address: {
name: string,
full_name: string,
geolocation: string,
geolocation_type: string
},
expected_pickup_on: string,
expected_delivered_on: string,
status: {
name: string
},
shipment_number: string,
timestamp: {
picked_on: string,
delivered_on: string
},
user_definition_fields: [
{
key: string,
name: string,
value: any
}
]
}
],
unassigned_delivery_orders: [
// Same structure as delivery_orders
]
}

Pop Pod Data Update (API-DU1/PP1)
{
event_code: string,
fo_number: string,
vehicle_id: integer,
license_plate: string,
driver: string,
driver_contact: string,
expected_departure_on: string,
estimated_arrival_on: string,
actual_departure_on: string,
actual_arrival_on: string,
company_id: integer,
status: string,
delivery_orders: [
{
number: string,
origin_address: {
name: string,
full_name: string,
geolocation: string,
geolocation_type: string
},
destination_address: {
name: string,
full_name: string,
geolocation: string,
geolocation_type: string
},
expected_pickup_on: string,
expected_delivered_on: string,
status: {
name: string
},
shipment_number: string,
timestamp: {
picked_on: string,
delivered_on: string
},
user_definition_fields: [
{
key: string,
name: string,
value: any
}
]
}
],
unassigned_delivery_orders: [
// Same structure as delivery_orders
]
}

Location with Fleet Task Data Update (DVC-DU/LF1)
{
license_plate: string,
hull_no: string,
imei: string,
driver: string,
latitude: float,
longitude: float,
speed: int,
direction: int,
engine_on: bool,
last_packet: string,
last_receive: string,
last_motion: string,
motion_status: string
}
Fatigue Alarm (DVC-A1/F2)
{
event_timestamp: string,
license_plate: string,
imei: string,
driver: string,
latitude: float,
longitude: float,
geofences: [string],
engine_on: bool,
link: string
}
Close Eye Alarm (DVC-A1/CE1)
{
event_timestamp: string,
license_plate: string,
imei: string,
driver: string,
latitude: float,
longitude: float,
geofences: [string],
engine_on: bool,
link: string
}
Yawn Alarm (DVC-A1/Y1)
{
event_timestamp: string,
license_plate: string,
imei: string,
driver: string,
latitude: float,
longitude: float,
geofences: [string],
engine_on: bool,
link: string
}
Distraction Alarm (DVC-A1/D2)
{
event_timestamp: string,
license_plate: string,
imei: string,
driver: string,
latitude: float,
longitude: float,
geofences: [string],
engine_on: bool,
link: string
}
Smoking Alarm (DVC-A1/S2)
{
event_timestamp: string,
license_plate: string,
imei: string,
driver: string,
latitude: float,
longitude: float,
geofences: [string],
engine_on: bool,
link: string
}
Phone Call Alarm (DVC-A1/PC1)
{
event_timestamp: string,
license_plate: string,
imei: string,
driver: string,
latitude: float,
longitude: float,
geofences: [string],
engine_on: bool,
link: string
}
Missing Face Alarm (DVC-A1/MF1)
{
event_timestamp: string,
license_plate: string,
imei: string,
driver: string,
latitude: float,
longitude: float,
geofences: [string],
engine_on: bool,
link: string
}
Seatbelt Alarm (DVC-A1/S3)
{
event_timestamp: string,
license_plate: string,
imei: string,
driver: string,
latitude: float,
longitude: float,
geofences: [string],
engine_on: bool,
link: string
}
Shock Alarm (DVC-A1/S4)
{
event_timestamp: string,
license_plate: string,
imei: string,
driver: string,
latitude: float,
longitude: float,
geofences: [string],
engine_on: bool,
link: string
}

🎯 Notes

  • All timestamps are in UTC timezone
  • Boolean fields use true/false values
  • Arrays are enclosed in square brackets []
  • Some alarms include a link field directing to relevant media or logs.
  • If you have any questions, please reach out to our support team.