Skip to content

Resolution of site descriptions #4

@binarybear-de

Description

@binarybear-de

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 requesthelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions