Topic: Wialon JS API - get unit group
Dears,
How to know the unit group.
I am using this code to get the unit data:
https://sdk.wialon.com/playground/demo/get_units
please advise,
Regards,
Mina
Dears,
How to know the unit group.
I am using this code to get the unit data:
https://sdk.wialon.com/playground/demo/get_units
please advise,
Regards,
Mina
Try this:
var unitGroup = sess.getItems("avl_unit_group");
Hello everyone,
I want to generate custom report between start geofence and end geofence like trip report.
Is there way for it.
Please,help me.
thiriaungmay10
To generate a report for trips between your selected geofences use the Rides table.
https://docs.wialon.com/en/hosting/user … bles/rides
Remember to select the required geofences to be included for report generation.
Thanks for your answer.
Now,I can generate ride report.But I want to generate with custom report using JS API.
I do not know how to add geofences parameters in custom ride report.
Can you guide me?
There is my custom template code:
var template = {// fill template object
"id": 0,
"n": "unit_rides",
"ct": "avl_unit",
"p":"",
"tbl": [
{
"n": "unit_rides",
"l": "Rides",
"c": "ride,ride_from_name,ride_to_name,
"cl": "Ride,Ride From,Ride To",
"s": "",
"sl": "",
"p":"",
"gt":"{\"ride_from\":1,\"ride_to\":17,\"ride\":\"*\"}",
"sch": {
"f1": 0,
"f2": 0,
"t1": 0,
"t2": 0,
"m": 0,
"y": 0,
"w": 0
},
"f": 128
}]};
But I don't get any data.