Dashticz - General Discussions

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Locked
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: New Dashboard Design

Post by robgeerts »

pvm wrote:EdKo66 / robgeerts
To control the player you need the following urls
I've added this in the latest version, could you check this?
Backup the old version of the dashboard!
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: New Dashboard Design

Post by EdwinK »

pvm wrote:EdKo66 / robgeerts

Sorry, do not have time today to integrate this in the dashboard... I would also have to look into adding buttons and behaviour... EdKo66, can you help?
I'll see what I do, but since I'm not a programmer/coder it would not be much.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: New Dashboard Design

Post by robgeerts »

pvm wrote:The slider does not work for my fibaro dimmer as its expecting a 0-100% value

Like 71%:

Code: Select all

/json.htm?type=command&param=switchlight&idx=26&switchcmd=Set%20Level&level=71
information on this dimmer

Code: Select all

{
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "Set Level: 70 %",
         "Description" : "",
         "Favorite" : 1,
         "HardwareID" : 6,
         "HardwareName" : "Aeonlabs Z-wave stick",
         "HardwareType" : "OpenZWave USB",
         "HardwareTypeVal" : 21,
         "HaveDimmer" : true,
         "HaveGroupCmd" : true,
         "HaveTimeout" : false,
         "ID" : "00001301",
         "Image" : "Light",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-03-30 00:34:26",
         "Level" : 70,
         "LevelInt" : 70,
         "MaxDimLevel" : 100,
         "Name" : "Dimmer2tst",
         "Notifications" : "false",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Set Level: 70 %",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "Switch",
         "SwitchType" : "Dimmer",
         "SwitchTypeVal" : 7,
         "Timers" : "false",
         "Type" : "Light/Switch",
         "TypeImg" : "dimmer",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "26"
      },
Do you see an option to give dim levels between 0 and 100% for this device (and 0-16 for the device for which it has been developed by you)
Based on maxdimlevel?


ah... and compliments!! Nice dashboard!
Just fixed this in the latest release.
Backup your old version of the dashboard because I changed more stuff.
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: New Dashboard Design

Post by EdwinK »

robgeerts wrote:
pvm wrote:EdKo66 / robgeerts
To control the player you need the following urls
I've added this in the latest version, could you check this?
Backup the old version of the dashboard!

Great. HAving some problems with the stop/pause buttons.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: New Dashboard Design

Post by robgeerts »

EdKo66 wrote: Great. HAving some problems with the stop/pause buttons.
What problems?
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: New Dashboard Design

Post by EdwinK »

Both forward and rewind brings me to start of the song. Stop and pause don't seem to work at all.

They do when I just enter the command on the browserbar.

I'm going to check the log files to see if there is something happening there.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: New Dashboard Design

Post by EdwinK »

BTW, this is how it looks with two players

Image
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: New Dashboard Design

Post by robgeerts »

In the latest version it only shows one title!
Whats the Status of the second music player?
l00pz
Posts: 42
Joined: Wednesday 01 April 2015 11:52
Target OS: Linux
Domoticz version: Beta
Contact:

Re: New Dashboard Design

Post by l00pz »

Wow, nice addition for the Logitech Media Server. Is it also possible to add Sonos to this? This is the Information for the Python Media Player Plugin of Sonos

Code: Select all

         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 0,
         "CustomImage" : 127,
         "Data" : "",
         "Description" : "",
         "Favorite" : 1,
         "HardwareID" : 69,
         "HardwareName" : "Sonos Kitchen",
         "HardwareType" : "Sonos Players",
         "HardwareTypeVal" : 94,
         "HaveDimmer" : true,
         "HaveGroupCmd" : true,
         "HaveTimeout" : false,
         "ID" : "0000045",
         "Image" : "Sub",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-03-30 10:35:41",
         "Level" : 0,
         "LevelInt" : 0,
         "MaxDimLevel" : 15,
         "Name" : "Sonos Kitchen",
         "Notifications" : "false",
         "PlanID" : "6",
         "PlanIDs" : [ 6, 23 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : 0,
         "Status" : "Off",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "AC",
         "SwitchType" : "Media Player",
         "SwitchTypeVal" : 17,
         "Timers" : "false",
         "Type" : "Lighting 2",
         "TypeImg" : "Media",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "1141"
      }
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: New Dashboard Design

