Dashticz supports the Logitech Media Players in Domoticz (which can be the popular picoreplayer which I use myself on a raspberry pi with hifiberry amp)
This enables control of the music player(s):
(this image includes the CSS change as documented on the Dashticz wiki to increase the button sizes)
To use, add a block with your device id (in my case 107 to config.js)
blocks[107] = {}
blocks[107]['width'] = 12;
blocks[107]['icon'] = 'fa-music';
columns[1]['blocks'] = ['107']
Dashticz - Logitech Media Server
Moderators: leecollings, htilburgs, robgeerts
-
- Posts: 550
- Joined: Tuesday 17 June 2014 22:14
- Target OS: NAS (Synology & others)
- Domoticz version: 4.10538
- Location: NL
- Contact:
Dashticz - Logitech Media Server
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
-
- Posts: 550
- Joined: Tuesday 17 June 2014 22:14
- Target OS: NAS (Synology & others)
- Domoticz version: 4.10538
- Location: NL
- Contact:
Re: Dashticz - Logitech Media Server
@Rob Geerts,
Can you extend the LMS block with volume control? I replaced your code with the following to get to this result
Can you extend the LMS block with volume control? I replaced your code with the following to get to this result
Code: Select all
else if(device['HardwareType']=='Logitech Media Server'){
html+=iconORimage(idx,'fa-music','','on icon','',2);
html+='<div class="col-xs-10 col-data">';
html+='<strong class="title">'+device['Name']+'</strong><br />';
html+='<span class="h4">'+device['Data']+'</span>';
html+='<div>';
html+='<a href="javascript:controlLogitech('+device['idx']+',\'Rewind\');"><em class="fa fa-arrow-circle-left fa-small"></em></a> ';
html+='<a href="javascript:controlLogitech('+device['idx']+',\'Stop\');"><em class="fa fa-stop-circle fa-small"></em></a> ';
if(device['Status']=='Playing') {
html+='<a href="javascript:controlLogitech('+device['idx']+',\'Pause\');"><em class="fa fa-pause-circle fa-small"></em></a> ';
}
else {
html+='<a href="javascript:controlLogitech('+device['idx']+',\'Play\');"><em class="fa fa-play-circle fa-small"></em></a> ';
}
html+='<a href="javascript:controlLogitech('+device['idx']+',\'Forward\');"><em class="fa fa-arrow-circle-right fa-small"></em></a>';
html+=' ';
html+='<a href="javascript:controlLogitech('+device['idx']+',\'VolumeDown\');"><em class="fa fa-minus-circle fa-small"></em></a>';
html+=' ';
html+='<a href="javascript:controlLogitech('+device['idx']+',\'VolumeUp\');"><em class="fa fa-plus-circle fa-small"></em></a>';
html+='</div>';
html+='</div>';
$('div.block_'+idx).addClass('with_controls');
}
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
-
- Posts: 1273
- Joined: Saturday 24 January 2015 22:12
- Target OS: NAS (Synology & others)
- Domoticz version: 3.7067
- Location: NL
- Contact:
Re: Dashticz - Logitech Media Server
Fixed in latest beta! Thanks!
-
- Posts: 3
- Joined: Tuesday 28 November 2017 16:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Logitech Media Server
Hi all
Just started with dashticz, and it's awesome.
I have a picore player on the dashboard , but after i made the buttons a litle bigger , they doesn't fit in the block.
How can i make this block of the picore player a litle higher , so the buttons fit in it.
Just started with dashticz, and it's awesome.
I have a picore player on the dashboard , but after i made the buttons a litle bigger , they doesn't fit in the block.
How can i make this block of the picore player a litle higher , so the buttons fit in it.
- Attachments
-
- PiCorel.PNG (5.86 KiB) Viewed 1767 times
-
- Posts: 550
- Joined: Tuesday 17 June 2014 22:14
- Target OS: NAS (Synology & others)
- Domoticz version: 4.10538
- Location: NL
- Contact:
Re: Dashticz - Logitech Media Server
I solved that by adding some padding:
Code: Select all
.block_107{
padding-bottom: 80px !important;
}
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
-
- Posts: 3
- Joined: Tuesday 28 November 2017 16:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Logitech Media Server
Thanks for quick reply, it works
- madpatrick
- Posts: 639
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Dashticz - Logitech Media Server
Hi,
Works great, but is it possible to change the buttons to a custom icon ?
Works great, but is it possible to change the buttons to a custom icon ?
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
Who is online
Users browsing this forum: No registered users and 1 guest