ljs12377 wrote: ↑Sun May 13, 2018 12:34 pm
fruitbox wrote: ↑Sun May 13, 2018 12:48 am
ljs12377 wrote: ↑Sat May 12, 2018 8:32 pm
Hi All. Sorry to drag this forum back to the beggining but im having real difficulty in getting the software up and running. I’m not too experienced with Raspberry Pi so i struggle a little bit. The problem i am having is i cannot find where my Mp3 files are i have put them on my sd card in a folder called Music then written the image to the sd card. I have got as far as trying to point the software where my files are but to no luck

. I have also done the same with a usb drive and i have no idea what to type in to the path so that the software finds my mp3s. Any help woukd be much appreciated thanks.
Hi
where have you put your MP3 files on your file system (i.e. path) and what is your MusicPath setting in the skin file (i.e. fruitbox.cfg you are using?)
Thats the problem. They were put on my sim card and i don’t know how to find the path which will locate them. They are in a folder labelled Music. The skin path file i have tried ../Music, ../music ../root/dev/Music and many others. I have wiped the sd card many times and started from scratch re-writing the image etc and also tried putting the files on a usb drive and an external hard drive. The problem is me! I’m a little inexperienced with Raspberry Pi any help or suggestions you could advise me with woukd be great
Thanks!
Good morning (at least in my part of the world),
Working with something new can be quite frustrating. I don't know what your skill level is with Linux, which is the OS that is running your Raspberry PI. So please forgive me if I cover something you already know.
If you're putting the music in a folder on the SD card before you actually are using the SD card to run the PI, then that folder is most likely inaccessible from the OS. To get the music to reside there, you would have to copy it from another source such as a USB flash drive while actually running the PI. Just like moving stuff from machine to machine in Windows. Doing the copy of the music from a flash drive from the PI desktop is relatively simple, but running Fruitbox from the desktop is not a good idea and in most cases does not work correctly. So you can use the desktop to do maintenance type stuff, but not for running Fruitbox.
If you are doing the copy from within the PI, then the Music directory is most likely /home/pi/Music. Regardless of how you get your music files here, you should confirm that this is where they are and that you can actually see them there.
In the fruitbox.cfg file, you would point to your music path. If you have your music in the Music folder, and you can see it there when you are running the PI, then the path is /home/pi/Music. It is important to note that unlike Windows, Linux folder paths are case sensitive. So /home/pi/Music would not be the same as /home/pi/music.
Most of your examples that you gave showed that you were trying to use relative paths to your music. While they can be convenient, they can also come back to bite you. I prefer to use the full path to my music files. That way there is no confusion.
It is possible to play your music directly from a flash drive without having to copy it around. I do this to allow for changing up my available music selection periodically. That requires the flash drive be mounted as a drive. Flash drives do not auto mount when running the PI in console mode. So you would need to, as part of your Fruitbox startup procedure, have a way of verifying that the flash drive is inserted and then mount it before actually starting Fruitbox. I do this in a bash script. If the flash drive is not inserted, fruitbox won't start and the script complains. I also use switches (or flags) in the fruitbox startup to tell fruitbox where my music and database files are. That way they can all live happily on the flash drive and I don't have to mess with editing the skin file when I want to make some sort of change. This is just an overview of my method and would require further explanation if you're interested in trying it. I'd also be happy to share the startup script.
One other thing I would suggest if you haven't done so already is to make a copy of the Fruitbox user manual. It's actually a part of the software. I sent it to a file and then actually printed it on hard copy. On the console or in a command window (depending on how you're running your PI) change directory to where have Fruitbox living on your PI and type:
Code: Select all
./fruitbox --user-guide > userguide.txt
It will look like nothing happened, and you'll end back at a command prompt. But the entire user guide will now be in the userguide.txt file. You can view it or print it at your leisure.
I hope some of this helped.
Cheers,
Steve