Re: [SlimDevices: SqueezeCenter] Player library views and random mix preferences interaction?

2021-02-08 Thread Jaca


Thank you, I will try on raspberry pi when get chance. Cheers!



3x Squeezebox Touch, 4x Squeezebox Radio, Squeezelite (RPi 3B with
HiFiBerry DAC+Pro on OSMC), Material Skin Apk, Squeeze Commander,
Logitech Media Server Version: 8.2.0 with Material Skin (Docker in
DS218+)

Jaca's Profile: http://forums.slimdevices.com/member.php?userid=58187
View this thread: http://forums.slimdevices.com/showthread.php?t=113861

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


Re: [SlimDevices: SqueezeCenter] Player library views and random mix preferences interaction?

2021-02-07 Thread epoch1970

I remember seeing a python utility and browsing the 1/3-party software
sub forum I discovered one written in Go. I can’t tell you more I’m
afraid.

These utilities would all use the server’s CLI on port 9090 I assume. So
the server could be installed as a container or on a host just as well.
However, unless you’re comfortable working with containers I don’t see
the advantage compared to using an inexpensive and dedicated platform
like a Pi.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=113861

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


Re: [SlimDevices: SqueezeCenter] Player library views and random mix preferences interaction?

2021-02-07 Thread Jaca

