Page 1 of 1

Buttons in switches no longer visible

Posted: Monday 23 March 2020 22:34
by EdwinK
I noticed earlier today that since the last Domoticz beta (Version: 2020.1 (build 11835)) switches no longer have buttons. It looks they have gone
Should be buttons here.
Should be buttons here.
Screen Shot 2020-03-23 at 22.35.38.png (60.01 KiB) Viewed 6662 times

Re: Buttons in switches no longer visible

Posted: Tuesday 24 March 2020 7:23
by lzwfkv
Hi, I had the same issue.
I guess you have updated Domoticz to the latest beta. It looks like Domoticz have changed the way they number versions, therefore version.js oin Dashticz cannot compare anylonger as a number, to determine Base64 encoding of selector switches.
Temporary solution i applied for latest Domoticz beta, while waiting for Lokolni & co. to take it over (please):
  • Navigate to Dashticz installation path
    cd js folder
    make backup of version.js file
    edit version.js:
    change the row
    var levelNamesEncoded = false;
    to
    var levelNamesEncoded = true;
    Towards the bottom, in the last ajax call branch, comment the row
    // levelNamesEncoded = (Number(data.version) >= Number(levelNamesEncodeVersion));
    Save the file version.js
    Refresh Dashticz page in the browser: that's it.
Cheers.

Re: Buttons in switches no longer visible

Posted: Tuesday 24 March 2020 8:51
by EdwinK
Thanks :)

When I comment the row with // dashticz isn't loading at all anymore, but when I do /* .... */ it does.

Anyway, I've a working system again ;)

Re: Buttons in switches no longer visible

Posted: Tuesday 24 March 2020 15:53
by Lokonli
Fixed in master, beta and blocks branch. I still have to update the version numbers.

Re: Buttons in switches no longer visible

Posted: Wednesday 25 March 2020 12:31
by lzwfkv
Many thanks Lokonli, and wonderfully fast.
Updated and It works again, well done!

Re: Buttons in switches no longer visible

Posted: Wednesday 25 March 2020 13:05
by EdwinK
Indeed, Thanks Lokonil and others that help keep dasthicz running