Page 13 of 28

Re: Dashticz - Bug report

Posted: Monday 13 November 2017 1:14
by yfands
Hello,

I'm a bit puzzled about the setTimeout function in the various *.js files for instance weather.js file.

setTimeout(function(){
loadWeather(settings['wu_city'],settings['wu_country']);
}, (60000*30));

I can imagine that the purpose is to refresh the data after 30 minutes.
But the setTimeout function only triggers once in this case after 30 minutes, shouldn't the function be setInterval() instead ?

Regards
Frank

Re: Dashticz - Bug report

Posted: Monday 13 November 2017 13:20
by JimmyH1969
Hi Rob.

First of all i like to mention that i think Dasthicz is realy great. We use it all the time.

I do have an issue i think.

If i create a switch type: Push on Button and if i click that several times from Dashticz, the log shows this:

Code: Select all

2017-11-13 13:10:12.233 User: Admin initiated a switch command (335/Test Button/Off)
2017-11-13 13:10:12.280 (Dummy1) Lighting 1 (Test Button)
2017-11-13 13:10:12.467 User: Admin initiated a switch command (335/Test Button/Off)
2017-11-13 13:10:12.529 (Dummy1) Lighting 1 (Test Button)
2017-11-13 13:10:12.982 User: Admin initiated a switch command (335/Test Button/Off)
2017-11-13 13:10:13.028 (Dummy1) Lighting 1 (Test Button)
If i click that same switch several times from within Domoticz, the log shows this:

Code: Select all

2017-11-13 13:11:00.066 User: Admin initiated a switch command (335/Test Button/On)
2017-11-13 13:11:00.113 (Dummy1) Lighting 1 (Test Button)
2017-11-13 13:11:02.047 User: Admin initiated a switch command (335/Test Button/On)
2017-11-13 13:11:02.079 (Dummy1) Lighting 1 (Test Button)
2017-11-13 13:11:03.654 User: Admin initiated a switch command (335/Test Button/On)
2017-11-13 13:11:03.717 (Dummy1) Lighting 1 (Test Button)
It looks like the switch is threated differently in Dashticz... is this a "smal" bug? :D

Re: Dashticz - Bug report

Posted: Monday 13 November 2017 14:04
by robgeerts
JimmyH1969 wrote: Monday 13 November 2017 13:20 Hi Rob.

First of all i like to mention that i think Dasthicz is realy great. We use it all the time.

I do have an issue i think.

If i create a switch type: Push on Button and if i click that several times from Dashticz, the log shows this:

Code: Select all

2017-11-13 13:10:12.233 User: Admin initiated a switch command (335/Test Button/Off)
2017-11-13 13:10:12.280 (Dummy1) Lighting 1 (Test Button)
2017-11-13 13:10:12.467 User: Admin initiated a switch command (335/Test Button/Off)
2017-11-13 13:10:12.529 (Dummy1) Lighting 1 (Test Button)
2017-11-13 13:10:12.982 User: Admin initiated a switch command (335/Test Button/Off)
2017-11-13 13:10:13.028 (Dummy1) Lighting 1 (Test Button)
If i click that same switch several times from within Domoticz, the log shows this:

Code: Select all

2017-11-13 13:11:00.066 User: Admin initiated a switch command (335/Test Button/On)
2017-11-13 13:11:00.113 (Dummy1) Lighting 1 (Test Button)
2017-11-13 13:11:02.047 User: Admin initiated a switch command (335/Test Button/On)
2017-11-13 13:11:02.079 (Dummy1) Lighting 1 (Test Button)
2017-11-13 13:11:03.654 User: Admin initiated a switch command (335/Test Button/On)
2017-11-13 13:11:03.717 (Dummy1) Lighting 1 (Test Button)
It looks like the switch is threated differently in Dashticz... is this a "smal" bug? :D
yfands wrote: Monday 13 November 2017 1:14 Hello,

I'm a bit puzzled about the setTimeout function in the various *.js files for instance weather.js file.

setTimeout(function(){
loadWeather(settings['wu_city'],settings['wu_country']);
}, (60000*30));

I can imagine that the purpose is to refresh the data after 30 minutes.
But the setTimeout function only triggers once in this case after 30 minutes, shouldn't the function be setInterval() instead ?

Regards
Frank
Should both be fixed in latest version!
@Frank, in this case it didnt matter because the loadWeather-timeout was inside the loadWeather-function ;) So at the timeout, it set a new timeout ;) But I've changed it so it now uses interval ;)

Re: Dashticz - Bug report

Posted: Monday 13 November 2017 14:34
by JimmyH1969
Thanks Rob. With "latest version" you mean latest beta?

Re: Dashticz - Bug report

Posted: Monday 13 November 2017 16:07
by robgeerts
Sorry, yeah, latest beta! :)

Re: Dashticz - Bug report

Posted: Monday 13 November 2017 16:41
by JimmyH1969
robgeerts wrote: Monday 13 November 2017 16:07 Sorry, yeah, latest beta! :)
Thanks, works like a charm :D

Re: Dashticz - Bug report

Posted: Monday 13 November 2017 17:10
by woody4165
Hi all

