Last update wiped all Dashboard settings ... had to redo all Favorites / Stars

FYI… after installing AltUI v0.76.696 my Dashboard device widgets (except Weather) were gone. Looks like it wiped all the settings… including my Weather C/F setting

upgrade would not do that but you never know, will see if people report the same.
All the settings ( favorites, c/f ) are stored in HTML local storage. this is a special persistent memory handled by your browser. several things could explain that loss

  • html local storage was cleared by some app
  • you uninstall / upgraded your browser
  • you are using a different browser
  • you are using a different client device

if you want to get your settings / archive them you can open MISC/DEBUG/Code Javascript and type

MyLocalStorage.get("ALTUI_Settings")

you can also edit/restore them with this code ( replacing var obj = {} by the object received from the previous line. )

var obj = { "Favorites": { "device": { "0-74": true, "0-95": false, "0-178": true, "0-63": true, "0-185": true, "0-186": true, "0-167": true }, "scene": {"0-57": true} }, "ShowVideoThumbnail": 1, "FixedLeftButtonBar": 1, "Menu2ColumnLimit": 15, "LastOne_javascriptcode": "MyLocalStorage.get(\"ALTUI_Settings\")", "DeviceRoomFilter": "-1", "OsCommands": [ { "label": "Disk Usage", "command": "du" }, { "label": "Free Space", "command": "df -h" }, { "label": "Plugin Files", "command": "ls -l /etc/cmh-ludl" }, { "label": "Log Sizes", "command": "ls -l /var/log/cmh" }, { "label": "Search Logs", "command": "cat /var/log/cmh/LuaUPnP.log | grep '{0}'" }, { "label": "Tail Logs", "command": "tail -n 50 /var/log/cmh/LuaUPnP.log" }, { "label": "Find Json", "command": "find / -name *json*.lua" } ], "CategoryFilter": "0", "LastOne_devaltuiid": "0-64", "TriggersVisibleCols": [ "lastrun", "scene", "trigger", "device", "condition" ], "ShowWeather": true, "DeviceFilterName": "", "LastOne_param0": "Startup", "SceneRoomFilter": "-1", "LastOne_varnamepattern": "LastUpdate", "TempUnitOverride": "c", "DevicesVisibleCols": [ "id", "manufacturer", "name" ] }; MyLocalStorage.set("ALTUI_Settings",obj);

Looks like when you clear the browser cache it kills all your settings… is there a way you could add a feature to automatically store the settings in the Vera… maybe in the www folder if it needs to be easily accessible? PLEG does this for log files.

Many people, including myself, have the browser automatically clear cache upon exit for security and performance purposes.

[quote=“Aaron, post:3, topic:188844”]Looks like when you clear the browser cache it kills all your settings… is there a way you could add a feature to automatically store the settings in the Vera… maybe in the www folder if it needs to be easily accessible? PLEG does this for log files.

Many people, including myself, have the browser automatically clear cache upon exit for security and performance purposes.[/quote]

Clearing a browser cache does not clear localStorage. cf http://sharonminsuk.com/blog/2011/03/21/clearing-cache-has-no-effect-on-html5-localstorage-or-sessionstorage/
Potentially clearing all cookies , on some browser, does clear the localStorage, so your milage may vary and do you really to clear all cookies ?

The data stored in localStorage is far bigger than what I can get to a URL as a parameter and since VERA handlers and variable set only supports a http “get” method there is no trivial way to pass large data to it. I will give it some thoughts but not clear. Plus then it introduces a major disadvantage that the settings are common to all client device and I do use different favorites and settings on my different devices using ALTUI lurking in the house. ( the dinner room ipad as some favorate devices, the bedroom old ipad has different ones etc … )

I have one idea that I want to explore, maybe having an option to fall back to using VERA favorite management, i ll experiment that but that will be applicable only for favorites

What about using a device in vera to store settings, separate for each device… And a ‘default’ for clients without a separate device. Might be able to use Multi String plugin to keep multiple clients in a single device?

Sent from my HTC6525LVW using Tapatalk

[quote=“Aaron, post:5, topic:188844”]What about using a device in vera to store settings, separate for each device… And a ‘default’ for clients without a separate device. Might be able to use Multi String plugin to keep multiple clients in a single device?

Sent from my HTC6525LVW using Tapatalk[/quote]
AltUI has a device on Vera. I can store some data, but that data sums up into user_data and quickly gets synonym of trouble. So The problem is the same. Settings are too big and on top too big to be sent via http GET to a device handler anyhow so the data would not even get there. Maybe I could with a subset of the data. To be seen…

To alleviate your problem I will have a mode which makes favorite work the way the work on Vera so people can choose Vera favorites management or altUI favorite management. But ther will be lots of plus and minus to understand that I will explain.
For me the choice is clear I prefer client side favorites and very quick click on / off on it , at the price of not clearing my cookies after each sessions, as opposed as server-side favorites and ui5 style favorite management which reload luup every time you put/remove a device on the favorite dashboard, or worse ui7 style which does not even allow scenes as favorites.
But It ll be an option so people will be able to chose their preference.