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

Extracted dashboards yaml file uses things/variables names rather than UIDs #96

Open
ubidefeo opened this issue Jan 6, 2022 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@ubidefeo
Copy link
Contributor

ubidefeo commented Jan 6, 2022

If I extract a Dashboard its widgets are linked to Things and Variables based on their names rather than UID.
I would expect the Thing ID and Variable ID to be listed instead.
This could be useful to retrieve full details of a dashboard, not just the labels.
Any reason why it's just like this?

Current structure

- height: 4
    height_mobile: 4
    name: Switch A
    options:
        frameless: false
        mode: Color 2
        showThing: false
    type: LED
    variables:
      - thing_id: sOnOff
        variable_id: switch_A
    width: 4
    width_mobile: 4
    x: 0
    x_mobile: 0
    "y": 0
    y_mobile: 0

Full structure

- height: 4
    height_mobile: 4
    name: Switch A
    options:
        frameless: false
        mode: Color 2
        showThing: false
    type: LED
    variables:
      - thing_id: 0bbafafc-2ac3-4d10-9620-34f8fb284701
        thing_name: SonOff
        variable_id: d0be0122-24cd-4a6d-99f5-793e21ac34a1
        variable_id: switch_A
    width: 4
    width_mobile: 4
    x: 0
    x_mobile: 0
    "y": 0
    y_mobile: 0
@polldo
Copy link
Contributor

polldo commented Jan 10, 2022

this is something we should handle, you can find another discussion on slack
the result of an extract command is a cloud template (in this case a dashboard template). Here's an example of a cloud dashboard template: https://github.com/bcmi-labs/cloud-templates/blob/main/templates/home-security-alarm/resources/dashboard.yml

@mafzal9

This comment was marked as duplicate.

@ContinenteCNC
Copy link

I don't know if what I'm experiencing is related to this issue, but I simple can't creat a valid dashboard. Whenever I issue the command, the new dashboard does appear in my Arduino IoT Cloud dashboards, but it won't open. If I click on it, it will fail do open. If I extract the template it from the newly created dashboard it looks just like the one used to created it, just with name and thing_id replaced.

Is there a work around to create dashboards from command line?

@mafzal9
Copy link

mafzal9 commented Nov 15, 2023

Yes this issue still exist and not sure when will fix this.

@ContinenteCNC
Copy link

Hi, folks!

What is the current work around?

Duplicate the dashboard from IoT Cloud GUI and replace the linked varibles one by one?

I hope they take care of this issue soon, I am really starting to enjoy the possibilities of Arduino IoT cloud as a viable Cloud for professional applications.

Thank you in advance, Arduino Team!

Bruno

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants