Page 1 of 2

Dashticz v3.9.6 Beta

Posted: Tuesday 18 October 2022 22:04
by Lokonli
A new Dashticz release.

In the Domoticz versions since October 2022 approximately, the behavior of the Open/Close commands for blinds was changed.

This version makes Dashtics consistent with the new Domoticz behavior, while maintaining backwards compatibility with older Domoticz versions.

For release notes see:
https://dashticz.readthedocs.io/en/beta ... 18-10-2022

Re: Dashticz v3.9.6 Beta

Posted: Wednesday 19 October 2022 21:41
by ksacca
Thanks a lot for this, really appreciate your dedication towards this project. I will try it asap.
This was actually one of the last things (together with homebridge) that held me back to switch my test environment to production.

Re: Dashticz v3.9.6 Beta

Posted: Thursday 20 October 2022 12:08
by ksacca
Hi Lokonli,

Just tested with an older version of domoticz (OK) and a recent version where the behavior of blinds has changed. At first, I had to press the down button to open blinds and up to close the blinds. I noticed a tested with a beta version before 14560.
The behavior of blinds actually changed in 14542, so the latest version with old blinds is 14535.

I replaced this code in switches.js

Code: Select all

var asOn=domoBuild>14560?true:false;
by

Code: Select all

var asOn=domoBuild>14535?true:false;
And then it worked perfectly! It's not really a big deal and you don't have to change this, but just wanted to let you know.

Also gizmocus mentioned it would be better to use the commands Open and Close for blinds instead of On and Off. See https://github.com/domoticz/domoticz/is ... 1282466295. I suppose it's to be future proof. I know changing this would break backwards compatibility, but it would be good to keep this in mind for the future.

And again, thank you for these changes.

Re: Dashticz v3.9.6 Beta

Posted: Thursday 20 October 2022 15:16
by Lokonli
Thanks for testing! I'll change the version number of the start of new behavior.

Re: Dashticz v3.9.6 Beta

Posted: Sunday 23 October 2022 14:39
by HansieNL
After update to beta 3.9.6 I get the following error message on my iPad: Can't find variable: initVersion and Dashticz will not load.
Beta version 3.9.5 works without a problem.
@Lokonli : Any idea how to solve this problem

Re: Dashticz v3.9.6 Beta

Posted: Wednesday 26 October 2022 17:03
by madpatrick
HansieNL wrote: Sunday 23 October 2022 14:39 After update to beta 3.9.6 I get the following error message on my iPad: Can't find variable: initVersion and Dashticz will not load.
Beta version 3.9.5 works without a problem.
@Lokonli : Any idea how to solve this problem
same problem with an iPad.

Re: Dashticz v3.9.6 Beta

Posted: Thursday 03 November 2022 14:41
by geertvercamer
some devices don't render properly anymore.
Schermafbeelding 2022-11-03 142735.png
Schermafbeelding 2022-11-03 142735.png (151.76 KiB) Viewed 1858 times
should look like
Schermafbeelding 2022-11-03 142919.png
Schermafbeelding 2022-11-03 142919.png (82.15 KiB) Viewed 1858 times
These are 'selector' switches in Domoticz for MELCloud (Mitshubishi AirCo), but the same problem with selector on Dummy hardware

Re: Dashticz v3.9.6 Beta

Posted: Thursday 03 November 2022 19:03
by HansieNL
Can you try to load the page in private mode and see if you still have the problem?
If you don't have the problem in private mode you have to clear the cache of your browser.

Re: Dashticz v3.9.6 Beta

Posted: Thursday 03 November 2022 19:24
by madpatrick
I'm havinf the same problem after the last update.
In private mode it is the same

Re: Dashticz v3.9.6 Beta

Posted: Friday 04 November 2022 8:15
by Lokonli
That's strange.
From a certain Domoticz version onwards the switch levels became encoded. The version detection doesn't seem to work correctly anymore.

What is the exact Domoticz version as reported in Dashticz?
(click on the Cog icon in the upper right of the Dashticz window, then on info tab)

Do you also have this problem with a Windows browser?
If yes, can you open DevTools (press F12), refresh Dashticz. Are there any errors reported on the Console tab of DevTools?

Re: Dashticz v3.9.6 Beta

Posted: Friday 04 November 2022 11:58
by geertvercamer
Yes, I did clean the cash.

Dashticz 3.9.6.1 beta reports Domoticz version 2022.1

Tried Edge, Chrome, Brave browsers on W10, all the same

Re: Dashticz v3.9.6 Beta

Posted: Saturday 05 November 2022 8:40
by madpatrick
I've have it on every device/
Windows/Iphone/Android
Running Domoticz 2022.1 stable and this also reported by Dashticz

When i press F12 i see these error.
No clue if is related

Code: Select all

Uncaught TypeError: Cannot read properties of null (reading '1')
    at Object.success (version.js:104:72)
    at fire (bundle.js?t=49:309:27086)
    at Object.fireWith [as resolveWith] (bundle.js?t=49:309:27891)
    at done (bundle.js?t=49:309:84932)
    at XMLHttpRequest.<anonymous> (bundle.js?t=49:309:87586)
domoticz-api.js:122 Setting up websocket
domoticz-api.js:187 [open] Connection established
css2:1          Failed to load resource: the server responded with a status of 400 ()
DevTools failed to load source map: Could not load content for chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/browser-polyfill.js.map: System error: net::ERR_FILE_NOT_FOUND
DevTools failed to load source map: Could not load content for http://192.168.1.1:9000/html/js/vue-virtual-scroller.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
css2:1          Failed to load resource: the server responded with a status of 400 ()
DevTools failed to load source map: Could not load content for http://dashticz.pdebrabander.nl/css/bootstrap.min.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

