Re: [SlimDevices: Unix] PCP 8.2.0 on Pi4: very slow access to LMS tab

2022-11-17 Thread Michael Herger

No m3u.txt jpg or other files except a few albums with Pdfs with Kids
Albums lyrics.
No playlists either.
So, no more than 3 directories depth


Please try to run the command provided. The three levels are down from 
the pCP's point of view.

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


Re: [SlimDevices: Unix] LInux client (controller) currently maintained

2022-11-17 Thread RobbH


brainchild wrote: 
> Perhaps my enthusiasm about expressing a solution I considered as an
> ideal, and one which I think others might also share in principle,
> whether or not having considered it, appeared as a demand or rejection.

Thank you. That may have contributed to our misunderstanding, but by
then I had already failed to understand what you were trying to achieve,
and I had filled in the blanks in my understanding with my own
assumptions.

Sometimes it is necessary to make inferences, because some people do not
have a background that has prepared them to make the necessary
observations or the vocabulary needed to report them. I have been in
that role, and probably will be again, and resolving my issues depended
on finding someone who was able to "read between the lines" and infer
what I needed to say but was incapable of saying.

But that approach made for a misguided and unhelpful response to you.
What was needed was simply to read what you wrote and refrain from
inferring anything. This exchange has been a good reminder that that
should always be an option.

I did think I was trying to be neutral and non-judgmental in my replies
to you, but I see now that I did not try hard enough. Anyone whose
inference engine is running will notice unstated implications in my
words. So I would like to state openly and for the record that it is a
perfectly valid option to prefer properly packaged software to manual
installations.

Fortunately, I am not one of the most knowledgeable people here, so some
people who actually know their way around are providing what you need. I
don't think I was exactly wrong when I told you that what you wanted (if
I understood it by then) was unlikely. But Craig (cpd730) has shown
again why he is one of the heroes of this community, and if I have
finally arrived at an understanding of your needs, I think it is very
likely that you will be happy with the results.

All the best



Usually running latest beta LMS nightly on Raspberry Pi OS with virtual
players (Squeezelite and Airplay bridge). Occasionally using 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=116934

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


Re: [SlimDevices: Unix] PCP 8.2.0 on Pi4: very slow access to LMS tab

2022-11-17 Thread MAAC


My music is organized like this:

Root\Tagged files\Index Letter A,B,C ...Z
Root\Untagged Files\Few Index letters

Inside Index Letter

Artist - Album\01 - Title (single artists)
Album\Artist - Title (compilations)

No m3u.txt jpg or other files except a few albums with Pdfs with Kids
Albums lyrics.
No playlists either.
So, no more than 3 directories depth



MAAC's Profile: http://forums.slimdevices.com/member.php?userid=73036
View this thread: http://forums.slimdevices.com/showthread.php?t=116837

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


Re: [SlimDevices: Unix] PCP 8.2.0 on Pi4: very slow access to LMS tab

2022-11-17 Thread Greg Erskine


mherger wrote: 
> Skimming lms.cgi (takes 5s+ here) I'm seeing this candidate:
> 
> > 
Code:

  >   > # logic to activate/inactivate buttons depending upon whether LMS cache 
is present or not
  > TMP=$(find /mnt -type d -maxdepth 3 | grep slimserver/Cache)
  > 

> > 
> 
> If you've mounted a (slow) external drive, or a share over a slow
> connection (wifi) this might take a while. Even more so if you have
> many folders at the top level of that mount. In my case find is
> listing all artist folders from /mnt/music. And it takes a few seconds
> on a "cold" system (quicker when repeated).
> 
> I have two systems with identical collection (541 folders in the top
> level), both connecting to a NAS using NFS:
> >   >   > 
  - Pi3B+, pCP, mounting a Synology DS218j: 2-3s. 
  - Pi4/2GB, Raspbian, mounting a DS1517+: <1s. 
  > > > 

What he said. If you have a big, flat, slow directory structure it might
take some time.

Can you try just:


Code:

find /mnt -type d -maxdepth 3 