Post by EdwinK »

robgeerts wrote:In the latest version it only shows one title!
Whats the Status of the second music player?
It is playing now. When I took the screenshot I had it turned off.

Image
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: New Dashboard Design

Post by robgeerts »

l00pz wrote:Wow, nice addition for the Logitech Media Server. Is it also possible to add Sonos to this? This is the Information for the Python Media Player Plugin of Sonos

Code: Select all

         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 0,
         "CustomImage" : 127,
         "Data" : "",
         "Description" : "",
         "Favorite" : 1,
         "HardwareID" : 69,
         "HardwareName" : "Sonos Kitchen",
         "HardwareType" : "Sonos Players",
         "HardwareTypeVal" : 94,
         "HaveDimmer" : true,
         "HaveGroupCmd" : true,
         "HaveTimeout" : false,
         "ID" : "0000045",
         "Image" : "Sub",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-03-30 10:35:41",
         "Level" : 0,
         "LevelInt" : 0,
         "MaxDimLevel" : 15,
         "Name" : "Sonos Kitchen",
         "Notifications" : "false",
         "PlanID" : "6",
         "PlanIDs" : [ 6, 23 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : 0,
         "Status" : "Off",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "AC",
         "SwitchType" : "Media Player",
         "SwitchTypeVal" : 17,
         "Timers" : "false",
         "Type" : "Lighting 2",
         "TypeImg" : "Media",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "1141"
      }
Should not be a problem but can you send my wich url's it calls when you press a button (play,pause,stop,rewind,forward) ?
And when a song is played, does it enter the songname in Data in the output?
l00pz
Posts: 42
Joined: Wednesday 01 April 2015 11:52
Target OS: Linux
Domoticz version: Beta
Contact:

Re: New Dashboard Design

Post by l00pz »

robgeerts wrote:
l00pz wrote:Wow, nice addition for the Logitech Media Server. Is it also possible to add Sonos to this? This is the Information for the Python Media Player Plugin of Sonos

Code: Select all

         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 0,
         "CustomImage" : 127,
         "Data" : "",
         "Description" : "",
         "Favorite" : 1,
         "HardwareID" : 69,
         "HardwareName" : "Sonos Kitchen",
         "HardwareType" : "Sonos Players",
         "HardwareTypeVal" : 94,
         "HaveDimmer" : true,
         "HaveGroupCmd" : true,
         "HaveTimeout" : false,
         "ID" : "0000045",
         "Image" : "Sub",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-03-30 10:35:41",
         "Level" : 0,
         "LevelInt" : 0,
         "MaxDimLevel" : 15,
         "Name" : "Sonos Kitchen",
         "Notifications" : "false",
         "PlanID" : "6",
         "PlanIDs" : [ 6, 23 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : 0,
         "Status" : "Off",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "AC",
         "SwitchType" : "Media Player",
         "SwitchTypeVal" : 17,
         "Timers" : "false",
         "Type" : "Lighting 2",
         "TypeImg" : "Media",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "1141"
      }
Should not be a problem but can you send my wich url's it calls when you press a button (play,pause,stop,rewind,forward) ?
And when a song is played, does it enter the songname in Data in the output?
At this time it's only possible to turn on and off the device, so the options are limited ;) As for the song, it's indeed put in the Data output. So a "Current Playing" button or something would be awesome :D
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: New Dashboard Design

Post by robgeerts »

Pull the latest version :)
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

New Dashboard Design

Post by pvm »

Nice to have the controls also integrated. I'll implement it in my setup this evening.
I wonder whether the buttons are large enough on my tablet.... Let's check
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: New Dashboard Design

Post by EdwinK »

Quick responses from Rob Geerts. :)
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
l00pz
Posts: 42
Joined: Wednesday 01 April 2015 11:52
Target OS: Linux
Domoticz version: Beta
Contact:

Re: New Dashboard Design

Post by l00pz »

