1

For Create Schedule

Topic: 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

(edited by Diana 18/03/2019 10:41:08)

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) https://docs.wialon.com/en/hosting/_media/routes/schedule.png]

"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