User avatar
thagrol
Posts: 1485
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: Pi car music player advice

Wed Jan 09, 2019 10:27 pm

Just do it from your client. Those command run at startup only. Any subsequent commands from mpc or any other mpd client will override them.

You'd only need to login and edit the script if you wanted different startup behaviour.

Note that with a read only filesystem mpd won't be able to save its state file so it won't resume where it left off even if you remove the startup commands.
Note to self: don't feed the trolls

If I've asked you a question, please answer it. I'm unlikely to be able to help without that information.

rivethead
Posts: 18
Joined: Fri Nov 30, 2018 6:54 pm

Re: Pi car music player advice

Thu Jan 10, 2019 4:01 pm

thagrol wrote:
Wed Jan 09, 2019 10:27 pm
Just do it from your client. Those command run at startup only. Any subsequent commands from mpc or any other mpd client will override them.

You'd only need to login and edit the script if you wanted different startup behaviour.

Note that with a read only filesystem mpd won't be able to save its state file so it won't resume where it left off even if you remove the startup commands.
I don't see any options to do that with the mpdroid client, maybe there's another one that does. Or I just haven't found out how yet.
I don't need it to resume where I left off as long as I can change it through the client. I like the default setting of random play on startup but would like to be able to change it to play an album in sequence when desired.

So far it's a great little player!

User avatar
thagrol
Posts: 1485
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: Pi car music player advice

Thu Jan 10, 2019 5:00 pm

rivethead wrote:
Thu Jan 10, 2019 4:01 pm
I don't see any options to do that with the mpdroid client, maybe there's another one that does. Or I just haven't found out how yet.
I don't need it to resume where I left off as long as I can change it through the client. I like the default setting of random play on startup but would like to be able to change it to play an album in sequence when desired.
I'm not familiar witt mpdroid so can't give precise instructions but it should be something like this:
  • Clear current queue/playlist
  • Switch off repeat
  • Switch off random/shuffle
  • Add album to playlist
  • Hit play
It's not something I'd recommend doing whilst driving, have a passenger do it or do it before moving off. With the engine running otherwise you'll lose it when starting - most cars cut power to the accessory feed when running the starter motor.
So far it's a great little player!
:)
Note to self: don't feed the trolls

If I've asked you a question, please answer it. I'm unlikely to be able to help without that information.

rivethead
Posts: 18
Joined: Fri Nov 30, 2018 6:54 pm

Re: Pi car music player advice

Mon Jun 24, 2019 4:44 am

Hi Guys,

I've continued to experiment with the pi zero as a music player. I'm struggling with making it Read-only so I don't have to wory as much about hard shutdowns. I always lose contact with the access point right after I run the commands for making the system read-only. Any ideas on what I might need to do to make a remote controlled pi creating an access point but continue to access once the switch is made?

User avatar
thagrol
Posts: 1485
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: Pi car music player advice

Mon Jun 24, 2019 12:46 pm

Note to self: don't feed the trolls

If I've asked you a question, please answer it. I'm unlikely to be able to help without that information.

rivethead
Posts: 18
Joined: Fri Nov 30, 2018 6:54 pm

Re: Pi car music player advice

Tue Jun 25, 2019 1:26 am

thagrol wrote:
Mon Jun 24, 2019 12:46 pm
This worked for me: https://learn.adafruit.com/read-only-raspberry-pi
I tried this and answered no to all three options. When I reboot the AP disappears. I wonder what I'm doing wrong?

User avatar
thagrol
Posts: 1485
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: Pi car music player advice

Tue Jun 25, 2019 10:37 am

rivethead wrote:
Tue Jun 25, 2019 1:26 am
thagrol wrote:
Mon Jun 24, 2019 12:46 pm
This worked for me: https://learn.adafruit.com/read-only-raspberry-pi
I tried this and answered no to all three options. When I reboot the AP disappears. I wonder what I'm doing wrong?
Strange. Not sure what else to suggest. Sorry.
Note to self: don't feed the trolls

If I've asked you a question, please answer it. I'm unlikely to be able to help without that information.

rivethead
Posts: 18
Joined: Fri Nov 30, 2018 6:54 pm

Re: Pi car music player advice

Wed Jun 26, 2019 2:14 am

I guess the probllem I keep getting myself into is once I create the access point the pi no longer has internet access so I can't run the read-only-fs script because it's looking for an internet connection to update what it needs. If I run this while it still has an internet connection I assume I then wouldn't be able to update the files needed to create the access point again.

User avatar
thagrol
Posts: 1485
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: Pi car music player advice

Wed Jun 26, 2019 11:24 am

There's a couple of ways around that:
  1. Download the script before setting up the AP but don't run it until after doing so. IIRC the script itself doesn't need internet access to run.
  2. Run that script before setting up the AP then remount / read/write to setup the AP.This should do it:

    Code: Select all

    sudo mount -o remount,rw /
    It'll revert to read only at next boot or run this to switch back:

    Code: Select all

    sudo mount -o remount,ro /

The adafruit script needs to be run once, not on every boot.
Note to self: don't feed the trolls

If I've asked you a question, please answer it. I'm unlikely to be able to help without that information.

Return to “Media centres”