I saw just for one day the RGB on Yeelight on Dashticz, now I don't see anymore.

Is it correct?

Thanks

Re: Dashticz - Bug report

Posted: Monday 13 November 2017 18:55
by freakshock
It seems my dashticz is not auto updating anymore, I have to reload the page to see devices status change.

My settings have not changed:

Code: Select all

config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
I tested this with 2 devices/browsers, same result.

Tried reverting to previous beta (October 18), but with by curent config.js, then it works again.
Must be a bug then in one of the more recent beta's I figure..

Re: Dashticz - Bug report

Posted: Monday 13 November 2017 22:08
by JimmyH1969
Same here. With the latest beta i have to refress manually (F5)

Re: Dashticz - Bug report

Posted: Monday 13 November 2017 22:40
by robgeerts
Whoops, sorry, try latest beta (again)...

Re: Dashticz - Bug report

Posted: Monday 13 November 2017 22:40
by robgeerts
woody4165 wrote: Monday 13 November 2017 17:10 Hi all

I saw just for one day the RGB on Yeelight on Dashticz, now I don't see anymore.

Is it correct?

Thanks
Could you send me the json-device output of that device from Domoticz?
http://DOMOTICZ_IP/json.htm?type=devices

Re: Dashticz - Bug report

Posted: Monday 13 November 2017 23:02
by woody4165
robgeerts wrote: Monday 13 November 2017 22:40
Could you send me the json-device output of that device from Domoticz?
http://DOMOTICZ_IP/json.htm?type=devices
Yes, here it is:

Code: Select all

 {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "Off",
         "Description" : "",
         "Favorite" : 0,
         "HardwareID" : 27,
         "HardwareName" : "Yeelights",
         "HardwareType" : "YeeLight LED",
         "HardwareTypeVal" : 91,
         "HaveDimmer" : true,
         "HaveGroupCmd" : false,
         "HaveTimeout" : false,
         "ID" : "C0A80141",
         "Image" : "Light",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-11-13 19:54:21",
         "Level" : 44,
         "LevelInt" : 44,
         "MaxDimLevel" : 100,
         "Name" : "YeeLight 1",
         "Notifications" : "false",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Off",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "RGBW",
         "SwitchType" : "Dimmer",
         "SwitchTypeVal" : 7,
         "Timers" : "false",
         "Type" : "Lighting Limitless/Applamp",
         "TypeImg" : "dimmer",
         "Unit" : 0,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "xxx"
      },
Thanks

Re: Dashticz - Bug report

Posted: Monday 13 November 2017 23:07
by JimmyH1969
robgeerts wrote: Monday 13 November 2017 22:40 Whoops, sorry, try latest beta (again)...
Yes, it works again, Thanks for the quick fix :D

Re: Dashticz - Bug report

Posted: Tuesday 14 November 2017 0:23
by pvm
Just downloaded latest beta
The refresh does not work for me. Dimmers and Logitech Media Server showing current track do not get updates

Re: Dashticz - Bug report

Posted: Wednesday 15 November 2017 17:47
by woody4165
Hi

just checking that graphs for temp devices that have both Temp&Hum it shows only Hum

It happens when I click on a block defined as idx_1 with Temp value, and I get the popup with Hum graph, and if I have defined a graph as "graph_idx" and I see that I cannot add _1


Image

Image

Any advice?

Thanks

Re: Dashticz - Bug report

Posted: Wednesday 15 November 2017 18:13
by aiolos
woody4165 wrote: Wednesday 15 November 2017 17:47 Hi

just checking that graphs for temp devices that have both Temp&Hum it shows only Hum

It happens when I click on a block defined as idx_1 with Temp value, and I get the popup with Hum graph, and if I have defined a graph as "graph_idx" and I see that I cannot add _1


Image

Image

Any advice?

Thanks
Graphs are a bit weird sometimes. I made some fixes for it and will create a pull request for Rob soon.

Re: Dashticz - Bug report

Posted: Wednesday 15 November 2017 20:47
by robgeerts
Check latest beta! :)

Re: Dashticz - Bug report

Posted: Thursday 16 November 2017 20:59
by htilburgs
@robgeerts, in the previous beta you introduced the full screen option.
Works great, but after the screen goes to standby and touching it it comes back to 'normal' mode, the full screen is not active anymore.
Have to select the upper right arrows again to come back to full screen.

Re: Dashticz - Bug report

Posted: Thursday 16 November 2017 21:32
by htilburgs
@robgeerts, after pulling the latest beta today, Dashticz doesn't work anymore in IE!

getBlock is niet gedefinieerd
main.js (276,8)

Code: Select all

line 276: 	getBlock(columns['bar'],'bar','div.screen'+s+' .row .colbar',false);
I'm using a Microsoft Surface RT and only have IE11 available.
On my Microsoft Surface Pro 3 I have the same issue in IE11. In Google Chrome it still works...

Re: Dashticz - Bug report

Posted: Friday 17 November 2017 9:23
by htilburgs
@robgeerts, in the latest beta the language 'nl_NL' is not committed anymore. Bar is in english.
Going to setup, the language is empty and I'm not able to set it either through Setup of in config.JS.