Page 2 of 2

Re: Dashticz 3.9 - master

Posted: Sunday 13 February 2022 22:16
by Lokonli
TroisSix wrote: Sunday 13 February 2022 19:58 Hi Lokonli,
Thank you so much for all your work on Dashticz, it's vital for ma children and I (not waf enough for my wife, it will never be lol) 8-) 8-)

For information, I was on beta for several months and always up to date, and I just did an update of the bera today.
Since then, Dahsticz cannot be displayed on my iPad, did you changed anything vital bteween last beta -1 and the actual beta from today?

So I just changed to the master version, and all is working fine, I don't touch anything from now :lol:

Perhaps something important changed between last beta version -1 and last beta version?
I can do some tests if you want till you don't change the master :P
Please try 3.9.1-beta. I expect it will be solved in that version.

Re: Dashticz 3.9 - master

Posted: Monday 14 February 2022 12:23
by TroisSix
Hi,
I just did a git checkout beta and a git pull, but it only sees the v3.9.0-beta, not the 3.9.1

Re: Dashticz 3.9 - master

Posted: Monday 14 February 2022 21:45
by Lokonli
After git checkout beta and git pull you should have the 3.9.1 version.

Check Dashticz -> Settings icon -> Info tab: Dashticz version is shown there.

Re: Dashticz 3.9 - master

Posted: Monday 14 February 2022 22:02
by Lokonli
HenriM wrote: Sunday 13 February 2022 8:39 In total I have 10 dial-types. Is it possible that something goes wrong in Dashticz regarding 'look-up' of the device?
That may be the problem indeed.
I see that the Nefit device is only available on Plan 2? (one of your floorplans)
Is this the floor plan requested by Dashticz from Domoticz?
(do you have a config['room_plan'] setting? Then try without it, or set it to 2)

Re: Dashticz 3.9 - master

Posted: Tuesday 15 February 2022 8:13
by HenriM
I have in my configuration:

Code: Select all

config['room_plan'] = '0';
I tried without it (no change and Nefit still showing wrong) and with value 2 (lot of missing devices, but Nefit still showing wrong).

The temperature (8) and P1 Smartmeter Dial is shown on the same first page of my Dashticz configuration (thus total of 10 Dials). When I do not use dial the correct value is shown.

As a test I added some more blocks definition to my current block configuration:

Code: Select all

// Nefit Setpoint
blocks[nefit_easy] = {}
blocks[nefit_easy]['width'] = 3;
blocks[nefit_easy]['show_lastupdate'] = false;
blocks[nefit_easy]['type'] = 'dial';
blocks[nefit_easy]['showunit'] = true;
blocks[nefit_easy]['lastupdate'] = true;
blocks[nefit_easy]['flash'] = false;

// Extra config
blocks[nefit_easy] = {
  type: 'dial',
  idx: 77,
  values: [
    {
      unit: 'C',
      value: 'Data',
      addClass: 'primary',
      scale: 1.0,
    },
  ],
  showvalue: false,
  animation: false,
  shownumbers: false,
  width: 3,
  showvalue: true,
  last_update: false
};    
This is shows as:
https://eye-vision.homeip.net/wp-conten ... Config.jpg
(the value 19 is correct and is what I expect normally)


Anything more I can provide/check for you to help to narrow down the issue. As indicated, exactly the same config file works correctly with Dashticz 3.8.

Re: Dashticz 3.9 - master

Posted: Wednesday 16 February 2022 13:42
by Lokonli
HenriM wrote: Tuesday 15 February 2022 8:13 I have in my configuration:

Code: Select all

config['room_plan'] = '0';
I tried without it (no change and Nefit still showing wrong) and with value 2 (lot of missing devices, but Nefit still showing wrong).

The temperature (8) and P1 Smartmeter Dial is shown on the same first page of my Dashticz configuration (thus total of 10 Dials). When I do not use dial the correct value is shown.

