Page 6 of 21

Re: Logitech Media Server

Posted: Monday 05 October 2015 20:06
by mschut
Will test the Boom!

Re: Logitech Media Server

Posted: Monday 05 October 2015 22:48
by pvm
I got a new modem and reconfigured my home network. The squeezebox got a new network address resulting in a second device (in the switches screen). I tried removing it, that works fine.
In the hardware screen however, I still see 2 devices, how can I clean that up? Is it possible to not create a new device when the mac address stays the same?

Re: Logitech Media Server

Posted: Monday 05 October 2015 23:03
by Eduard
pvm wrote:I got a new modem and reconfigured my home network. The squeezebox got a new network address resulting in a second device (in the switches screen). I tried removing it, that works fine.
In the hardware screen however, I still see 2 devices, how can I clean that up? Is it possible to not create a new device when the mac address stays the same?
Will look into that. Thanx for reporting!

For now you can delete the LMS hardware and add it again to loose your 'old' player...

Re: Logitech Media Server

Posted: Tuesday 06 October 2015 13:51
by Nautilus
Eduard wrote: I just created a pull-request with support for Boom & SqueezePlay. Should be available in next beta...
Hi, is there some particular reason for not adding Duet (receiver) and controller - and possibly also iPengiPod? :)

At least the first two should be quite identical to other SB players and I don't see why the basic controls wouldn't work. Will of course report here if there would be some issues..

Re: Logitech Media Server

Posted: Tuesday 06 October 2015 14:25
by Eduard
Nautilus wrote:Hi, is there some particular reason for not adding Duet (receiver) and controller
They were already supported in a previous beta :D

Re: Logitech Media Server

Posted: Tuesday 06 October 2015 14:28
by Eduard
pvm wrote:I got a new modem and reconfigured my home network. The squeezebox got a new network address resulting in a second device (in the switches screen). I tried removing it, that works fine.
In the hardware screen however, I still see 2 devices, how can I clean that up? Is it possible to not create a new device when the mac address stays the same?
Fixed! Should be available in new beta...

PS.: Still have to delete hardware and add again to get rid of the duplicate player for now. In new version it won't add a new player if the IP or Name changes...

Re: Logitech Media Server

Posted: Tuesday 06 October 2015 21:07
by mschut
The Boom has arrived. Simple test (turn on, off, play) successful.

Re: Logitech Media Server

Posted: Tuesday 06 October 2015 21:16
by Immo
Squeeze play also came up right away after the update.
Control seems to be working fine

Cheers!

Re: Logitech Media Server

Posted: Tuesday 06 October 2015 22:36
by pvm
Eduard wrote:
pvm wrote:I got a new modem and reconfigured my home network. The squeezebox got a new network address resulting in a second device (in the switches screen). I tried removing it, that works fine.
In the hardware screen however, I still see 2 devices, how can I clean that up? Is it possible to not create a new device when the mac address stays the same?
Fixed! Should be available in new beta...

PS.: Still have to delete hardware and add again to get rid of the duplicate player for now. In new version it won't add a new player if the IP or Name changes...
Thnx, removed the hardware, readded and back to one device again

Re: Logitech Media Server

Posted: Wednesday 07 October 2015 8:04
by Nautilus
Eduard wrote:
Nautilus wrote:Hi, is there some particular reason for not adding Duet (receiver) and controller
They were already supported in a previous beta :D
Awesome, works great so far! :D

Re: Logitech Media Server

Posted: Wednesday 07 October 2015 20:17
by mschut
About notifications: I notice the notifications "on" and "off" are the only ones which work for me, and also only if I turn on/off in Domoticz, not by the device itself. Would be great if it would also work on the devices self, including the "play" option.

Re: Logitech Media Server

Posted: Wednesday 07 October 2015 20:19
by Eduard
New test version available! (For testers who are able to compile from source)

Changes:
* Add notifications to LMS players (on/off/play/pause/stop)
* Add LMS-player(s) as notifier (send notifications to your players display :D)

How to update:

Code: Select all

cd ~/dev-domoticz
git pull
make
For starters: search this thread how to start compile from source.

Now working on LUA script & Blockly's :P

Thanx for your testing & suggestions :D

