1

For Create Schedule

Тема: For Create Schedule

Hello Team,

we need to use https://sdk.wialon.com/wiki/en/sidebar/ … e_schedule to create schedule.

Can you please explain the request params : (we have also checked : https://sdk.wialon.com/wiki/en/sidebar/ … ound_data)

How to get below params ::

"tm":[
        {
              "at":<uint>,
              "ad":<uint>, -> what is deviation arrival time ?
              "dt":<uint>,
              "dd":<uint>
          }
     ],
     "sch":{
                   "f1":<uint>,
                        "f2":<uint>,
              "t1":<uint>,
              "t2":<uint>,
              "m":<uint>,
              "y":<uint>,
              "w":<uint>
              },
      "cfg":{
              "name":<text>,
              "units":[<long>],
              "enabled":<byte>,  -> we are using 1 for automatic round
              "autoName":<byte>,
              "validityPeriod":<uint>
      }}

please explain in details

2

For Create Schedule

(18/03/2019 10:41:08 отредактировано Diana)

Re: For Create Schedule

How to get below params ::

"tm":[
        {
              "at":<uint>,
              "ad":<uint>, -> what is deviation arrival time ?
              "dt":<uint>,
              "dd":<uint>
          }
     ],

Hello

"ad"/"dd" parameters means time of deviation (-/+  time )  for point which specified here in web interface (plus/minus column) For Create Schedule

"cfg":{
              "name":<text>,
              "units":[<long>],
              "enabled":<byte>,  -> we are using 1 for automatic round
              "autoName":<byte>,
              "validityPeriod":<uint>
      }}

please explain in details

yes, it's correct to use "enabled":1 for automatic round, but don't forget to specify unit's id in "units" and parameter "f" should be only 2 -  'Relative to day' schedule type

"sch":{
                   "f1":<uint>,
                        "f2":<uint>,
              "t1":<uint>,
              "t2":<uint>,
              "m":<uint>,
              "y":<uint>,
              "w":<uint>
              },

About 'sch' parameter please look here topic

Diana Cheley
Wialon Hosting Expert
Gurtam