In the piCorePlayer Documentation there are instructions to "'Access
piCorePlayer via ssh'
(https://docs.picoreplayer.org/how-to/access_pcp_via_ssh/)".



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

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


Re: [SlimDevices: Unix] PCP 8.2.0 on Pi4: very slow access to LMS tab

2022-11-17 Thread MAAC


Would like to try but my problem is I'm a Windows user, and don't know
nothing about Linux scripts.
When I try to change files I get those permission messages errors.



MAAC's Profile: http://forums.slimdevices.com/member.php?userid=73036
View this thread: http://forums.slimdevices.com/showthread.php?t=116837

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


Re: [SlimDevices: Unix] LInux client (controller) currently maintained

2022-11-17 Thread brainchild


cpd73 wrote: 
> What makes you think Electron is any more generic than Qt? 

It's fine. I wasn't being critical. I think I probably have tied Qt more
closely than is accurate to KDE, due to a historical association.



brainchild's Profile: http://forums.slimdevices.com/member.php?userid=73088
View this thread: http://forums.slimdevices.com/showthread.php?t=116934

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


Re: [SlimDevices: Unix] LInux client (controller) currently maintained

2022-11-17 Thread cpd73


brainchild wrote: 
> May I ask why you chose to use a solution based on Qt, instead of a more
> generic one, such as a direct use of Electron?

What makes you think Electron is any more generic than Qt? Qt runs on
Linux, Windows, macOS, Android, iOS, and more. Electron, AFAIK, is more
about packaging the web-app to run offline - so it has the JS, etc, code
bundled with the app. But LMS is always required, therefore makes more
sense (and easier to update) if Material itself is on the server, and
the app is just used to render it.

Plus, I have plenty of Qt experience (I wrote the Cantata Qt MPD
controller), and no Electron experience.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=116934

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


Re: [SlimDevices: Unix] Announce: piCorePlayer 8.0.0

2022-11-17 Thread Man in a van

themicksa wrote: 
> Sorry to be so long in replying (Time Machine and Ventura...hmm. There's
> 3 days of my life I'll not be getting back.) 
> 
> Anyway I finally got round to adding that overlay code to the config.txt
> file and that seemed to do the trick. All up and running now. 
> 
> If I can ask one last daft question: I've put this pi together for use
> in my daughter's flat. Is setting it up as it's running now simply a
> matter of changing wifi details, or are there other things need
> adjusting? I tried something similar at a friend's place the other week
> and couldn't get the playerÂa DAC32 that had been connecting
> happily by wifi at homeÂto connect to the pi. Perhaps it  was
> something on friend's router, but I ran out of time to check. Not a big
> deal, but wonder if I'm overlooking something.
> 
> Thanks your ongoing generous help.

I would 

a) Connect with Ethernet and enter the required wifi details either
before you go to the flat or when you are at the flat, whichever is
easier.

b) Burn a copy of a working configuration to another SD card and check
that it works, take it with you as insurance and if all goes well, leave
it at the flat as a backup, or make a copy at the flat and check before
you leave. Remember a SD card reader :)

ronnie



Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627
View this thread: http://forums.slimdevices.com/showthread.php?t=114828

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


Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2022-11-17 Thread kitus


Greg Erskine wrote: 
> I have noted this.
> 
> Unfortunately it is not as simple as one expects. If we include the code
> we then become responsible for it, and there are also copyright
> obligations.

Understood. Thanks for clarifying this.



kitus's Profile: http://forums.slimdevices.com/member.php?userid=73121
View this thread: http://forums.slimdevices.com/showthread.php?t=113661

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


Re: [SlimDevices: Unix] LInux client (controller) currently maintained

2022-11-17 Thread brainchild


RobbH wrote: 
> Guilty as charged! I thought I had inferred what you wanted and found a
> way you might achieve that. My inference was wrong and I apologize.

Perhaps my enthusiasm about expressing a solution I considered as an
ideal, and one which I think others might also share in principle,
whether or not having considered it, appeared as a demand or rejection.



brainchild's Profile: http://forums.slimdevices.com/member.php?userid=73088
View this thread: http://forums.slimdevices.com/showthread.php?t=116934

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


Re: [SlimDevices: Unix] LInux client (controller) currently maintained

2022-11-17 Thread brainchild


