Logitech Media Server
Moderators: leecollings, remb0
- cyberclwn
- Posts: 103
- Joined: Thursday 20 August 2015 22:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Logitech Media Server
By the way:
I have also made custom logo's for the Squeezebox. Not sure if they are uploaded to the googledrive (from the wiki) yet.
If anyone is interested let me know, and i'll try to make them available in another way.
Also, not sure if it was clear/obvious, but in my scripts i assume that the virtual switch in Domoticz is named with "Sq" followed bij the device name in LMS.
So In Domoticz i have switch "SqWoonkamer" which controls the LMS player "Woonkamer". Mostly important for the cron-script that checks the powerstate.
I have also made custom logo's for the Squeezebox. Not sure if they are uploaded to the googledrive (from the wiki) yet.
If anyone is interested let me know, and i'll try to make them available in another way.
Also, not sure if it was clear/obvious, but in my scripts i assume that the virtual switch in Domoticz is named with "Sq" followed bij the device name in LMS.
So In Domoticz i have switch "SqWoonkamer" which controls the LMS player "Woonkamer". Mostly important for the cron-script that checks the powerstate.
3xPi 2B (Domoticz "live", Domoticz "sandbox", PhotoFrame)
RFXCom433(E), KaKu, Oregon Scientific, Keyes 2-relay, Logitech Media Server, MiLight, Smartwares heating controller(2x), IR Send/Receive, Keyes PIR, XH-M131 DuskSensor, DHT22/11
RFXCom433(E), KaKu, Oregon Scientific, Keyes 2-relay, Logitech Media Server, MiLight, Smartwares heating controller(2x), IR Send/Receive, Keyes PIR, XH-M131 DuskSensor, DHT22/11
Re: Logitech Media Server
Sneak Preview
-
- Posts: 550
- Joined: Tuesday 17 June 2014 22:14
- Target OS: NAS (Synology & others)
- Domoticz version: 4.10538
- Location: NL
- Contact:
Re: Logitech Media Server
Nice
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
-
- Posts: 223
- Joined: Sunday 30 March 2014 15:24
- Target OS: Linux
- Domoticz version: Beta
- Location: Waterland
- Contact:
Re: Logitech Media Server
Very nice
Is it also possible to see the web page with all the information?
Is it also possible to see the web page with all the information?
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
Re: Logitech Media Server
Which webpage do you mean?rron wrote:Very nice
Is it also possible to see the web page with all the information?
-
- Posts: 223
- Joined: Sunday 30 March 2014 15:24
- Target OS: Linux
- Domoticz version: Beta
- Location: Waterland
- Contact:
Re: Logitech Media Server
I'm controlling my squeezbox classic with a web application on my ipad and this application is showing information about the music like albumcovers. Is that also possible?Eduard wrote:Which webpage do you mean?rron wrote:Very nice
Is it also possible to see the web page with all the information?
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
Re: Logitech Media Server
No, not at the moment. Currently basic control off the SqueezeBoxes is possible: on/off & play-control (see screenshot remote)rron wrote: I'm controlling my squeezbox classic with a web application on my ipad and this application is showing information about the music like albumcovers. Is that also possible?
I'm near future i want to add timers so you can schedule playlist on certain day/time etc.
Also want to implement notifications so you can see those on the SB's display...
-
- Posts: 550
- Joined: Tuesday 17 June 2014 22:14
- Target OS: NAS (Synology & others)
- Domoticz version: 4.10538
- Location: NL
- Contact:
Re: Logitech Media Server
It is possible to retrieve an image url (mind it is not identical for web radio stream and local file) from the Logitech server. I have an implementation in php and JavaScript. This might also be a future extension
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
-
- Posts: 223
- Joined: Sunday 30 March 2014 15:24
- Target OS: Linux
- Domoticz version: Beta
- Location: Waterland
- Contact:
Re: Logitech Media Server
I'm looking forward to it and all those new functions.
Thx
Thx
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
Re: Logitech Media Server
That's the fun of open source; you're free to alter and extend the featurespvm wrote:It is possible to retrieve an image url (mind it is not identical for web radio stream and local file) from the Logitech server. I have an implementation in php and JavaScript. This might also be a future extension
- cyberclwn
- Posts: 103
- Joined: Thursday 20 August 2015 22:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Logitech Media Server
Looks good, Eduard.
Keep up the good work
Keep up the good work
3xPi 2B (Domoticz "live", Domoticz "sandbox", PhotoFrame)
RFXCom433(E), KaKu, Oregon Scientific, Keyes 2-relay, Logitech Media Server, MiLight, Smartwares heating controller(2x), IR Send/Receive, Keyes PIR, XH-M131 DuskSensor, DHT22/11
RFXCom433(E), KaKu, Oregon Scientific, Keyes 2-relay, Logitech Media Server, MiLight, Smartwares heating controller(2x), IR Send/Receive, Keyes PIR, XH-M131 DuskSensor, DHT22/11
Re: Logitech Media Server
Testversion is available!!
Follow the wiki http://www.domoticz.com/wiki/Installing ... rom_Source to install Domoticz by compiling from source, but use instead.
Have fun & please let me know any bugs . I will create a new pull-request at the end of this week to add it to the latest beta.
PS.: Currently only models SqueezeBox3 supported; that's the one i have and i can test... Please provide the JSON result of a 'Serverstatus' request to have your player added...
Follow the wiki http://www.domoticz.com/wiki/Installing ... rom_Source to install Domoticz by compiling from source, but use
Code: Select all
git clone -b lms https://github.com/EddyK69/domoticz.git dev-domoticz
Have fun & please let me know any bugs . I will create a new pull-request at the end of this week to add it to the latest beta.
PS.: Currently only models SqueezeBox3 supported; that's the one i have and i can test... Please provide the JSON result of a 'Serverstatus' request to have your player added...
- cyberclwn
- Posts: 103
- Joined: Thursday 20 August 2015 22:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Logitech Media Server
Great !
I just got the test-version and have the "Logitech Media Server" in the Hardware list.
But, what port do i need to configure ? The port of the webinterface ? or the port for the CLI ?
And i can't find the layout of a "JSON Serverstatus" request anywhere.
The JSON-request for a switch is known to me, but can you specify what you mean by this ?
I guess the players should come up in the "Devices" list under the hardware/settings of the LMS.
They are not there, so i guess they aren't found (i tried both the port's i know of, in LMS).
So there must be something wrong somewhere
ps. I have some SqueezeBox Radio's and a Touch
I just got the test-version and have the "Logitech Media Server" in the Hardware list.
But, what port do i need to configure ? The port of the webinterface ? or the port for the CLI ?
And i can't find the layout of a "JSON Serverstatus" request anywhere.
The JSON-request for a switch is known to me, but can you specify what you mean by this ?
I guess the players should come up in the "Devices" list under the hardware/settings of the LMS.
They are not there, so i guess they aren't found (i tried both the port's i know of, in LMS).
So there must be something wrong somewhere
ps. I have some SqueezeBox Radio's and a Touch
3xPi 2B (Domoticz "live", Domoticz "sandbox", PhotoFrame)
RFXCom433(E), KaKu, Oregon Scientific, Keyes 2-relay, Logitech Media Server, MiLight, Smartwares heating controller(2x), IR Send/Receive, Keyes PIR, XH-M131 DuskSensor, DHT22/11
RFXCom433(E), KaKu, Oregon Scientific, Keyes 2-relay, Logitech Media Server, MiLight, Smartwares heating controller(2x), IR Send/Receive, Keyes PIR, XH-M131 DuskSensor, DHT22/11
Re: Logitech Media Server
You have to use the IP from your LMS-server and the webserver-port (default 9000)cyberclwn wrote: But, what port do i need to configure ? The port of the webinterface ? or the port for the CLI ?
TryAnd i can't find the layout of a "JSON Serverstatus" request anywhere.
The JSON-request for a switch is known to me, but can you specify what you mean by this ?
Code: Select all
curl 'http://<SERVER-IP>:9000/jsonrpc.js' --data-binary '{"id":1,"method":"slim.request","params":["",["serverstatus","0","999"]]}'
Correct!I guess the players should come up in the "Devices" list under the hardware/settings of the LMS.
I think thats the problem for now; i don't have these so i only support Squeezebox3. If you can provide the JSON-result, i can enable your models too...So there must be something wrong somewhere
ps. I have some SqueezeBox Radio's and a Touch
Thanx for testing
Last edited by Eduard on Monday 21 September 2015 20:44, edited 1 time in total.
- cyberclwn
- Posts: 103
- Joined: Thursday 20 August 2015 22:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Logitech Media Server
Hey again
The result of this commandis
Port 9090 is my CLI port (LMS runs on a NAS)
But i don't think you can find any usefull information from that. And also the CLI won't support JSON, so let's try the web-port:and i get this:
This looks like it can be usefull.
So i guess the Radio is called "baby", the touch is a "fab4" and the software-version is "squeezelite". Sweet
The result of this command
Code: Select all
curl 'http://<ip>:9090/jsonrpc.js' --data-binary '{"id":1,"method":"slim.request","params":["",["serverstatus","0","999"]]}'
Code: Select all
POST %2Fjsonrpc.js HTTP%2F1.1
User-Agent%3A curl%2F7.26.0
Host%3A <ip>%3A9090
Accept%3A *%2F*
Content-Length%3A 73
Content-Type%3A application%2Fx-www-form-urlencoded
But i don't think you can find any usefull information from that. And also the CLI won't support JSON, so let's try the web-port:
Code: Select all
curl 'http://<ip>:9001/jsonrpc.js' --data-binary '{"id":1,"method":"slim.request","params":["",["serverstatus","0","999"]]}'
Code: Select all
{"params":["",["serverstatus","0","999"]],"method":"slim.request","id":1,"result":{"other player count":0,"info total albums":1420,"player count":5,"version":"7.9.0","players_loop":[{"seq_no":"12","playerid":"00:04:20:2a:94:c9","displaytype":"none","connected":1,"ip":"<ip>:55660","model":"baby","name":"Badkamer","uuid":"<uuid>","isplayer":1,"canpoweroff":1,"power":0},{"seq_no":0,"playerid":"7c:dd:90:87:b2:d0","displaytype":"none","connected":1,"ip":"<ip>:50346","model":"squeezelite","name":"SqueezePi","uuid":null,"isplayer":1,"canpoweroff":1,"power":"1"},{"seq_no":"48","playerid":"00:04:20:22:99:ab","displaytype":"none","connected":1,"ip":"<ip>:45107","model":"fab4","name":"Woonkamer","uuid":"<uuid>","isplayer":1,"canpoweroff":1,"power":0},{"seq_no":"42","playerid":"00:04:20:28:7c:1d","displaytype":"none","connected":1,"ip":"<ip>:57268","model":"baby","name":"Slaapkamer","uuid":"<uuid>","isplayer":1,"canpoweroff":1,"power":0},{"seq_no":"13","playerid":"00:04:20:27:a0:c2","displaytype":"none","connected":1,"ip":"<ip>:34826","model":"baby","name":"Keuken","uuid":"<uuid>","isplayer":1,"canpoweroff":1,"power":0}],"uuid":"<uuid>","sn player count":0,"info total artists":4018,"info total songs":19374,"lastscan":"1442648245","info total genres":201}}
So i guess the Radio is called "baby", the touch is a "fab4" and the software-version is "squeezelite". Sweet
3xPi 2B (Domoticz "live", Domoticz "sandbox", PhotoFrame)
RFXCom433(E), KaKu, Oregon Scientific, Keyes 2-relay, Logitech Media Server, MiLight, Smartwares heating controller(2x), IR Send/Receive, Keyes PIR, XH-M131 DuskSensor, DHT22/11
RFXCom433(E), KaKu, Oregon Scientific, Keyes 2-relay, Logitech Media Server, MiLight, Smartwares heating controller(2x), IR Send/Receive, Keyes PIR, XH-M131 DuskSensor, DHT22/11
- cyberclwn
- Posts: 103
- Joined: Thursday 20 August 2015 22:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Logitech Media Server
Btw,
I found this on another website:
Maybe usefull in the future, or when someone has another device like mentioned above.
And on a different note, did the "Raspberry's GPIO port" go missing in the dev-build ?
It's not in the hardwarelist when i start the dev-one. When i start the "normal" beta, it's still there.
I found this on another website:
Code: Select all
my %models = (
slimp3 => { modelName => 'SliMP3', },
Squeezebox => { modelName => 'Squeezebox 1', },
squeezebox2 => { modelName => 'Squeezebox 2', },
squeezebox3 => { modelName => 'Squeezebox 3', },
transporter => { modelName => 'Transporter', },
receiver => { modelName => 'Squeezebox Receiver', },
boom => { modelName => 'Squeezebox Boom', },
softsqueeze => { modelName => 'Softsqueeze', },
controller => { modelName => 'Squeezebox Controller', },
squeezeplay => { modelName => 'SqueezePlay', },
baby => { modelName => 'Squeezebox Radio', },
fab4 => { modelName => 'Squeezebox Touch', },
);
And on a different note, did the "Raspberry's GPIO port" go missing in the dev-build ?
It's not in the hardwarelist when i start the dev-one. When i start the "normal" beta, it's still there.
Last edited by cyberclwn on Monday 21 September 2015 20:53, edited 1 time in total.
3xPi 2B (Domoticz "live", Domoticz "sandbox", PhotoFrame)
RFXCom433(E), KaKu, Oregon Scientific, Keyes 2-relay, Logitech Media Server, MiLight, Smartwares heating controller(2x), IR Send/Receive, Keyes PIR, XH-M131 DuskSensor, DHT22/11
RFXCom433(E), KaKu, Oregon Scientific, Keyes 2-relay, Logitech Media Server, MiLight, Smartwares heating controller(2x), IR Send/Receive, Keyes PIR, XH-M131 DuskSensor, DHT22/11
Re: Logitech Media Server
Sorry, i was wrong about the port is has to be the webserver-port indeed; i changed my previous post...cyberclwn wrote:And also the CLI won't support JSON, so let's try the web-port:and i get this:Code: Select all
curl 'http://<ip>:9001/jsonrpc.js' --data-binary '{"id":1,"method":"slim.request","params":["",["serverstatus","0","999"]]}'
This looks like it can be usefull.Code: Select all
{"params":["",["serverstatus","0","999"]],"method":"slim.request","id":1,"result":{"other player count":0,"info total albums":1420,"player count":5,"version":"7.9.0","players_loop":[{"seq_no":"12","playerid":"00:04:20:2a:94:c9","displaytype":"none","connected":1,"ip":"<ip>:55660","model":"baby","name":"Badkamer","uuid":"<uuid>","isplayer":1,"canpoweroff":1,"power":0},{"seq_no":0,"playerid":"7c:dd:90:87:b2:d0","displaytype":"none","connected":1,"ip":"<ip>:50346","model":"squeezelite","name":"SqueezePi","uuid":null,"isplayer":1,"canpoweroff":1,"power":"1"},{"seq_no":"48","playerid":"00:04:20:22:99:ab","displaytype":"none","connected":1,"ip":"<ip>:45107","model":"fab4","name":"Woonkamer","uuid":"<uuid>","isplayer":1,"canpoweroff":1,"power":0},{"seq_no":"42","playerid":"00:04:20:28:7c:1d","displaytype":"none","connected":1,"ip":"<ip>:57268","model":"baby","name":"Slaapkamer","uuid":"<uuid>","isplayer":1,"canpoweroff":1,"power":0},{"seq_no":"13","playerid":"00:04:20:27:a0:c2","displaytype":"none","connected":1,"ip":"<ip>:34826","model":"baby","name":"Keuken","uuid":"<uuid>","isplayer":1,"canpoweroff":1,"power":0}],"uuid":"<uuid>","sn player count":0,"info total artists":4018,"info total songs":19374,"lastscan":"1442648245","info total genres":201}}
So i guess the Radio is called "baby", the touch is a "fab4" and the software-version is "squeezelite". Sweet
Can you change the code in LogitechMediaServer.cpp (line 352) and test it with your models (baby & fab4)?
Re: Logitech Media Server
Thanks!!cyberclwn wrote:Btw,
I found this on another website:Maybe usefull in the future, or when someone has another device like mentioned above.Code: Select all
my %models = ( slimp3 => { modelName => 'SliMP3', }, Squeezebox => { modelName => 'Squeezebox 1', }, squeezebox2 => { modelName => 'Squeezebox 2', }, squeezebox3 => { modelName => 'Squeezebox 3', }, transporter => { modelName => 'Transporter', }, receiver => { modelName => 'Squeezebox Receiver', }, boom => { modelName => 'Squeezebox Boom', }, softsqueeze => { modelName => 'Softsqueeze', }, controller => { modelName => 'Squeezebox Controller', }, squeezeplay => { modelName => 'SqueezePlay', }, baby => { modelName => 'Squeezebox Radio', }, fab4 => { modelName => 'Squeezebox Touch', }, );
Strange, it is a complete fork of the domoticz/master branch. Will test this on my dev machineAnd on a different note, did the "Raspberry's GPIO port" go missing in the dev-build ?
It's not in the hardwarelist when i start the dev-one. When i start the "normal" beta, it's still there.
- cyberclwn
- Posts: 103
- Joined: Thursday 20 August 2015 22:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Logitech Media Server
Yay,
There they are.
Nice list of the players, greyed out if turned off, in color when turned on (altho the wrong icon, windows mediaplayer icon, not squeezebox, )
I can see what's playing, volume buttons/mute play/pause works too
I like it a lot, so far
There they are.
Nice list of the players, greyed out if turned off, in color when turned on (altho the wrong icon, windows mediaplayer icon, not squeezebox, )
I can see what's playing, volume buttons/mute play/pause works too
I like it a lot, so far
3xPi 2B (Domoticz "live", Domoticz "sandbox", PhotoFrame)
RFXCom433(E), KaKu, Oregon Scientific, Keyes 2-relay, Logitech Media Server, MiLight, Smartwares heating controller(2x), IR Send/Receive, Keyes PIR, XH-M131 DuskSensor, DHT22/11
RFXCom433(E), KaKu, Oregon Scientific, Keyes 2-relay, Logitech Media Server, MiLight, Smartwares heating controller(2x), IR Send/Receive, Keyes PIR, XH-M131 DuskSensor, DHT22/11
Re: Logitech Media Server
Thanx! Was in doubt about the icon too; kodi also does not have an own icon.cyberclwn wrote:Yay,
There they are.
Nice list of the players, greyed out if turned off, in color when turned on (altho the wrong icon, windows mediaplayer icon, not squeezebox, )
I can see what's playing, volume buttons/mute play/pause works too
I like it a lot, so far
Working on notifications now
Who is online
Users browsing this forum: No registered users and 0 guests