epoch1970 wrote: 
> I use squeezy, a Perl front end for the LMS CLI. It works fine for me
> and it has a concept of player groups, or classes if you prefer, so you
> can address a group of players in one go, e.g. squeezy —group 1 —power ?
> (approximate syntax)
> I use this to reset players groups in the server every morning. The
> squeezy groups definitions serve as baseline and the LMS sync groups are
> players found alive among the squeezy groups.
> 
> I have rolled the squeezy calls into a truly abominable bash (what was I
> thinking!) script which gets called via cron. For some rare calls I use
> netcat to communicate with the CLI, if I wasn’t lazy I would have had
> extended squeezy itself and added some macros.
> 
> There are other utilities similar to squeezy.
> 
> Edit. squeezy announce post is 'here'
> (https://forums.slimdevices.com/showthread.php?87636-squeezy-a-command-line-wrapper-around-the-squeezeserver-telnet-CLI)Thanks
>  for that.. Had a look at usage and installation instructions..
Bit of black magic too me atm.. I may eventually figure it out if I
scratch my head long enough [emoji23]

Would I be better off trying to run I. On raspberry pi or maybe on my
NAS in docker  maybe? What would you recommend..?

You did mention there are other similar solutions..any particular one?
I'm really only looking for basic schedule option for morning SB Radios
so don't have to relly on build in alarm.. 

Saying that some of squeezy usage examples like auto sleep at night
sound tempting ;p
Thanks



3x Squeezebox Touch, 4x Squeezebox Radio, Squeezelite (RPi 3B with
HiFiBerry DAC+Pro on OSMC), Material Skin Apk, Squeeze Commander,
Logitech Media Server Version: 8.2.0 with Material Skin (Docker in
DS218+)

Jaca's Profile: http://forums.slimdevices.com/member.php?userid=58187
View this thread: http://forums.slimdevices.com/showthread.php?t=113861

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


Re: [SlimDevices: SqueezeCenter] Player library views and random mix preferences interaction?

2021-02-07 Thread epoch1970

Jaca wrote: 
> Nice, Michael is the man [emoji106].
> Out of interest what are you using to send commands to Lms, CLI?

I use squeezy, a Perl front end for the LMS CLI. It works fine for me
and it has a concept of player groups, or classes if you prefer, so you
can address a group of players in one go, e.g. squeezy —group 1 —power ?
(approximate syntax)
I use this to reset players groups in the server every morning. The
squeezy groups definitions serve as baseline and the LMS groups are
players found alive among the squeezy groups.

I have rolled the squeezy calls into a truly abominable bash (what was I
thinking!) script which gets called via cron. For some rare calls I use
netcat to communicate with the CLI, if I wasn’t lazy I would have had
extended squeezy itself and add some macros.

There are other utilities similar to squeezy.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=113861

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


Re: [SlimDevices: SqueezeCenter] Player library views and random mix preferences interaction?

2021-02-07 Thread Jaca


epoch1970 wrote: 
> Michael not only clarified but he 'fixed the problem'
> (https://github.com/Logitech/slimserver/commit/d317f804d6972c3454eb4d9d98203937d1a3d158).
> Now your preference in the Random Mix page overrides the virtual library
> the player might be using.
> Yay no more empty random playlists!
> Much appreciated, thanks.Nice, Michael is the man [emoji106].
Out of interest what are you using to send commands to Lms, CLI? It's
been years since last time I tried to do some automation and it could be
now useful with buggy Radio alarm clock (when in stereo pair) is there
anywhere list of available commands? How to best approach it? I was
thinking of tasker or similar on android but also have RPi running 24/7
which would probably be better.. Thanks



3x Squeezebox Touch, 4x Squeezebox Radio, Squeezelite (RPi 3B with
HiFiBerry DAC+Pro on OSMC), Material Skin Apk, Squeeze Commander,
Logitech Media Server Version: 8.2.0 with Material Skin (Docker in
DS218+)

Jaca's Profile: http://forums.slimdevices.com/member.php?userid=58187
View this thread: http://forums.slimdevices.com/showthread.php?t=113861

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


Re: [SlimDevices: SqueezeCenter] Player library views and random mix preferences interaction?

2021-02-07 Thread epoch1970

Jaca wrote: 
> Yeah I agree, tagging would be least preferable solution. I hope someone
> can clarify what's going on wrong with library views so you don't have
> to use another LMS instance.

Michael not only clarified but he 'fixed the problem'
(https://github.com/Logitech/slimserver/commit/d317f804d6972c3454eb4d9d98203937d1a3d158).
Now your preference in the Random Mix page overrides the virtual library
the player might be in.
Yay no more empty random playlists!
Much appreciated, thanks.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=113861

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


Re: [SlimDevices: SqueezeCenter] Player library views and random mix preferences interaction?

2021-02-06 Thread Jaca


Yeah I agree, tagging would be least preferable solution. I hope someone
can clarify what's going on wrong with library views so you don't have
to use another LMS instance.



3x Squeezebox Touch, 4x Squeezebox Radio, Squeezelite (RPi 3B with
HiFiBerry DAC+Pro on OSMC), Material Skin Apk, Squeeze Commander,
Logitech Media Server Version: 8.2.0 with Material Skin (Docker in
DS218+)

Jaca's Profile: http://forums.slimdevices.com/member.php?userid=58187
View this thread: http://forums.slimdevices.com/showthread.php?t=113861

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


Re: [SlimDevices: SqueezeCenter] Player library views and random mix preferences interaction?

2021-02-06 Thread epoch1970

The employees take care of their shop and their customers. There is an
audio ambiance in the store, it’s only logic that employees can interact
with what’s playing.
Skipping a song or pausing music isn’t quite enough. Some customers have
a taste in music and sometimes have asked to listen to a particular song
or artist... Not often, but it happened.

I was asked to make a system that worked consistently. Not exposing the
web interface would have been easy, but it’s never been an option to
impose on the team one more system they have no control over. They have
the right to control, and it has to be robust.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=113861

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


Re: [SlimDevices: SqueezeCenter] Player library views and random mix preferences interaction?

2021-02-06 Thread Jaca

epoch1970 wrote: 
>  
> .. 
> - During the day a shop assistant may use the web interface and make
> manual selections. My automaton derails if Random mix was set to use a
> virtual lib in particular.
> 
> . 
> 
> But during the day people may want to use the web interface (actually
> they do, that’s why the problem has emerged). 
> 

When you say they make manual selection.. Do you mean they are allowed
to clear random mix playlist and add theirs selected album / song/
playlist ?
Or they can only skip or choose different song from your generated 
playlist?

If former then it seems user vs machine (programmer) problem and I don't
know why library view would make a difference..
I think don't quite understand.. You would have to stop them somehow to
mess everything up [emoji23].. Or train proper use.. 

If it really is library views which you believe causes problem then you
could also segregate music with basic tags.. You can have multiple genre
tags with separator of your choice, so basically you could add genre tag
"safe" which would be used in 10am random mix.. This in scenario with
one main library maybe could work.? . I don't know.. Just thinking at
loud .



3x Squeezebox Touch, 4x Squeezebox Radio, Squeezelite (RPi 3B with
HiFiBerry DAC+Pro on OSMC), Material Skin Apk, Squeeze Commander,
Logitech Media Server Version: 8.2.0 with Material Skin (Docker in
DS218+)

Jaca's Profile: http://forums.slimdevices.com/member.php?userid=58187
View this thread: http://forums.slimdevices.com/showthread.php?t=113861

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


Re: [SlimDevices: SqueezeCenter] Player library views and random mix preferences interaction?

2021-02-06 Thread epoch1970

Ok, the real scenario is this: 
- A shop with multiple players and multiple shop assistants 
- Big library and Pi3 server, USB drive, HFS+ filesystem (dont
ask) in the office. Scans and searches take a while.
- The big library has 3 top folders, 2 virtual libs are created off 2
of these.
- Morning at 7AM employees start coming in. A script fires. It finds
available players, creates a sync group, sets the group leader to
virtual lib 1, make it play random songs
- Morning at 10AM customers start coming in. A script fires, puts
players to sleep, re-does same as above but over a much safer library 2.
- Evening 8PM the shop closes down. A script fires to put players to
sleep.
- Next morning 5AM, run a routine DB scan to get ready for the next
day.
- During the day a shop assistant may use the web interface and make
manual selections. My automaton derails if Random mix was set to use a
virtual lib in particular.

Back to your suggestion, I could perhaps at night after the rescan
create 2 huge playlists. IÂm not sure how IÂd do that
programmatically.
But during the day people may want to use the web interface (actually
they do, thatÂs why the problem has emerged). 
A library view is much superior to a playlist for my scenario, in that
you can interact with whatÂs playing the way you want via the web
interface, only youÂre in a sandbox. Playlists are much more
static.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=113861

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


Re: [SlimDevices: SqueezeCenter] Player library views and random mix preferences interaction?

2021-02-06 Thread Jaca


Don't shoot me.. Just brain storming workaround not proper solution.. :)

How about: (if you libraries are not mega massive) 
-remove playlist limit
-add all songs from a Alice library
-save as playlist Alice
-play with cron at time of choice and shuffle enable playlist Alice

Once a while recreate playlist to include new songs or just add to
playlist

Like I said not proper solution but possibly workaround?



3x Squeezebox Touch, 4x Squeezebox Radio, Squeezelite (RPi 3B with
HiFiBerry DAC+Pro on OSMC), Material Skin Apk, Squeeze Commander,
Logitech Media Server Version: 8.2.0 with Material Skin (Docker in
DS218+)

Jaca's Profile: http://forums.slimdevices.com/member.php?userid=58187
View this thread: http://forums.slimdevices.com/showthread.php?t=113861

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


Re: [SlimDevices: SqueezeCenter] Player library views and random mix preferences interaction?

2021-02-06 Thread epoch1970

Jaca wrote: 
> Maybe you could create library view containing songs from your 2 library
> views and just use that new view in random mix?
> Hmm I still feel I don't quite understand your goal :/

Yes youre getting closer :) thats what my script does:
pick a player, set it to a library view and start random play.
Alices player plays a random list of Alices songs, and
same for Bob.
Only that no longer works for Alice when someone fiddles with the random
mix settings through the web interface and locks it to pick songs from
the Songs for Bob library view. And conversely.
The only way everybody stays happy is to set random mix to select from
the entire database it seems. 

I dont know how to lock that pref, nor how to undo it via the
CLI. 
I dont understand the scope of this pref exists in the web
interface. 
TBH I think this is a bug.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=113861

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


Re: [SlimDevices: SqueezeCenter] Player library views and random mix preferences interaction?

2021-02-05 Thread Jaca


OK sorry I get it now.. You want all on schedule / automation.. I don't
know My bad [emoji23]



3x Squeezebox Touch, 4x Squeezebox Radio, Squeezelite (RPi 3B with
HiFiBerry DAC+Pro on OSMC), Material Skin Apk, Squeeze Commander,
Logitech Media Server Version: 8.2.0 with Material Skin (Docker in
DS218+)

Jaca's Profile: http://forums.slimdevices.com/member.php?userid=58187
View this thread: http://forums.slimdevices.com/showthread.php?t=113861

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


Re: [SlimDevices: SqueezeCenter] Player library views and random mix preferences interaction?

2021-02-05 Thread Jaca


Maybe you could create library view containing songs from your 2 library
views and just use that new view in random mix?
Hmm I still feel I don't quite understand your goal :/



3x Squeezebox Touch, 4x Squeezebox Radio, Squeezelite (RPi 3B with
HiFiBerry DAC+Pro on OSMC), Material Skin Apk, Squeeze Commander,
Logitech Media Server Version: 8.2.0 with Material Skin (Docker in
DS218+)

Jaca's Profile: http://forums.slimdevices.com/member.php?userid=58187
View this thread: http://forums.slimdevices.com/showthread.php?t=113861

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


Re: [SlimDevices: SqueezeCenter] Player library views and random mix preferences interaction?

2021-02-05 Thread Jaca


Sorry, I'm not sure what you are trying to achieve but it sounds over
complicated.
I do use both  library views and random mix with material skin inferface
and apk and it gives you option to select genres from library View of
your choice..
I don't think I ever tried or even know how to add other library view
random mix songs to another view random mix playlist.. Hmm is that what
you are trying to achieve?



3x Squeezebox Touch, 4x Squeezebox Radio, Squeezelite (RPi 3B with
HiFiBerry DAC+Pro on OSMC), Material Skin Apk, Squeeze Commander,
Logitech Media Server Version: 8.2.0 with Material Skin (Docker in
DS218+)

Jaca's Profile: http://forums.slimdevices.com/member.php?userid=58187
View this thread: http://forums.slimdevices.com/showthread.php?t=113861

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


[SlimDevices: SqueezeCenter] Player library views and random mix preferences interaction?

2021-02-05 Thread epoch1970

I have a question related to player library views and random mix
preferences.

My library is organised in multiple top folders, e.g. /music/alice,
/music/bob
I am using library views, created by saving advanced searches on each
library directories, e.g. 'Songs for Alice', 'Songs for Bob'

I use cron jobs that set players to get songs from either the default
(real) library or one of the library views, clears the current playlist,
then loads 'playlist add randomplay://tracks'. This is done
programmatically, mostly with squeezy.

The problem arises when a player is set, e.g. to pick from library view
'Bob', and at some time someone set, via the web interface, random mix
selections to operate on library view 'Alice'. In this case, 'playlist
add randomplay://tracks' returns empty.

'playlist add randomplay://tracks' will only return correct and
non-empty if random songs are set to be picked from the real library, or
from the same virtual library as the one the player is set to use.
I'm seeing this on a slightly seasoned LMS 7.9 arm build, but also on
Logitech Media Server Version: 8.1.1 - 1610364019 @ Thu Jan 14 06:23:13
CET 2021 (i686)

Questions:

- I'm unclear if the random mix preference is system-wide, tied to a
  player or tied to the web client used to set the pref. Can someone
  clarify?
- Is there a way for my players to get correct random playlist results
  regardless of that preference? In other words, is using 'playlist add
  randomplay://tracks' a bad idea? Or is there a CLI command that my
  cron job could fire to ensure random songs will be picked from the
  default database, at least for the initial elements of the random
  playlist?
  

Thanks in advance!



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=113861

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