Hello!
As I understand you need to create the following notifications with required parameters:
1) Control engine is on, action - get mobile notifications
If unit has Engine Ignition sensor, you can create notification to control sensor by type = Engine Ignition Sensor ("engine operation")
Use the following parameters:
{"n":"example engine On","ta":1603746000,"td":0,"tz":134228528,"la":"en","ma":0,"sch":{"f1":0,"f2":0,"t1":0,"t2":0,"m":0,"y":0,"w":0,"fl":0},"ctrl_sch":{"f1":0,"f2":0,"t1":0,"t2":0,"m":0,"y":0,"w":0,"fl":0},"un":[1326],"trg":{"t":"sensor_value","p":{"sensor_type":"engine operation","sensor_name_mask":"*","lower_bound":1,"upper_bound":1,"prev_msg_diff":0,"merge":1,"type":0}},"d":"","act":[{"t":"mobile_apps","p":{"apps":"{\"Wialon\":[1027]}"}}],"txt":" notification text","fl":0,"mast":0,"mpst":0,"cdt":0,"mmtd":3600,"cp":3600,"id":28,"itemId":930849,"callMode":"update"}
2) Control engine is Off, action - get mobile notifications
The same parameters as above, just change value range to 0 - "lower_bound":0,"upper_bound":0
3) Speed limit (the action as above)
{"n":"example1","ta":1603746000,"td":0,"tz":134228528,"la":"en","ma":0,"sch":{"f1":0,"f2":0,"t1":0,"t2":0,"m":0,"y":0,"w":0,"fl":0},"ctrl_sch":{"f1":0,"f2":0,"t1":0,"t2":0,"m":0,"y":0,"w":0,"fl":0},"un":[826],"trg":{"t":"speed","p":{"sensor_type":"","sensor_name_mask":"","lower_bound":0,"upper_bound":0,"merge":0,"min_speed":0,"max_speed":60,"driver":0}},"d":"","act":[{"t":"mobile_apps","p":{"apps":"{\"Wialon\":[1427]}"}}],"txt":" notification text","fl":0,"mast":0,"mpst":0,"cdt":0,"mmtd":3600,"cp":3600,"id":28,"itemId":849,"callMode":"update"}
where "min_speed":0,"max_speed":60 is allowed range.
4) Geofences control - in geofence ("type":0)
{"n":"example geo","ta":1603746000,"td":0,"tz":134228528,"la":"en","ma":0,"sch":{"f1":0,"f2":0,"t1":0,"t2":0,"m":0,"y":0,"w":0,"fl":0},"ctrl_sch":{"f1":0,"f2":0,"t1":0,"t2":0,"m":0,"y":0,"w":0,"fl":0},"un":[1186],"trg":{"t":"geozone","p":{"sensor_type":"","sensor_name_mask":"","lower_bound":0,"upper_bound":0,"merge":0,"geozone_ids":"930849_40:1595402237","geozone_id":"930849_40:1595402237","type":0,"min_speed":0,"max_speed":0,"lo":"OR"}},"d":"","act":[{"t":"mobile_apps","p":{"apps":"{\"Wialon\":[1427]}"}}],"txt":"%UNIT% arrived to %ZONE%. At %POS_TIME% it moved with speed %SPEED% near '%LOCATION%'.","fl":0,"mast":0,"mpst":0,"cdt":0,"mmtd":3600,"cp":3600,"id":28,"itemId":949,"callMode":"update"}
5) To get all notification with their params
Use the request resource/get_notification_data , the empty "col":"" returns all notifications
Diana Cheley
Wialon Hosting Expert
Gurtam