As a test I added some more blocks definition to my current block configuration:

Code: Select all

// Nefit Setpoint
blocks[nefit_easy] = {}
blocks[nefit_easy]['width'] = 3;
blocks[nefit_easy]['show_lastupdate'] = false;
blocks[nefit_easy]['type'] = 'dial';
blocks[nefit_easy]['showunit'] = true;
blocks[nefit_easy]['lastupdate'] = true;
blocks[nefit_easy]['flash'] = false;

// Extra config
blocks[nefit_easy] = {
  type: 'dial',
  idx: 77,
  values: [
    {
      unit: 'C',
      value: 'Data',
      addClass: 'primary',
      scale: 1.0,
    },
  ],
  showvalue: false,
  animation: false,
  shownumbers: false,
  width: 3,
  showvalue: true,
  last_update: false
};    
This is shows as:
https://eye-vision.homeip.net/wp-conten ... Config.jpg
(the value 19 is correct and is what I expect normally)


Anything more I can provide/check for you to help to narrow down the issue. As indicated, exactly the same config file works correctly with Dashticz 3.8.
When you open DevTools with F12 and refresh Dashticz, do you then see any error on the DevTools console tab?

Re: Dashticz 3.9 - master

Posted: Wednesday 16 February 2022 15:27
by HenriM
Same applicable error message is shown in that case:

Code: Select all

XML Parsing Error: not well-formed
Location: http://user:[email protected]:84/tpl/dial.tpl?22
Line Number 1, Column 1:
When opening that URL directly in Firefox I get:

Code: Select all

