I've added this in the latest version, could you check this?pvm wrote:EdKo66 / robgeerts
To control the player you need the following urls
Backup the old version of the dashboard!
Moderators: leecollings, htilburgs, robgeerts
I've added this in the latest version, could you check this?pvm wrote:EdKo66 / robgeerts
To control the player you need the following urls
I'll see what I do, but since I'm not a programmer/coder it would not be much.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?
Just fixed this in the latest release.pvm wrote:The slider does not work for my fibaro dimmer as its expecting a 0-100% value
Like 71%:information on this dimmerCode: Select all
/json.htm?type=command¶m=switchlight&idx=26&switchcmd=Set%20Level&level=71
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)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" },
Based on maxdimlevel?
ah... and compliments!! Nice dashboard!
robgeerts wrote:I've added this in the latest version, could you check this?pvm wrote:EdKo66 / robgeerts
To control the player you need the following urls
Backup the old version of the dashboard!
What problems?EdKo66 wrote: Great. HAving some problems with the stop/pause buttons.
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"
}
It is playing now. When I took the screenshot I had it turned off.robgeerts wrote:In the latest version it only shows one title!
Whats the Status of the second music player?
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) ?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" }
At this time it's only possible to turn on and off the device, so the options are limitedrobgeerts wrote: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) ?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" }
And when a song is played, does it enter the songname in Data in the output?
Thanks! I only have one question, at the moment the volume is also added as an information box, is it possible to ignore these?robgeerts wrote:Pull the latest version
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"
}
Code: Select all
if(data.result[r]['HardwareType']=='Sonos Players'){
Code: Select all
if(data.result[r]['HardwareType']=='Sonos Players' && data.result[r]['SwitchType'] == 'Media Player'){
Sorry made one mistake...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.
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) {
}
});
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) {
}
});
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.robgeerts wrote:Change
TO:Code: Select all
if(data.result[r]['HardwareType']=='Sonos Players'){
Could you send me a photo of your tablet so I can see the problem of the buttons?Code: Select all
if(data.result[r]['HardwareType']=='Sonos Players' && data.result[r]['SwitchType'] == 'Media Player'){
Decided to do it the easy way and just downloaded main.js againrobgeerts wrote:Sorry made one mistake...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.
change, in main.js, the following:
Users browsing this forum: No registered users and 1 guest