@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.
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.
NOTE: Once you upgrade, you cannot go back to the previous version(without old backup)
The snapshot worked great! I was able to combine my two dashboards (that I made to work around the problem) into one dashboard without any problems.
Is the dashboard configuration in a JSON file available somewhere?
This issue was important to me not for just one dashboard, but I plan to have several dashboards of similar complexity and artificially splitting up dashboards made the user interface more complex and confusing.
I'm surprised I'm the first person to report this problem. Perhaps other people just lived with the limitation and added dashboards or I'm pushing the boundaries on custom button widgets.
I'd like to point out to everyone listening, that about one week after I reported a problem, the developer provided a fix. I certainly wouldn't expect this level of service all the time, but this is a level of service you won't see from most commercial products. I'll definitely support MyController.org (and MySensors.org) with an annual donation. You should support them too if you find value in these products. I'm sure any amount would be appreciated. FYI, I don't have any connection to these two organizations other than as a satisfied user.
@tomg Thank you! For now no workaround, other than creating a new dashboard.
I plan to take off dashboard configuration from the database(keep it as a JSON file.). This option will remove this restriction.
@TomG Thanks for the database, I found the issue and created a ticket in GitHub to track.
Thank you very much for your hard work on this. Is there anything I can do to work around this problem (other than making additional dashboards, or simplify my custom button widgets)?
I know nothing about Java programming, but it appears the solution is to increase the size of the VALUE2 array or to make it dynamically sized (if possible). Could you make the size of this array a setting so everyone that doesn't have this problem won't have to pay the price of the additional memory that this fix will require (and it wouldn't be a hard coded size that someone will run into sooner or later)? Perhaps the additional memory isn't that big of an issue.
@tomg ok, I do not see any issue on this console. I do not get the root cause of this issue. can you send your database to my email address? jkandasa at gmail dot com
I just emailed you my database. It isn't too big (1.6mb).
Thanks much for looking into this problem!
@tomg I do not see all default configurations only.
Can you check network tab and console tab when you save your changes on the dashboard?
In the Chrome browser I did the right-click/Inspect, then Console tab, and all I see is this error:
There were no new messages in the Console tab when I saved a new widget, that subsequently disappeared when changing between dashboards.
The Network tab has a lot of stuff in it and I'm not sure what to look for. Here is a screenshot of the top of the data (it scrolls down a long way):
@tomg I am sorry, I asked to see
Status >> Aboutin MyController page.
Here it is:
MyController Version 1.3.0.Final Database schema revision 1.04.03 - 2018 Jul 01 Database type H2 database embedded Database version 1.4.194 (2017-03-10) Git commit:branch e1a31b7751172fe8a910424891c927a533b7c232:master Built on 2018-07-30T11:46:48+0530 Build JDK 1.8.0_172 Build tool Apache Maven 3.5.0 Java virtual machine specification VM vendor Oracle Corporation VM name Java HotSpot(TM) Client VM VM version 1.8.0_172-b11 Java home /opt/jdk1.8.0_172/jre Operating system Operating system Linux Architecture arm Version/Kernel 4.14.52-v7+ Location /home/pi/mycontroller/
I hope you see something I can fix!