{{#*inline "dialitems"}}
    <div class="extra  {{animation}} {{#unless showvalue}}novalue{{/unless}}">
        {{#each info}}
        <div class="item {{this.addClass}} {{this.deviceStatus}}">
            &nbsp;
            {{#if this.label}}
                <div class="itemlabel">{{this.label}}</div>
            {{/if}}
            <div class="dataunit">
                {{#unless this.image}}
                <i class="{{this.icon}}"></i>
                {{else}}
                <img src="img/{{this.image}}">
                {{/unless}}                    
                <span class="data">{{this.data}}</span>
                <span class="unit">{{this.unit}}</span>
            </div>
            &nbsp;
        </div>
        {{/each}}             
    </div>
    {{#if lastupdate}} 
        <span class="info {{#unless hasSetpoint}}nosetpoint{{/unless}} {{animation}}">{{lastupdate}}</span>
    {{/if}}
{{/inline}}

{{#*inline "dialdevice"}}
    <span class="device {{animation}}" style="color:{{color}};">{{name}}</span>
{{/inline}}

<div class="dial {{size}} {{#if fixed}}fixed{{/if}} {{active}} {{addclass}} {{deviceStatus}}" style="font-size: {{fontsize}}px;--dial-color: {{rgba}};">
    <div class="slice {{#if split}}{{slice}}{{/if}} primary {{class}}">
        <div class="bar"></div>
        <div class="fill"></div>
    </div>
    <div class="dial-container">         
        <div id="face{{id}}" class="dial-face">
            <div class="dial-numbers">
                {{#if numbers}}       
                {{#each numbers as |number|}}
                <span class="number seg_{{../range}}_{{../numbers.length}}_{{@index}}">{{number}}</span>
                {{/each}}
                {{/if}}
            </div>
        </div>        
        {{#unless fixed}}
        <div class="draggable">
            <div class="dial-needle" style="--dial-color: {{color}};--needle-length: {{needleL}}px;--needle-width: {{needleW}}px;"></div>
        </div>
        {{/unless}}
        <div id="{{id}}" class="dial-center {{on}}" style="--dial-rgba: {{rgba}};{{#if onoff}}background: transparent; box-shadow: none;{{/if}}">
            {{#if controller}}
                <div class="dial-menu {{#if name}}hastitle{{/if}}">
                    <ul class="status" style="--dial-color: {{color}};">
                    {{#each options as |opt|}}
                        <li class="text" data-val="{{opt.val}}">{{opt.text}}</li>
                        {{/each}}
                    </ul>  
                </div>
                {{#if name}}
                    <div class="dial-menu-title-background"></div>
                    <div class="dial-menu-title" style="--dial-color: {{color}};">
                        {{name}}
                    </div>
                {{/if}}
            {{else if onoff}}
            <div class="dial-switch">   
                <input type="checkbox" {{checked}}>
                <div class="switch-face">
                        {{> dialdevice}}
                        {{#if showvalue}}
                            <i class="{{iconSwitch}} icon-off"></i>
                        {{/if}}
                        {{> dialitems}}
                </div>
            </div>

            {{else}}
            <div class="dial-display">
                {{> dialdevice}}
                {{#if showvalue}}
                    <div class="value-unit">
                        <span class="value" style="--dial-color: {{color}};">{{valueformat}}</span>
                        {{#if showunit}}
                            <span class="unit" style="--dial-color: {{color}};">{{unitvalue}}</span>
                        {{/if}}
                    </div>
                {{/if}}
                {{> dialitems}}
            </div>
            {{/if}}
        </div>
    </div>
</div>

Re: Dashticz 3.9 - master

Posted: Wednesday 16 February 2022 15:51
by TroisSix
@Lokonli
You just published the beta 3.9.1 so I just made the git pull and I tested the access to dashticz on my iPad, but I have a blank screen with "Dashticz is loading..." but no dashboard. So i reverted to the 3.9.0 master.

What are the important differences between the master 3.9.0 and the beta 3.9.0 which could block the loading of dashticz?

Re: Dashticz 3.9 - master

Posted: Wednesday 16 February 2022 16:08
by Lokonli
Mainly an update of development dependencies.

Can you try in incognito mode? Ipad is pretty persistent in using cached versions...

Verstuurd vanaf mijn AC2003 met Tapatalk


Re: Dashticz 3.9 - master

Posted: Wednesday 16 February 2022 19:20
by TroisSix
Just did it: deleted all cookies, also tried a private navigation, no way ;-)

Re: Dashticz 3.9 - master

Posted: Wednesday 16 February 2022 20:43
by HansieNL
@TroisSix : Can you try if a basic config does load?
First make a backup of your own config files.
For a basic config you can copy CONFIG_DEFAULT.js to CONFIG.js and change IP address and port number.

Re: Dashticz 3.9 - master

Posted: Thursday 17 February 2022 19:12
by TroisSix
Hi HansieNL,
I deleted again all the cache + cookies on my ipad, and I just tried a basic config.js and custom.js, with only the ip of my domoticz + user/pass, and same bad behaviour: dashboard still not loading on my ipad.
PS: my config is working on my computer with the beta+master versions.

Re: Dashticz 3.9 - master

Posted: Saturday 19 February 2022 10:22
by heggink
Not being a dashticz expert nor css expert, I have something I need a little help with: I have a really nice dash with a bunch of dial-based buttons of width 2. The downside of that width is that the font ends up being so small that I cannot read it at my age anymore :-(.

Any idea how I can increase the font for the dial label?

Thanks!

h

Re: Dashticz 3.9 - master

Posted: Saturday 19 February 2022 22:58
by marcovz
TroisSix wrote: Thursday 17 February 2022 19:12 Hi HansieNL,
I deleted again all the cache + cookies on my ipad, and I just tried a basic config.js and custom.js, with only the ip of my domoticz + user/pass, and same bad behaviour: dashboard still not loading on my ipad.
PS: my config is working on my computer with the beta+master versions.
I had similar errors on an ipad and iphone, dashticz was not loading. But on a windows pc it was working fine. Seemed to be a time out error related to running dasticz on a pi on buster raspbian 10. Following solution worked for me.

https://dashticz.readthedocs.io/en/beta ... out-errors