Re: [SlimDevices: Unix] Programmatically manage PiCore players

2021-11-08 Thread RobbH


squeezebox153 wrote: 
> I have 3 raspberry pi's each running picore & a LMS. Each RPi has a
> dedicated amplifier. My dashboard runs via SmartThings to orchestrate
> the player commands. I can now run independently & synchronized. 
> 
> Perhaps I could get away with 1 LMS but I achieved what I needed.

As long as it's working the way you want, that's great!



LMS 8 nightly running on Raspberry Pi OS. Mostly virtual players,
occasionally with SB Radio, Boom or Classic.

RobbH's Profile: http://forums.slimdevices.com/member.php?userid=67008
View this thread: http://forums.slimdevices.com/showthread.php?t=115380

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Programmatically manage PiCore players

2021-11-08 Thread squeezebox153


RobbH wrote: 
> Isn't that what you want?

I have 3 raspberry pi's each running picore & a LMS. Each RPi has a
dedicated amplifier. My dashboard runs via SmartThings to orchestrate
the player commands. I can now run independently & synchronized. 

Perhaps I could get away with 1 LMS but I achieved what I needed.



squeezebox153's Profile: http://forums.slimdevices.com/member.php?userid=72012
View this thread: http://forums.slimdevices.com/showthread.php?t=115380

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Programmatically manage PiCore players

2021-11-08 Thread RobbH


squeezebox153 wrote: 
> All of them have static IP's and work fine from my dashboard. The only
> thing I need to do is get the primary player to manage the other
> players.
> 
> https://i.imgur.com/KNIqoSg.png

Slartibartfast has already given you excellent advice. Just to elaborate
a bit, in order to do what you want to do, all players need to be
connected to the same server. That is, the same instance of LMS. Having
LMS running on all your installations of piCorePlayer is just confusing
matters.

Here's a view of my Players drop-down list in Material (in my case on a
desktop instead of the mobile version):

36132

There are eight standard players and two group players. LMS is running
on the Raspberry Pi named Baskerville at the top of the list, and
nowhere else. It stays on all the time. I can use any one of the eight
standard players independently of the others. Each one could be playing
something different. Or I could select the group player,
All-player-sync, and have the same thing playing on all of them
(assuming they are all powered on).

Isn't that what you want?

There's one remaining thing you want, and I am utterly clueless about
it: making this work from your automation dashboard. Can you select a
player from the dashboard? If so, it should be possible to set up your
dashboard so you can choose to use an individual player or a group
player. But if not, you will probably have to continue to use LMS
(through the Material skin on you phone, as in your screenshot) to
choose an individual player or a group.


+---+
|Filename: lms-material-players.jpg |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=36132|
+---+


LMS 8 nightly running on Raspberry Pi OS. Mostly virtual players,
occasionally with SB Radio, Boom or Classic.

RobbH's Profile: http://forums.slimdevices.com/member.php?userid=67008
View this thread: http://forums.slimdevices.com/showthread.php?t=115380

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Programmatically manage PiCore players

2021-11-08 Thread Greg Erskine


I fear having multiple LMS servers may cause you more problems than it
solves.



Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403
View this thread: http://forums.slimdevices.com/showthread.php?t=115380

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Programmatically manage PiCore players

2021-11-08 Thread squeezebox153


RobbH wrote: 
> Do you power off your three players when they are not in use, or do you
> leave them on?
> 
> If you do power them off, would you be willing to leave one of them on
> all the time, instead?

The players are always on but reboot nightly. 

I was able to have the primary player curl the JSONRPC API after reboot
and add the secondary players:


Code:

curl -X POST 
-d'{"id":0,"method":"slim.request","params":["",["disconnect","b8:27:eb:29:f4:d7","172.16.0.243"]]}'
 http://172.16.0.241:9000/jsonrpc.js




squeezebox153's Profile: http://forums.slimdevices.com/member.php?userid=72012
View this thread: http://forums.slimdevices.com/showthread.php?t=115380

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Programmatically manage PiCore players

2021-11-08 Thread RobbH


squeezebox153 wrote: 
> All of them have static IP's and work fine from my dashboard. The only
> thing I need to do is get the primary player to manage the other
> players.
> 
> https://i.imgur.com/KNIqoSg.png