Re: Dashticz v3.9.6 Beta

Posted: Saturday 05 November 2022 9:33
by geertvercamer
more or less the same as @madpatrick.

Code: Select all

The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.
(anonymous) @ bundle.js?t=50:349                                                                     bundle.js?t=50:349

        
Uncaught TypeError: Cannot read properties of null (reading '1')                                         version.js:104 
    at Object.success (version.js:104:72)
    at fire (bundle.js?t=50:309:27086)
    at Object.fireWith [as resolveWith] (bundle.js?t=50:309:27891)
    at done (bundle.js?t=50:309:84932)
    at XMLHttpRequest.<anonymous> (bundle.js?t=50:309:87586)
Setting up websocket                                                                                domoticz-api.js:122
[open] Connection established                                                                       domoticz-api.js:187
websocket closed before first update.                                                               domoticz-api.js:249
DevTools failed to load source map: Could not load content for http://192.168.1.13/dashticz-beta/css/bootstrap.min.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

Re: Dashticz v3.9.6 Beta

Posted: Saturday 05 November 2022 13:54
by Lokonli
Thanks!

I think I've found, and fixed, this bug.

Can you test latest beta?

Update with:

Code: Select all

git checkout beta
git pull

Re: Dashticz v3.9.6 Beta

Posted: Saturday 05 November 2022 14:43
by madpatrick
Yes !
It is working again.
Thanks for the quick fix

Re: Dashticz v3.9.6 Beta

Posted: Sunday 06 November 2022 14:35
by Sjonnie2017
Weirdest thing! I am having a problem showing my dashboard in FireFox on Linux since I updated to 2022.2. Using the latest beta for Dashticz. Cleared browser cache and data for the site but no luck. Works OK in Private session and on other machines with (for instance) Chromium. Rebooted the machine but nothing changed.

This is what I see in a regular Firefox browser session:

Image

This is how it is supposed to look (in this case a Private Session in Firefox):

Image

Does this have anything to do with the graphs? I have multiple dashboards (phone, tablet, desktop) but I only use graphs on the desktop dashboard. The other dashboards work fine.

Re: Dashticz v3.9.6 Beta

Posted: Sunday 06 November 2022 20:57
by geertvercamer
madpatrick wrote: Saturday 05 November 2022 14:43 Yes !
It is working again.
Thanks for the quick fix
Confirmed.
Thanks!

Re: Dashticz v3.9.6 Beta

Posted: Monday 26 December 2022 15:58
by Sjonnie2017
Silly question I am sure but I can't really find the answer to how I switch from main branch to beta (or back). I need to switch to beta to see if I can get my weather forecast back based on KNMI this time.

Hope someone will be able to shed some light ;-)

Re: Dashticz v3.9.6 Beta

Posted: Monday 26 December 2022 16:00
by madpatrick
Git checkout beta

Re: Dashticz v3.9.6 Beta

Posted: Monday 26 December 2022 16:02
by Sjonnie2017
I tried that but I got his:

Code: Select all

Sjonnie2017@docker:~/dev/dashticz$ git checkout beta
error: Your local changes to the following files would be overwritten by checkout:
	.vscode/settings.json
	css/creative.css
	dist/assets/fonts/fa-brands-400.ttf
	dist/assets/fonts/fa-brands-400.woff2
	dist/assets/fonts/fa-regular-400.ttf
	dist/assets/fonts/fa-regular-400.woff2
	dist/assets/fonts/fa-solid-900.ttf
	dist/assets/fonts/fa-solid-900.woff2
	dist/bundle.js
	docs/blocks/domoticzblocks.rst
	docs/blocks/specials/dial.rst
	docs/blocks/specials/garbage.rst
	docs/blocks/specials/publictransport.rst
	docs/customjs/customjs.rst
	docs/gettingstarted/manualinstall.rst
	docs/releasenotes/releasenotes.rst
	index.html
	index2.html
	js/colorpicker.js
	js/components/calendar.js
	js/components/dial.js
	js/components/frame.js
	js/components/garbage.js
	js/components/graph.js
	js/components/news.js
	js/components/publictransport.js
	js/components/simpleblock.js
	js/dashticz.js
	js/domoticz-api.js
	js/dt_function.js
	js/main.js
	js/settings.js
	js/switches.js
	js/version.js
	lang/bs_BA.json
	lang/ca_ES.json
	lang/cs_CZ.json
	lang/da_DK.json
	lang/de_DE.json
	lang/en_US.json
	lang/es_ES.json
	lang/fi_FI.json
	lang/fr_FR.json
	lang/hu_HU.json
	lang/it_IT.json
	lang/ja_JP.json
	lang/lt_LT.json
	lang/nb_NO.json
	lang/nl_NL.json
	lang/nn_NO.json
	lang/pl_PL.json
	lang/pt_PT.json
	lang/ro_RO.json
	lang/ru_RU.json
	lang/sk_SK.json
	lang/sr_RS.json
	lang/sv_SE.json
	lang/tr_TR.json
	lang/uk_UA.json
	lang/zh_CN.json
	package-lock.json
	package.json
	src/index.js
	tpl/calendar_0.tpl
	tpl/calendar_1.tpl
	tpl/pubtrans_treinen.tpl
	vendor/dashticz/garbage/index.php
	vendor/dashticz/ical/composer.json
	vendor/dashticz/ical/composer.lock
	vendor/dashticz/ical/index.php
	vendor/dashticz/ical/vendor/composer/autoload_namespaces.php
	vendor/dashticz/ical/vendor/composer/autoload_static.php
	vendor/dashticz/ical/vendor/composer/installed.json
	version.txt
Please commit your changes or stash them before you switch branches.
Aborting
I didn't make all that much changes ;)