robgeerts wrote:Pull the latest version :)
Thanks! I only have one question, at the moment the volume is also added as an information box, is it possible to ignore these?

Image

Another problem I have is that on my Android Tablet which I use on the wall the buttons are not visible. Are there more people with this problem? I tried it in Firefox, Chrome en FullScreenbrowser (also in Incognito Mode). On my Desktop the Website is looking fine.

PS, this is the output of a Volume Slider

Code: Select all

      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 0,
         "CustomImage" : 8,
         "Data" : "Set Level: 17 %",
         "Description" : "",
         "Favorite" : 0,
         "HardwareID" : 69,
         "HardwareName" : "Sonos Kitchen",
         "HardwareType" : "Sonos Players",
         "HardwareTypeVal" : 94,
         "HaveDimmer" : true,
         "HaveGroupCmd" : true,
         "HaveTimeout" : false,
         "ID" : "0000045",
         "Image" : "Speaker",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-03-30 13:55:32",
         "Level" : 17,
         "LevelInt" : 17,
         "MaxDimLevel" : 100,
         "Name" : "Sonos Kitchen - Volume",
         "Notifications" : "false",
         "PlanID" : "6",
         "PlanIDs" : [ 6, 23 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : 0,
         "Status" : "Set Level: 17 %",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "Switch",
         "SwitchType" : "Dimmer",
         "SwitchTypeVal" : 7,
         "Timers" : "false",
         "Type" : "Light/Switch",
         "TypeImg" : "dimmer",
         "Unit" : 2,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "1142"
      }
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: New Dashboard Design

Post by robgeerts »

Change

Code: Select all

if(data.result[r]['HardwareType']=='Sonos Players'){
TO:

Code: Select all

if(data.result[r]['HardwareType']=='Sonos Players' && data.result[r]['SwitchType'] == 'Media Player'){
Could you send me a photo of your tablet so I can see the problem of the buttons?
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: New Dashboard Design

Post by robgeerts »

EdKo66 wrote:Both forward and rewind brings me to start of the song. Stop and pause don't seem to work at all.

They do when I just enter the command on the browserbar.

I'm going to check the log files to see if there is something happening there.
Sorry made one mistake...

change, in main.js, the following:

Code: Select all

$.ajax({
		url: _HOST_DOMOTICZ+'/json.htm?type=command&param=lmsmediacommand&idx='+idx+'&action=Rewind&jsoncallback=?',
		type: 'GET',async: true,contentType: "application/json",dataType: 'jsonp',
		success: function(data) {
		
		}
	});
to

Code: Select all

$.ajax({
		url: _HOST_DOMOTICZ+'/json.htm?type=command&param=lmsmediacommand&idx='+idx+'&action='+action+'&jsoncallback=?',
		type: 'GET',async: true,contentType: "application/json",dataType: 'jsonp',
		success: function(data) {
		
		}
	});
l00pz
Posts: 42
Joined: Wednesday 01 April 2015 11:52
Target OS: Linux
Domoticz version: Beta
Contact:

Re: New Dashboard Design

Post by l00pz »

robgeerts wrote:Change

Code: Select all

if(data.result[r]['HardwareType']=='Sonos Players'){
TO:

Code: Select all

if(data.result[r]['HardwareType']=='Sonos Players' && data.result[r]['SwitchType'] == 'Media Player'){
Could you send me a photo of your tablet so I can see the problem of the buttons?
Thanks! I changed the main.js File and this is working now. Regarding the buttons, this is my Tablet. As browser I use FullScreenBrowser, but other Browsers like Firefox and Chrome do the same. If I use an old version, the buttons work.

Image
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: New Dashboard Design

Post by EdwinK »

robgeerts wrote:
EdKo66 wrote:Both forward and rewind brings me to start of the song. Stop and pause don't seem to work at all.

They do when I just enter the command on the browserbar.

I'm going to check the log files to see if there is something happening there.
Sorry made one mistake...

change, in main.js, the following:
Decided to do it the easy way and just downloaded main.js again
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Locked

Who is online

Users browsing this forum: No registered users and 1 guest