Do you power off your three players when they are not in use, or do you
leave them on?

If you do power them off, would you be willing to leave one of them on
all the time, instead?



LMS 8 nightly running on Raspberry Pi OS. Mostly virtual players,
occasionally with SB Radio, Boom or Classic.

RobbH's Profile: http://forums.slimdevices.com/member.php?userid=67008
View this thread: http://forums.slimdevices.com/showthread.php?t=115380

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Programmatically manage PiCore players

2021-11-08 Thread slartibartfast


squeezebox153 wrote: 
> All of them have static IP's and work fine from my dashboard. The only
> thing I need to do is get the primary player to manage the other
> players.
> 
> https://i.imgur.com/KNIqoSg.pngIf the primary player is always the same one 
> just have LMS on that one
and leave the other two as players.

Sent from my Pixel 3a using Tapatalk





slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609
View this thread: http://forums.slimdevices.com/showthread.php?t=115380

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Programmatically manage PiCore players

2021-11-08 Thread squeezebox153


All of them have static IP's and work fine from my dashboard. The only
thing I need to do is get the primary player to manage the other
players.

https://i.imgur.com/KNIqoSg.png



squeezebox153's Profile: http://forums.slimdevices.com/member.php?userid=72012
View this thread: http://forums.slimdevices.com/showthread.php?t=115380

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Programmatically manage PiCore players

2021-11-08 Thread kidstypike


slartibartfast wrote: 
> It seems he wants to be able to turn on any individual Pi and have a
> server and player. Never mind the chaos of having three different IP
> addresses for the servers and having players that can attach to any one
> of them.
> 
> Sent from my Pixel 3a using Tapatalk

Yes, I know. ;)

Good luck to him with his quest.



*Server - LMS 8.3.0 *Pi4B 4GB/Argon one case/pCP 8.0.0 - 75K library,
playlists & LMS cache on SSD (ntfs)
*Study -* Pi4/pCP 8.0.0/Topping E30 DAC/Ruark MR1 Mk2
*Lounge* - Pi2/pCP 8.0.0 > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5
*Dining Room* - Pi3B/pCP/Bluetooth/Echo Show 8
*Garage* - DAC32 > Edifier speakers

*Spares* - 2xTouch, 1xSB Radio. 1xSB3, 6xRPi

kidstypike's Profile: http://forums.slimdevices.com/member.php?userid=10436
View this thread: http://forums.slimdevices.com/showthread.php?t=115380

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Programmatically manage PiCore players

2021-11-08 Thread slartibartfast


kidstypike wrote: 
> You don't need LMS on each player for this.It seems he wants to be able to 
> turn on any individual Pi and have a
server and player. Never mind the chaos of having three different IP
addresses for the servers and having players that can attach to any one
of them.

Sent from my Pixel 3a using Tapatalk





slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609
View this thread: http://forums.slimdevices.com/showthread.php?t=115380

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Programmatically manage PiCore players

2021-11-08 Thread kidstypike


squeezebox153 wrote: 
> 
> 
> I have an instance of LMS on each of my picore players as I want to have
> individual playing ability and synchronized.

You don't need LMS on each player for this.



*Server - LMS 8.3.0 *Pi4B 4GB/Argon one case/pCP 8.0.0 - 75K library,
playlists & LMS cache on SSD (ntfs)
*Study -* Pi4/pCP 8.0.0/Topping E30 DAC/Ruark MR1 Mk2
*Lounge* - Pi2/pCP 8.0.0 > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5
*Dining Room* - Pi3B/pCP/Bluetooth/Echo Show 8
*Garage* - DAC32 > Edifier speakers

*Spares* - 2xTouch, 1xSB Radio. 1xSB3, 6xRPi

kidstypike's Profile: http://forums.slimdevices.com/member.php?userid=10436
View this thread: http://forums.slimdevices.com/showthread.php?t=115380

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Programmatically manage PiCore players

2021-11-08 Thread squeezebox153


RobbH wrote: 
> I think you are referring to something that's usually called
> synchronizing players. You have several players playing the same thing
> and all of them can be controlled at the same time from any of the
> synchronized players. Is that correct?.

