Re: [SlimDevices: Unix] picoreplayer without network

2018-08-06 Thread shaunm


Jeff07971 wrote: 
> Glad you have a solution that works for you !
> 
> You need a new plugin meter though !!
> 
> Jeff

Yeah, all sounds rather high doesn't it, there's a power-factor thing I
don't understand, but it's good to have a relative figure rather than an
absolute one! Ignorance (in this instance) for me is bliss!



shaunm's Profile: http://forums.slimdevices.com/member.php?userid=11987
View this thread: http://forums.slimdevices.com/showthread.php?t=107995

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


Re: [SlimDevices: Unix] picoreplayer without network

2018-08-06 Thread shaunm


paul- wrote: 
> You also need to make sure the nomysqueezebox option is turned on.

Thanks Paul, in LMS Settings, I have selected don't download updates and
don't search for updates and added 10.10.10.1 as safe IP addresses it
now works flawlessly.  I haven't tried the -nomysqueezebox tag it's
taken me ages to get to this point and so I'm thinking "if it ain't
broke don't fix it".  

I now can play my WMAL music collection of just under 24,000 songs,
converting to FLAC to my Squeezebox Classic, replacing
1. Wifi Router
2. Wifi Signal Booster (to get the wifi downstairs)
3. An old laptop running LMS
4. A 5.25" HDD
(total power 600W (according to my plugin meter)
1. Pi Zero W
2. 3.5" USB HDD
(total power 30W!)

Thanks to you and all involved for all your amazing work on this, and
your fast and comprehensive replies and finally your patience with all
our silly questions!

I'm now going to make a donation.



shaunm's Profile: http://forums.slimdevices.com/member.php?userid=11987
View this thread: http://forums.slimdevices.com/showthread.php?t=107995

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


Re: [SlimDevices: Unix] picoreplayer without network

2018-08-02 Thread shaunm


paul- wrote: 
> I would take a look at pCP 3.5.0 or the newly released 4.0.0 beta.  That
> will do a full AP Mode setup now, and for sure will run LMS with just
> the AP running.
> 
> The only catch is the original setup on a zero.  You really need to
> temporarily connect a USB ethernet device for initial configuration.

Hi Paul,

I am using a Pi ZeroW, so no problem there.  

Thanks for your reply about 3.5 (I started working with this back in
February which is why I was still on 3.2)

Are you aware of a problem with the library being shown as "empty" on
3.5?  I setup everything fine (fresh install from the download link you
provided above) made all settings as per 3.2, the library media scan
worked ok in that I can see on the :9000 page "1824 albums with 23738
songs by 743 artists.  However, the "My Music" folder is empty and when
I connect with my Squeezebox Classic it says the music library is
"empty".  I've rebooted twice and also re scanned the library.

I've searched the 3.5 thread and no-one else seems to be reporting the
issue, any idea what it could be?



shaunm's Profile: http://forums.slimdevices.com/member.php?userid=11987
View this thread: http://forums.slimdevices.com/showthread.php?t=107995

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


Re: [SlimDevices: Unix] picoreplayer without network

2018-07-29 Thread shaunm


Great work on this project, I'm having the following issue with standard
PiZeroW.  Do you have a link so I can donate?

paul- wrote: 
> if you edit the file /opt/bootlocal.sh.   Add the following lines AFTER
> the #pCPstop--  line
> 
> > 
Code:

  >   > 
  > ifconfig | grep -q Bcast
  > if [ $? -ne 0 ]; then
  > echo "Entering Wifi Ad-Hoc mode"
  > pkill udhcpd
  > 
  > [ ! -d /var/lib/misc ] && mkdir /var/lib/misc
  > touch /var/lib/misc/udhcpd.lease
  > 
  > cat << EOF > /etc/udhcpd.conf
  > interface wlan0
  > start 10.10.10.2
  > end 10.10.10.10
  > opt subnet 255.255.255.0
  > opt dns 10.10.10.1
  > opt router 10.10.10.1
  > EOF
  > 
  > ifconfig wlan0 down
  > iwconfig wlan0 mode ad-hoc
  > iwconfig wlan0 key 1234567ABC
  > iwconfig wlan0 channel 6 essid pCP
  > ifconfig wlan0 10.10.10.1 netmask 255.255.255.0 up
  > 
  > udhcpd
  > 
  > DONE=0
  > until [ $DONE -ne 0 ]; do
  > if [ "$(iwgetid -r)" != "pCP" ]; then
  > echo "New SSID Connected"
  > DONE=1
  > fi
  > ifconfig eth0 | grep -q Bcast
  > if [ $? -eq 0 ]; then
  > echo "eth0 is now up"
  > DONE=1
  > fi
  > sleep 5
  > done
  > pkill udhcpd
  > echo "Exiting"
  > fi
  > 

> > 
> 
> 

I've tried this script with PiCorePlayer 3.22 and a standard PiZeroW,
but it does the following:

On the terminal window, the adding the above code goes through the usual
boot process...

***NOTE 1*** Allowing the wlan0 to fail 3 times, then
Loading pcp-lms-functions... Done.
Waiting for soundacrds to populate. Done (1).
Starting ALSO configuration... Done.
Waiting for network No network found!
Done (42).
Starting Openssh server... Done.
Mounting USB Drives
***NOTE 2*** Starting LMS, this can take some time... No network
interface is UP.exiting 
Done.
Starting httpd web server... Done.
Finished piCorePlayer setup.
crond syncing time...
Entering Wifi Ad-Hoc mode
ifconfig eth0: eth0 error fetching interface information device not
found
ifconfig eth0: eth0 error fetching interface information device not
found
ifconfig eth0: eth0 error fetching interface information device not
found
ifconfig eth0: eth0 error fetching interface information device not
found
...(this message repeated every 5 seconds forever)

1. On my Windows PC, I can then connect to network "pCP", can access
"10.10.10.1" which gets me to the piCoreplayer screen and then I
manually start LMS and everything is okay.

2. 
***NOTE 1*** This wait is HUGE, and always of course fails when using
the ad-hoc network, so I have to do the manual start of LMS in the
sentence above.  I tried turning off "Autostart LMS" in the settings 
***Question 1*** I was looking for a config file to change the retries
from 3 to 1 using a -t flag. Is there a config file and it this
possible?

3. 
***NOTE 2*** This wait is HUGE, and always of course fails when using
the ad-hoc network, so I have to do the manual start of LMS in the
sentence above.  I tried turning off "Autostart LMS" in the settings to
avoid this wait but it then breaks LMS totally, as when I try the manual
start (when connected to a regular wifi or the ad-hoc one) it just
hangs.

4. 
***NOTE 2*** The ad-hoc network cannot be seen by all my android devices
(I was hoping to use my phone to manually switch the LMS on.
***Question 2***  Is there a way to start LMS in the script above before
it hits the "ifconfig eth0: eth0 error fetching interface information
device not found" loop?

Thanks again for all your hard work on this, and it you have a donate
link, let me know.



shaunm's Profile: http://forums.slimdevices.com/member.php?userid=11987
View this thread: http://forums.slimdevices.com/showthread.php?t=107995

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


Re: [SlimDevices: Unix] Announce: piCorePlayer 3.00

2018-02-23 Thread shaunm

Thanks for the replies.

I tried those instructions, but it didn't really work.  It does try to
play but with 60% juddering and hissing.

Should I have installed pcp-ffmpeg.tcz or ffmpeg.tcz ? 

Just to confirm, I am using a Squeezebox Classic, and only want to use
LMS on the Raspberry Pi (not the player)

Thanks in advance.



shaunm's Profile: http://forums.slimdevices.com/member.php?userid=11987
View this thread: http://forums.slimdevices.com/showthread.php?t=105997

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


Re: [SlimDevices: Unix] Announce: piCorePlayer 3.00

2018-02-21 Thread shaunm

paul- wrote: 
> Likely the filesystem is running out of space when downloading expat2.  
> Have you expanded your filesystem?

Hi Paul, thanks for the reply,  yes have expanded the filesystem:

FilesystemSize  Used Available Use% Mounted on
/dev/mmcblk0p2   14.3G182.4M 13.6G   1% /mnt/mmcblk0p2



shaunm's Profile: http://forums.slimdevices.com/member.php?userid=11987
View this thread: http://forums.slimdevices.com/showthread.php?t=105997

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


Re: [SlimDevices: Unix] Announce: piCorePlayer 3.00

2018-02-21 Thread shaunm

Thanks for awesome work on this project.

I am trying to use the PiCorePlayer as just a LMS with a Raspberry Pi
Zero W, which my Squeezebox classic connects to.
I've set everything else up perfectly and easily due to the great
instructions (thanks!) except playing wmal files.

1. LMS with Squeezebox

I've spent all day trying, I can play:

mp3
wav
mpeg-4
wma

BUT, cannot play 
wmal (wma lossless)

get this error:
Slim::Player::Song::open (409) Error: Couldn't create command line for
wmal playback for [file name]

Unfortunately 75% of music collection (27,000 songs) is wmal. 

I've read it's a windows codec for WMAL, so is it simply the case you
cannot play WMAL files in LMS?

2. Just to check, I tried the built-in Squeezelite player and it does
play WMAL all be it with juddering and hissing (hdmi out)

3. I don't know if this what I'm missing, but I tried to load the
extension ffmpeg.tcz but it failed with this message:
Downloading: expat2.tcz
Error on expat2.tcz

4. I loaded the extension ffmpeg-doc.tcz and restarted but didn't seem
to do anything.

An help would be appreciated.  All I'm looking to do is for LMS to work
with my Squeezebox Classic, playing WMAL files

Thanks in advance,



shaunm's Profile: http://forums.slimdevices.com/member.php?userid=11987
View this thread: http://forums.slimdevices.com/showthread.php?t=105997

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


Re: [SlimDevices: Unix] Raspbian 9 (stretch) and LMS 7.9.1, works

2018-02-10 Thread shaunm

Thank you so much for this, I've been trying to install LMS on a
Raspberry Pi Zero for the last 12 hours, trying several raspbian
packages but all failed miserably UNTIL I saw your instructions.

Went like a breeze with Rasbian Stretch and LMS v7.9.1 !

My setup is:
Raspberry Pi Zero (not Zero W)
Using as LMS Server only (I have a Squeezebox Classic)
Pi Zero is connected to 2.5" HDD via a USB hub (not a powered hub)
Pi Zero connected via Ethernet to my router (tomorrow I will be
unpluging it from the router and pluging it in directly to the
Squeezebox so it won't have to go through my router at all - completely
unattached to network, so unhackable)

dizzysnakepilot wrote: 
> 
> With an external USB drive, be aware LMS runs as user
> 'squeezeboxserver', and so won't by default be able to see the USB drive
> files in the "select the folder with your music' setup step. I'm not
> sure the best way to fix this (I chown'd them for the LMS user just for
> now) 
> 

Instead of having a LMS user and using chown, I have permanently mounted
a 2.5" HDD (yes, the Pi Zero has enough power from the USB port to run
it!) using the instructions below...

USB stick or HDD mounting

1.First create a usb directory under /mnt:

cd /mnt
sudo mkdir usb

2. Put some MP3’s on a USB stick (my audio files are .wma) and plug it
into the raspberry via the hub.

3. Now, find the uuid of the USB stick using the following command:

sudo blkid
This was my result:

/dev/mmcblk0: PTUUID="efa3f64e" PTTYPE="dos"
/dev/mmcblk0p1: SEC_TYPE="msdos" LABEL="boot" UUID="22E0-C711"
TYPE="vfat" PARTUUID="efa3f64e-01"
/dev/mmcblk0p2: UUID="202638e1-4ce4-45df-9a00-ad725c2537bb" TYPE="ext4"
PARTUUID="efa3f64e-02"
/dev/sda1: LABEL="Music" UUID="18C6F806C6F96502" TYPE="ntfs"
Search for the line that starts with “/dev/sda1“, that’s the USB stick.
Now copy the hex number thats behind “UUID=“, and also note the value
behind “TYPE=“.

4. Now edit this file:

sudo nano /etc/fstab

5. And add this line to the end of it:

UUID=copied_code /mnt/usb copied_type
defaults,nofail,dmask=000,fmask=111 0 2
And change “copied_code” and “copied_type” to the values taken from the
previous command. In my case it was: UUID=18C6F806C6F96502 /mnt/usb ntfs
defaults 0 2

6. Save the file and do a reboot:

sudo reboot

**
All credit goes to Gerrelt for these instructions which were pasted from
the excellent page at
http://www.gerrelt.nl/RaspberryPi/wordpress/tutorial-stand-alone-squeezebox-server-and-player-for-bbq/#Setup_the_LMS_server
(On this page, there are also instructions for installing a played on
the Pi as well if you need that, and also a WiFi connection to control
from a mobile phone)

Hope this helps someone.



shaunm's Profile: http://forums.slimdevices.com/member.php?userid=11987
View this thread: http://forums.slimdevices.com/showthread.php?t=108602

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