Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolution of site descriptions #4

Open
binarybear-de opened this issue Jan 8, 2021 · 0 comments
Open

Resolution of site descriptions #4

binarybear-de opened this issue Jan 8, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@binarybear-de
Copy link
Owner

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...

@binarybear-de binarybear-de self-assigned this Jan 11, 2021
@binarybear-de binarybear-de added enhancement New feature or request help wanted Extra attention is needed labels Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant