Page 10 of 21

Re: RE: Re: Logitech Media Server

Posted: Wednesday 03 February 2016 21:59
by djgodlike
Eduard wrote:
djgodlike wrote:My SlimDevices Transporter is not being recognized. Is there a way to get it connected?
I will add this model asap :D
Thank you so much! Very appreciated!

Re: RE: Re: Logitech Media Server

Posted: Thursday 04 February 2016 9:58
by Eduard
djgodlike wrote:
Eduard wrote:
djgodlike wrote:My SlimDevices Transporter is not being recognized. Is there a way to get it connected?
I will add this model asap :D
Thank you so much! Very appreciated!
Transporter-support is available in next beta...

Re: RE: Re: Logitech Media Server

Posted: Thursday 04 February 2016 10:02
by djgodlike
Eduard wrote:
djgodlike wrote:
Eduard wrote: I will add this model asap :D
Thank you so much! Very appreciated!
Transporter-support is available in next beta...
Bedankt!!! Thumbs up!

Re: Logitech Media Server

Posted: Saturday 16 April 2016 15:16
by Thomasdc
is it possible to send notifications to the Logitech media server?
I would like to send TTS notitifications to my speakers.

I thought this was possible with Sonos..

Re: Logitech Media Server

Posted: Monday 25 April 2016 18:44
by Zycker
I think so, in Setup, Settings, Notifications, bottom right :
Logitech Media Server:
This notifier only works when the Logitech Media Server hardware has been added/enabled

Re: Logitech Media Server

Posted: Tuesday 26 April 2016 14:33
by toreandre
Is it possible to use the selector switch with blockly to play favorites, playlists, volume etc?

I have a selector switch, and in blockly i can stop my squeeselite player with the off button, but when i try to play favorites with the level1 button nothing happens.

Re: Logitech Media Server

Posted: Thursday 28 April 2016 12:40
by pvm
Zycker wrote:I think so, in Setup, Settings, Notifications, bottom right :
Logitech Media Server:
This notifier only works when the Logitech Media Server hardware has been added/enabled
These are TTT notifications (text on display only)

Re: Logitech Media Server

Posted: Monday 04 July 2016 13:18
by Nautilus
Hi,

I noticed something strange - perhaps... :) It seems that the event system does not see any update on the sValue after a player is powered on and playing something. The web interface (usually, I've noted some exceptions) shows correct info on the player (.e.g playing artist2 - song2) switch but the sValue is what was when originally starting to play (e.g. artist1 - song1). I tried to build a script to detect if certain web radios are played but without having an update on the sValue I think it is impossible? Or maybe I can read from the json response somehow. But is this something that is just bugging me or do others have this behaviour as well? And if so, could it be somehow fixed to update the sValue during playback too?

Re: Logitech Media Server

Posted: Monday 04 July 2016 20:48
by toreandre
Nautilus wrote:Hi,

I noticed something strange - perhaps... :) It seems that the event system does not see any update on the sValue after a player is powered on and playing something. The web interface (usually, I've noted some exceptions) shows correct info on the player (.e.g playing artist2 - song2) switch but the sValue is what was when originally starting to play (e.g. artist1 - song1). I tried to build a script to detect if certain web radios are played but without having an update on the sValue I think it is impossible? Or maybe I can read from the json response somehow. But is this something that is just bugging me or do others have this behaviour as well? And if so, could it be somehow fixed to update the sValue during playback too?
I get song info for each song that is played on webradios.

Re: Logitech Media Server

Posted: Tuesday 05 July 2016 23:41
by Nautilus
toreandre wrote:
I get song info for each song that is played on webradios.
The problem from my perspective was not the info on switch itself - that is updating correctly. But from the viewpoint of the event system, it seems that the sValue does not update accordingly. In any case, I realized there is potentially as timing issue if the channel is changed through another medium than domoticz so I decided to check the needed info directly from the server with this kind of script:

Code: Select all

json = (loadfile '/home/pi/domoticz/scripts/lua/json.lua')()
file = assert(io.popen('curl \'url:port/jsonrpc.js\' --data-binary \'{"id":1,"method":"slim.request","params":["player:mac:address",["status","-","1",""]]}\''))   
raw = file:read('*all')
file:close()   
deviceinfo = json:decode(raw)
nowplaying = deviceinfo.result.current_title
This return the currently playing "track" which I can then use in the script and no need to worry whether the same info is already available on the player's switch in Domoticz. As a disclaimer I must add that I'm not sure at all whether this is the most effective way to interpret json, I just re-used what I already had copied from the "good morning" script (viewtopic.php?f=23&t=10923) :)

Re: Logitech Media Server

Posted: Monday 25 July 2016 9:53
by toreandre
I have two RPis with squeezelite, but sometimes the two clients change name in domoticz.
I have not set a specific mac adress in the config so they both use their hardware mac.

In the log i can se a status update almost like this: "Device squeezelite 1 has changed name to squeezelite 2"

Re: Logitech Media Server

Posted: Friday 09 September 2016 23:31
by Nautilus
Hi,

does anyone know if it would be possible to somehow toggle the squeezebox On / Off via single json api command? I'd need this for a selector switch. The normal method:
/json.htm?type=command&param=switchlight&idx=IDX&switchcmd=Toggle

does not work when the status is something else than On or Off (e.g. "Playing" or "Stopped"). Well ok, if it is "Playing" the first press turns it On and if you press again right after then "Off". But what I'd really like would be to turn off also from "Playing" status.

Lua is a good workaround, but I would also need to be able to update the selector level without triggering an action and if the action is behind lua scripts, it will always trigger for the "devicechanged"...

Re: Logitech Media Server

Posted: Saturday 17 September 2016 8:15
by Eduard
You can switch on/off a player directly via curl using:

Power on SqueezeBox
[url]http://<server-ip>:<port>/status.html?p0=button&p1=power_on&player=<player-ip>[/url]

Power off SqueezeBox
[url]http://<server-ip>:<port>/status.html?p0=button&p1=power_off&player=<player-ip>[/url]

Re: Logitech Media Server

Posted: Saturday 17 September 2016 22:30
by Nautilus
Eduard wrote:You can switch on/off a player directly via curl using:

Power on SqueezeBox
[url]http://<server-ip>:<port>/status.html?p0=button&p1=power_on&player=<player-ip>[/url]

Power off SqueezeBox
[url]http://<server-ip>:<port>/status.html?p0=button&p1=power_off&player=<player-ip>[/url]
True, and even the Domoticz json calls for "on" and "off" works ok if the above is what is needed. However, in my situation if I want the selector switch to fit nicely inside the "switch area", I can only have a certain amount of buttons and for this reason I would've like to be able to toggle each squeezeboxes' state from one button only. Well, I guess I could do it also in some external script or by creating a few more dummy devices...:)

Re: Logitech Media Server

Posted: Sunday 18 September 2016 9:04
by Eduard
Nautilus wrote:
Eduard wrote:You can switch on/off a player directly via curl using:

Power on SqueezeBox
[url]http://<server-ip>:<port>/status.html?p0=button&p1=power_on&player=<player-ip>[/url]

Power off SqueezeBox
[url]http://<server-ip>:<port>/status.html?p0=button&p1=power_off&player=<player-ip>[/url]
True, and even the Domoticz json calls for "on" and "off" works ok if the above is what is needed. However, in my situation if I want the selector switch to fit nicely inside the "switch area", I can only have a certain amount of buttons and for this reason I would've like to be able to toggle each squeezeboxes' state from one button only. Well, I guess I could do it also in some external script or by creating a few more dummy devices...:)
To toggle power you can use:
[url]http://<server-ip>:<port>/status.html?p0=button&p1=power&player=<player-ip>[/url]

Re: Logitech Media Server

Posted: Sunday 18 September 2016 22:12
by Nautilus
Eduard wrote: To toggle power you can use:
[url]http://<server-ip>:<port>/status.html?p0=button&p1=power&player=<player-ip>[/url]
Great, thanks a lot! :)

Re: Logitech Media Server

Posted: Wednesday 21 September 2016 10:49
by Mooseknuckle
Hi there,

I recently started to use LMS. Thanks to a third party plugin called 'Chromecast bridge" LMS works great with chromecast devices. I noticed that from LMS you can start different favorites (I have multiple dynamic spotify playlists as a favorite) on different Chromecasts but with Domoticz I cannnot select which favorite I want to send, it always starts with the first. I can start a specific favorite with curl but I would really like to use the Domoticz LMS support. Am I doing something wrong or is it possible to implement the item_id for favorites?

Thanks in advance,

Re: Logitech Media Server

Posted: Friday 14 October 2016 12:41
by qwerk
Logitech is working fine from Domoticz.

I am trying to control my players from blockly, On, Off, is working fine. But playing a playlist or setting a volume level is not working.
1.JPG
1.JPG (11.15 KiB) Viewed 4125 times
2.JPG
2.JPG (12.34 KiB) Viewed 4125 times
What should I change?

Re: Logitech Media Server

Posted: Thursday 20 October 2016 10:50
by simon_rb
Hi,

Is there a way to get and change the volume for a player via json command? Trying to add this into homebridge with edomoticz. I can turn the players on and off but would love to be able to control the volume using the same switch. Any ideas? Even if I need to directly get the states from LMS rather than Domoticz.

Cheers guys & girls

Edit:- Found http://192.168.1.26:8080/json.htm?type= ... n=VolumeUp command :)

Re: Logitech Media Server

Posted: Friday 21 October 2016 12:05
by simon_rb
Is there a way to get volume status via a command. I read above there isn't using this plugin however I have seen other plugins able to get the volume data from the players. Wondered if its possible to get the volume data put into the /json.htm?type=devices&rid=IDX outpost. Then it could be used via edomoticz homebridge plugin. Could control the volume via iOS 10 HomeKit app and via Siri. We should be able to increase/decrease the volume however without knowing what the volume is to start with it may be difficult.

Cheers