Page 9 of 184
Re: New Dashboard Design
Posted: Thursday 30 March 2017 9:24
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!
Re: New Dashboard Design
Posted: Thursday 30 March 2017 9:26
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.
Re: New Dashboard Design
Posted: Thursday 30 March 2017 9:29
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¶m=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.
Re: New Dashboard Design
Posted: Thursday 30 March 2017 9:41
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.
Re: New Dashboard Design
Posted: Thursday 30 March 2017 9:43
by robgeerts
EdKo66 wrote:
Great. HAving some problems with the stop/pause buttons.
What problems?
Re: New Dashboard Design
Posted: Thursday 30 March 2017 9:59
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.
Re: New Dashboard Design
Posted: Thursday 30 March 2017 10:18
by EdwinK
BTW, this is how it looks with two players

Re: New Dashboard Design
Posted: Thursday 30 March 2017 10:34
by robgeerts
In the latest version it only shows one title!
Whats the Status of the second music player?
Re: New Dashboard Design
Posted: Thursday 30 March 2017 10:43
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"
}
Re: New Dashboard Design
Posted: Thursday 30 March 2017 11:05
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.

Re: New Dashboard Design
Posted: Thursday 30 March 2017 11:15
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?
Re: New Dashboard Design
Posted: Thursday 30 March 2017 11:21
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

Re: New Dashboard Design
Posted: Thursday 30 March 2017 12:06
by robgeerts
Pull the latest version

New Dashboard Design
Posted: Thursday 30 March 2017 12:38
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
Re: New Dashboard Design
Posted: Thursday 30 March 2017 12:52
by EdwinK
Quick responses from Rob Geerts.

Re: New Dashboard Design
Posted: Thursday 30 March 2017 14:14
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?
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"
}
Re: New Dashboard Design
Posted: Thursday 30 March 2017 15:47
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?
Re: New Dashboard Design
Posted: Thursday 30 March 2017 15:51
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¶m=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¶m=lmsmediacommand&idx='+idx+'&action='+action+'&jsoncallback=?',
type: 'GET',async: true,contentType: "application/json",dataType: 'jsonp',
success: function(data) {
}
});
Re: New Dashboard Design
Posted: Thursday 30 March 2017 16:03
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.

Re: New Dashboard Design
Posted: Thursday 30 March 2017 17:10
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