Dashticz - Bug report

Moderator: leecollings

Locked
yfands
Posts: 67
Joined: Monday 04 July 2016 10:16
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Netherlands
Contact:

Re: Dashticz - Bug report

Post 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
JimmyH1969
Posts: 153
Joined: Tuesday 28 June 2016 16:38
Target OS: Windows
Domoticz version: Beta
Location: Amersfoort NL
Contact:

Re: Dashticz - Bug report

Post 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
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Bug report

Post 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 ;)
JimmyH1969
Posts: 153
Joined: Tuesday 28 June 2016 16:38
Target OS: Windows
Domoticz version: Beta
Location: Amersfoort NL
Contact:

Re: Dashticz - Bug report

Post by JimmyH1969 »

Thanks Rob. With "latest version" you mean latest beta?
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Bug report

Post by robgeerts »

Sorry, yeah, latest beta! :)
JimmyH1969
Posts: 153
Joined: Tuesday 28 June 2016 16:38
Target OS: Windows
Domoticz version: Beta
Location: Amersfoort NL
Contact:

Re: Dashticz - Bug report

Post by JimmyH1969 »

robgeerts wrote: Monday 13 November 2017 16:07 Sorry, yeah, latest beta! :)
Thanks, works like a charm :D
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: Dashticz - Bug report

Post 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
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
freakshock
Posts: 64
Joined: Friday 14 April 2017 13:39
Target OS: NAS (Synology & others)
Domoticz version:
Location: The Netherlands
Contact:

Re: Dashticz - Bug report

Post 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..
JimmyH1969
Posts: 153
Joined: Tuesday 28 June 2016 16:38
Target OS: Windows
Domoticz version: Beta
Location: Amersfoort NL
Contact:

Re: Dashticz - Bug report

Post by JimmyH1969 »

Same here. With the latest beta i have to refress manually (F5)
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Bug report

Post by robgeerts »

Whoops, sorry, try latest beta (again)...
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Bug report

Post 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
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: Dashticz - Bug report

Post 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
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
JimmyH1969
Posts: 153
Joined: Tuesday 28 June 2016 16:38
Target OS: Windows
Domoticz version: Beta
Location: Amersfoort NL
Contact:

Re: Dashticz - Bug report

Post 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
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: Dashticz - Bug report

Post 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
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: Dashticz - Bug report

Post 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
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
aiolos
Posts: 127
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi / ODroid
Domoticz version: stable
Location: Nieuwegein, NL
Contact:

Re: Dashticz - Bug report

Post 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.
Contributor to Dashticz
More on my Github profile
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Bug report

Post by robgeerts »

Check latest beta! :)
User avatar
htilburgs
Posts: 464
Joined: Tuesday 03 November 2015 11:01
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Dashticz - Bug report

Post 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.
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
User avatar
htilburgs
Posts: 464
Joined: Tuesday 03 November 2015 11:01
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Dashticz - Bug report

Post 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...
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
User avatar
htilburgs
Posts: 464
Joined: Tuesday 03 November 2015 11:01
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Dashticz - Bug report

Post 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.
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
Locked

Who is online

Users browsing this forum: No registered users and 1 guest