One player to manage the other players and be synchronized. 

kidstypike wrote: 
> Have you got more than one instance of LMS running?
> 
> You only need one instance of LMS on your network.

I have an instance of LMS on each of my picore players as I want to have
individual playing ability and synchronized.



squeezebox153's Profile: http://forums.slimdevices.com/member.php?userid=72012
View this thread: http://forums.slimdevices.com/showthread.php?t=115380

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Programmatically manage PiCore players

2021-11-08 Thread kidstypike


squeezebox153 wrote: 
> Sorry for not being clear. In LMS, when I go to Manage Players, I am
> able to move players from my secondary players to my primary one. This
> configuration is lost in a reboot.
> 
> https://imgur.com/a/0zWZ2Pi

Have you got more than one instance of LMS running?

You only need one instance of LMS on your network.



*Server - LMS 8.3.0 *Pi4B 4GB/Argon one case/pCP 8.0.0 - 75K library,
playlists & LMS cache on SSD (ntfs)
*Study -* Pi4/pCP 8.0.0/Topping E30 DAC/Ruark MR1 Mk2
*Lounge* - Pi2/pCP 8.0.0 > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5
*Dining Room* - Pi3B/pCP/Bluetooth/Echo Show 8
*Garage* - DAC32 > Edifier speakers

*Spares* - 2xTouch, 1xSB Radio. 1xSB3, 6xRPi

kidstypike's Profile: http://forums.slimdevices.com/member.php?userid=10436
View this thread: http://forums.slimdevices.com/showthread.php?t=115380

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Programmatically manage PiCore players

2021-11-07 Thread RobbH


squeezebox153 wrote: 
> Sorry for not being clear. In LMS, when I go to Manage Players, I am
> able to move players from my secondary players to my primary one. This
> configuration is lost in a reboot.
> 
> https://imgur.com/a/0zWZ2Pi

I think you are referring to something that's usually called
synchronizing players. You have several players playing the same thing
and all of them can be controlled at the same time from any of the
synchronized players. Is that correct?

This can be done with drag-and-drop in Material skin, as in your
screenshot. I do not know of a way to save a configuration made this
way, but perhaps someone who knows more will correct me. If you have a
group of synchronized players you want to use frequently, the best way I
know of to do that, without having to create the group every time, is to
install the Group Players plugin, which should be available in the 3rd
Party Plugins section on the Plugins page under settings. I usually
prefer to manage plugins in the default skin, but I think it can be done
in Material, too.

The Group Players plugin will make it possible for you to create one or
more Group Players, which will then appear in the drop-down list of
players. Each Group Player will be two or more individual players
synchronized together.



LMS 8 nightly running on Raspberry Pi OS. Mostly virtual players,
occasionally with SB Radio, Boom or Classic.

RobbH's Profile: http://forums.slimdevices.com/member.php?userid=67008
View this thread: http://forums.slimdevices.com/showthread.php?t=115380

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Programmatically manage PiCore players

2021-11-07 Thread squeezebox153


Sorry for not being clear. In LMS, when I go to Manage Players, I am
able to move players from my secondary players to my primary one. This
configuration is lost in a reboot.

https://imgur.com/a/0zWZ2Pi



squeezebox153's Profile: http://forums.slimdevices.com/member.php?userid=72012
View this thread: http://forums.slimdevices.com/showthread.php?t=115380

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Programmatically manage PiCore players

2021-11-06 Thread Michael Herger

I have 3 picore's and each one reboots nightly. I have my primary picore
managing the other two, but after a reboot, this association is lost. Is
there a way to programmatically re-associate them after reboot instead
of having to manually do it?


Please elaborate a bit what "managing" means in this context. And what 
kind of association this uses.

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


[SlimDevices: Unix] Programmatically manage PiCore players

2021-11-06 Thread squeezebox153


I have 3 picore's and each one reboots nightly. I have my primary picore
managing the other two, but after a reboot, this association is lost. Is
there a way to programmatically re-associate them after reboot instead
of having to manually do it?



squeezebox153's Profile: http://forums.slimdevices.com/member.php?userid=72012
View this thread: http://forums.slimdevices.com/showthread.php?t=115380

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix