1

report - execute all vehicles

Тема: report - execute all vehicles

Hi all,

I am trying to execute via api connection some output where I can store in db certain data for all vehicles.


I do not fully understand the instructions on the manual https://sdk.wialon.com/wiki/en/local/re … xec_report
I am using the following code - however I do not know how to distinguish what is:

report - resource
report - template
report table ID
object ID and how to input all objects (units)

Can anyone help?

p.s. I did requested and stored ID of template IDs, but I did not fully get the differences between resources vs. templates

$executeReport = array(
    "reportResourceId" => 64403,
        "reportTemplateId" => 1,
        "reportObjectId" =>     63702,
        "reportObjectSecId" => 0,
        "interval" => array(
            "from" => $timestamp_from_DTB,
            "to" => $timestamp_aktual_time,
            "flags" => 0
        ));

2

report - execute all vehicles

Re: report - execute all vehicles

Hello!

To get item ID you can execute request Search items by property to find required element - resource, unit
After login under some user it receives resource ID which belongs to this user - parameter  "bact"
Reports are sub-elements which has numeric ID in resource (from 1, 2, 3, 4.....etc)

Please look here examples, also

To get data for several objects it's better to create (use) group report, and then execute report for group element

Some basic introduction you can find here Wialon Dev Basic Course
Also you can login on monitoring site and in debug mode look which parameters can be used in particular requests.

Diana Cheley
Wialon Hosting Expert
Gurtam