cpd73 wrote: 
> The "qwebappwrapper" is working (barring any bugs), and you can (and I
> already do) use this to access LMS. The newer app takes this one step
> further, makes it LMS specific, and adds features such as auto-discover
> of LMS and MPRIS (so that player controls, etc, are shown in Plasma's
> taskbar or GNOME's central status menu). This newer app is not 100%
> ready - it depends on an unrealeased material version.

May I ask why you chose to use a solution based on Qt, instead of a more
generic one, such as a direct use of Electron?



brainchild's Profile: http://forums.slimdevices.com/member.php?userid=73088
View this thread: http://forums.slimdevices.com/showthread.php?t=116934

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


Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2022-11-17 Thread Greg Erskine


kitus wrote: 
> Hello uudruid74! I can confirm this works like a charm. I'm now a happy
> camper. Thank you!!!
> 
> To my opinion, this should be part of pCP core. Does anybody know how i
> one can officially propose this?

I have noted this.

Unfortunately it is not as simple as one expects. If we include the code
we then become responsible for it, and there are also copyright
obligations.

I think the best solution is to add a page to the piCorePlayer
Documentation with a simple install procedure/script once we have
uudruid74 permission.



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

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


Re: [SlimDevices: Unix] Announce: piCorePlayer 8.0.0

2022-11-17 Thread themicksa

Man in a van wrote: 
> It says in the blurb to use Allo-Boss in the dropdown
> 
> I don't have the  dac hat but Allo Boss DAC (and MiniBoss) in the pCP
> Audio output device settings selects the correct overlay
> 
> 39105
> 
> ronnie

Sorry to be so long in replying (Time Machine and Ventura...hmm. There's
3 days of my life I'll not be getting back.) 

Anyway I finally got round to adding that overlay code to the config.txt
file and that seemed to do the trick. All up and running now. 

If I can ask one last daft question: I've put this pi together for use
in my daughter's flat. Is setting it up as it's running now simply a
matter of changing wifi details, or are there other things need
adjusting? I tried something similar at a friend's place the other week
and couldn't get the player—a DAC32 that had been connecting happily by
wifi at home—to connect to the pi. Perhaps it  was something on
friend's router, but I ran out of time to check. Not a big deal, but
wonder if I'm overlooking something.

Thanks your ongoing generous help.



themicksa's Profile: http://forums.slimdevices.com/member.php?userid=40582
View this thread: http://forums.slimdevices.com/showthread.php?t=114828

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


Re: [SlimDevices: Unix] Announce: piCorePlayer 8.0.0

2022-11-17 Thread godzini...@gmail.com


Hello, quick question. I am looking for a way to make my RPI3B+ a
squeezelite, shaiport and bluetooth client (only) using piCorePlayer and
headphones output (for now). Squeezelite and Shairport-sync are working
like a charm (I have an other device in my network working as a LMS
server and music database, and the iTunes from Windows device) but I am
not sure how to set the built-in bluetooth receiver to play music from
connected phone (using best possible codec) to the built-in headphones
output. Is it possible?



godzini...@gmail.com's Profile: 
http://forums.slimdevices.com/member.php?userid=72522
View this thread: http://forums.slimdevices.com/showthread.php?t=114828

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


Re: [SlimDevices: Unix] PCP 8.2.0 on Pi4: very slow access to LMS tab

2022-11-17 Thread Paul Webster


Why not try a a change to that file and see if it speeds things up for
you?



Paul Webster
author of \"now playing\" plugins covering radio france (fip etc),
planetradio (bauer - kiss, absolute, scala, jazzfm etc), kcrw, abc
australia and cbc/radio-canada
and, via the extra \"radio now playing\" plugin lots more - see
https://forums.slimdevices.com/showthread.php?115201-announce-radio-now-playing-plugin

Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105
View this thread: http://forums.slimdevices.com/showthread.php?t=116837

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


Re: [SlimDevices: Unix] PCP 8.2.0 on Pi4: very slow access to LMS tab

2022-11-17 Thread MAAC


... but the cache location is configured on the LMS configuration
page...
Script has only to read the config file not scanning all folders. That's
my point of view.



MAAC's Profile: http://forums.slimdevices.com/member.php?userid=73036
View this thread: http://forums.slimdevices.com/showthread.php?t=116837

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


Re: [SlimDevices: Unix] LInux client (controller) currently maintained

2022-11-17 Thread cpd73


brainchild wrote: 
> Yes. Thank you. I think my original impression was that a working
> version was still forthcoming. If there is, in a sense, a phase that is
> already working, perhaps it would help to explain the difference between
> it and the part still under development.

The "qwebappwrapper" is working (barring any bugs), and you can (and I
already do) use this to access LMS. The newer app takes this one step
further, makes it LMS specific, and adds features such as auto-discover
of LMS and MPRIS (so that player controls, etc, are shown in Plasma's
taskbar or GNOME's central status menu). This newer app is not 100%
ready - it depends on an unrealeased material version.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.

cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=116934

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


Re: [SlimDevices: Unix] LInux client (controller) currently maintained

2022-11-17 Thread brainchild


cpd73 wrote: 
> As previously stated I have already written a Qt-based wrapper - this
> was to allow any page to be installed as a web-app. Now grated this
> means creating a .desktop file, but that is fairly easy (and an example
> LMS .desktop file is provided). Although not Electron based specificaly,
> it does use the same chromium engine as Electron - just wraped in the Qt
> toolkit..

Yes. Thank you. I think my original impression was that a working
version was still forthcoming. If there is, in a sense, a phase that is
already working, perhaps it would help to explain the difference between
it and the part still under development.



brainchild's Profile: http://forums.slimdevices.com/member.php?userid=73088
View this thread: http://forums.slimdevices.com/showthread.php?t=116934

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