• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    Can a dashboard or widget be cloned?

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 2 Posters 648 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      TomG
      last edited by TomG

      I'd love to clone a dashboard (the same user, or to another user) or a widget. Is there some straight forward method to do this? This would include using the command line on my Raspberry Pi if that makes sense.

      Background: I have a MySensors node in each room to control the IR HVAC unit in that room. I made a dashboard for each HVAC/room. The dashboard includes several "Sensor custom buttons" widgets as well as graphs and sensor widgets. I "cloned" the dashboards using copy/paste as much as possible (mostly the JSON on the custom buttons), but it was still a lot of work. Today I setup another user and I realized I was going to have to create those dashboards all over again. Any level of cloning support that makes all of this easier would be greatly appreciated. I realize that implementing a general dashboard/widget cloning feature could be lots of work.

      P.S. I understand that after cloning I may have to change the sensors used by a widget, but it would still save a lot of time.

      MyController 1.4.0.Final on a Raspberry Pi 3+ running Raspbian Stretch
      MySensors 2.3.0 Serial Gateway

      jkandasaJ 1 Reply Last reply Reply Quote 0
      • jkandasaJ Offline
        jkandasa @TomG
        last edited by jkandasa

        @tomg For now, there is no direct clone support. As you are in 1.4.0 SNAPSHOT version you may clone it in the backend as follows,

        1. Capture existing dashboards from mycontroller/conf/resources/dashboards
        2. Select your exact dashboard, you want to clone. In my case, it was a0481d5d-422d-4fc9-9548-ca299cfd77e1.json
        3. Now create a new dashboard and note that dashboard name in mycontroller/conf/resources/dashboards (in my case it was bb1aa13d-7679-4161-9cd5-7da580cdcb27.json), NOTE: New dashboard layout should be as like old dashboard.
        4. Execute the following commands,
        • cd mycontroller/conf/resources/dashboards/
        • cp a0481d5d-422d-4fc9-9548-ca299cfd77e1.json bb1aa13d-7679-4161-9cd5-7da580cdcb27.json

        NOTE: All the commands should be executed as the same user as running MyController server.
        IMPORTANT: As dashboard have unique id's may lead some issue, I never tested this. Just giving an idea.

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          TomG @jkandasa
          last edited by

          @jkandasa Thanks for the suggestion, I'll give it a try in the near future.

          Please consider supporting this functionality in the future in the user interface of the MyController program.

          MyController 1.4.0.Final on a Raspberry Pi 3+ running Raspbian Stretch
          MySensors 2.3.0 Serial Gateway

          jkandasaJ 1 Reply Last reply Reply Quote 0
          • jkandasaJ Offline
            jkandasa @TomG
            last edited by

            @tomg Sure, Kindly create a ticket to track this request in GitHub.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            0

            Online

            588

            Users

            529

            Topics

            3.4k

            Posts
            Copyright © 2015-2025 MyController.org | Contributors | Localization