Enjoy!!

Re: Logitech Media Server

Posted: Wednesday 07 October 2015 20:20
by Eduard
mschut wrote:About notifications: I notice the notifications "on" and "off" are the only ones which work for me, and also only if I turn on/off in Domoticz, not by the device itself. Would be great if it would also work on the devices self, including the "play" option.
See previous post :D

Re: Logitech Media Server

Posted: Wednesday 07 October 2015 20:42
by mschut
Oops. I just updated and posted on my phone....

Re: Logitech Media Server

Posted: Wednesday 07 October 2015 20:44
by mschut
Ow, I was 2 minutes earlier ;)

Also available in the Pi beta version (now V2.3267)?

Re: Logitech Media Server

Posted: Wednesday 07 October 2015 22:09
by Eduard
mschut wrote:Also available in the Pi beta version (now V2.3267)?
No, not yet. After good test result i will make a pull-request within a few days...

Re: Logitech Media Server

Posted: Thursday 08 October 2015 23:16
by cyberclwn
Hey,

Was about to point an issue similar to what you mentioned:
Eduard wrote:
Eduard wrote:The domotcz/master version has one bug which i'm not able to fix right now:
After switching on a player and play a song, the device shows artist & title as expected. But if i switch a normal switch, the status of this switch also shows the same artist & title :oops:
Found it! Fixed in new beta...

Also enabled support for Controller & Receiver. Please let me know if it works for those devices...
In my case you didn't even have to change status of a switch, just had to wait some time. Then other switches started to show the music being played as their status.
But have git-pulled your new version, compiled it and have it running for some time now, seems fixed indeed.

Not tested the notification to the LMS yet.
The notification when a device is turned on from the device itself takes a few seconds, but is noticed good by the plugin.

Yes, i'm happy again/still :)

btw, it is on purpose the status of the device changes from "Aan" (On) to "Audio" after a 20-30 seconds ?

Re: Logitech Media Server

Posted: Thursday 08 October 2015 23:42
by Immo
I am trying to figure out the url to start playing a radiostation from the lms-list on a certain player.
Getting the player to play is no problem from a url, but switching to a certain station I can't get to work.

The idea is to have a virtual switch to start playing a channel on one of my squeezeboxes..

Re: Logitech Media Server

Posted: Friday 09 October 2015 0:20
by cyberclwn
Hey,

Is the channel you are trying to play on the favorites list ?
Immo wrote:I am trying to figure out the url to start playing a radiostation from the lms-list on a certain player.
Getting the player to play is no problem from a url, but switching to a certain station I can't get to work.

The idea is to have a virtual switch to start playing a channel on one of my squeezeboxes..
If so, you can try this script (called lms_play_fav.sh) i have made:

Code: Select all

#!/bin/bash
SB_SERVER=<LMS_SERVER_IP>
SB_PORT=<LMS_SERVER_CLI_PORT>

LMS_FAV_ID=`echo "$1 favorites items 0 1000" | nc -q 2 $SB_SERVER $SB_PORT | sed 's/%3A/:/g' | sed 's/ id:/\'$'\n/g' | grep -i "$2 " | cut -d '.' -f2 | cut -d ' ' -f1 | head -n 1`
PLAY=`echo "$1 favorites playlist play item_id:$LMS_FAV_ID" | nc -q 2 $SB_SERVER $SB_PORT`
Put this script in your scripts-folder on the domoticz server.

Then make a scene with this in the "on-action":

Code: Select all

script:///home/pi/domoticz/scripts/lms_play_fav.sh <LMS_PLAYER_NAME> <NAME_OF_FAVORITE>
And it should work.

big side-note: This script is not really (really not?) solid. i use it only for 3 favorites, so it can not work for you because of the favorites names. It won't ruin anything, but i don't guarantee it will work also. :)

Re: Logitech Media Server

Posted: Friday 09 October 2015 6:17
by Eduard
cyberclwn wrote:btw, it is on purpose the status of the device changes from "Aan" (On) to "Audio" after a 20-30 seconds ?
It's because the plug-in uses an interval to 'pull' the status of the players. By default this interval is 30 seconds. You can change this in rhe hardware-srtting of the LMS.