1

API To get units already added to Monitoring List

Тема: API To get units already added to Monitoring List

Hi,

i would like to add units to the monitoring list (whatever we do using the + icon i.e add to the list) through remote API.

if there is any API available, which returns the unit Ids which are already added to the list, so we can just add the new units to it.   

Noticed below APIs need to be called combinedly to add list of units to the list.

{"params":[{"svc":"item/update_custom_property","params":{"itemId":XXX,"name":"mont","value":1}},{"svc":"item/update_custom_property","params":{"itemId":XXX,"name":"monu","value":"[YYY,ZZZ]"}},{"svc":"item/update_custom_property","params":{"itemId":XXXX,"name":"monuv","value":"[]"}}],"flags":0}

Please confirm.

Thanks
J Prabhu
2

API To get units already added to Monitoring List

Re: API To get units already added to Monitoring List

prabhu.janakiraman, yes, but you don't have to update user's custom property "mont" - it is for setting monitoring mode (1 - units, 0 - groups).
To add units in monitoring panel use user's property "monu". Just parse it and add new unit ids.
As for "monuv" propery - it is for setting units which should be visible on map.

Properties "monu" and "monuv" are only for unit's monitoring mode.

Head of Wialon Local Department
Gurtam
3

API To get units already added to Monitoring List

Re: API To get units already added to Monitoring List

Hi,

Thank you so much for providing detailed explanation for the 3 properties/requests.

Thanks
J Prabhu
4

API To get units already added to Monitoring List

Re: API To get units already added to Monitoring List

Hi,
Can you please answer the initial question.

if there is any API available, which returns the unit Ids which are already added to the list?, so we can just add the new units to it.   

Ex: lets say we have 10 units under one account and out of which we already marked 5 units to be displayed in the monitoring panel.
now we would like to add 2 more units to it.

Is there any API which returns the already marked 5 units, so we can add the additional units.

Thank you in advance.

Thanks
J Prabhu
5

API To get units already added to Monitoring List

Re: API To get units already added to Monitoring List

prabhu.janakiraman, you can execute search_item request https://sdk.wialon.com/wiki/en/sidebar/ … les/search
over some user. Pass user's id to "id" param and 2 (custom properties) to "flags". Then in section "prp" as result you'll get all user's custom properties.
You can parse "monu" property and get list of current monitoring units' ids.

Head of Wialon Local Department
Gurtam