forked from qgmgit/qgm-check_unifi
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
Currently the script is online showing the site's "name".
Despite being a pretty short name on the demo controller - usually this is some generated id like 5wd3gs so so.
The "real name" of the site is the "description"
Current I haven't found a way to resolve a "name" into the "description".
this site's list looks like this:
{
"meta":{
"rc":"ok"
},
"data":[
{
"_id":"5ff872b4c9e77c00fb57e624",
"name":"default",
"desc":"FedExForum",
"attr_hidden_id":"default",
"attr_no_delete":true,
"role":"admin"
},
{
"_id":"5ff872c0c9e77c00fb57e6dc",
"name":"outlets",
"desc":"Outlets at Castle Rock",
"role":"admin"
},
]
}
It's only available in here - not in the json output of all devices if Site $SITE.
So some mapping has to be done before jumping in the device-parsing for loop...
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed