bailey0287
Posts: 4
Joined: Sat Apr 28, 2018 9:40 am

Re: fruitbox MP3 jukebox

Tue May 01, 2018 8:57 pm

fruitbox wrote:
Thu Dec 07, 2017 10:29 am
That error is expected - since fruitbox.cfg doesn't exist in the installation directory. You need to specify the fruitbox.cfg from one of the skins, i.e.

Code: Select all

./fruitbox --cfg skins/WallJuke/fruitbox.cfg
Before you run it, you need to put your MP3 files somewhere, and then edit the fruitbox.cfg file to point to them (by changing the MusicPath setting).

....just follow the installation instructions exactly and you should be fine ;)

But if you're still having issues please keep asking...

Mike
Hi Mike. I've followed your instructions and am stuck where the logo comes up but then brings up the Error message saying it can't find music. I'm using a Pi zero with rasp stretch lite and have followed the instructions to this point but when I type in... (edit skins/WallJuke/fruitbox.cfg and/or skins/NumberOne/fruitbox.cfg) it brings up a load of information but there doesn't seem to be any way I can edit it or save it. I'm sure it's fairly simple to figure out but I'm new to using the Pi and this is driving me crazy. Your help would be greatly appreciated.

Kind regards
Adam

User avatar
fruitbox
Posts: 289
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Wed May 02, 2018 6:47 am

bailey0287 wrote:
Tue May 01, 2018 8:57 pm
fruitbox wrote:
Thu Dec 07, 2017 10:29 am
That error is expected - since fruitbox.cfg doesn't exist in the installation directory. You need to specify the fruitbox.cfg from one of the skins, i.e.

Code: Select all

./fruitbox --cfg skins/WallJuke/fruitbox.cfg
Before you run it, you need to put your MP3 files somewhere, and then edit the fruitbox.cfg file to point to them (by changing the MusicPath setting).

....just follow the installation instructions exactly and you should be fine ;)

But if you're still having issues please keep asking...

Mike
Hi Mike. I've followed your instructions and am stuck where the logo comes up but then brings up the Error message saying it can't find music. I'm using a Pi zero with rasp stretch lite and have followed the instructions to this point but when I type in... (edit skins/WallJuke/fruitbox.cfg and/or skins/NumberOne/fruitbox.cfg) it brings up a load of information but there doesn't seem to be any way I can edit it or save it. I'm sure it's fairly simple to figure out but I'm new to using the Pi and this is driving me crazy. Your help would be greatly appreciated.

Kind regards
Adam
Hi Adam

You can edit the file with a program called nano...

Code: Select all

cd rpi-fruitbox-master
nano skins/WallJuke/fruitbox.cfg
To save the changes when in nano, it's Ctrl-O. To quit, it's Ctrl-X.

Hope this helps...shout if you're still stuck!

...and remember, paths and filenames in linux are case sensitive, so make sure your music path is exactly right. Depending on what version of fruitbox you have been using, if it has tried to create a database and not found any songs, an empty fruitbox.db file will have been created (before release 1.11) so you will need to delete it (using rm) before trying again...

Cheers,
Mike

bailey0287
Posts: 4
Joined: Sat Apr 28, 2018 9:40 am

Re: fruitbox MP3 jukebox

Wed May 02, 2018 9:53 am

mabscottsville wrote:
Sun Dec 17, 2017 1:36 pm
bernyone wrote:
Sun Dec 17, 2017 11:51 am
struggling to get this to work,
im pointing to the path for my music in the walljuke cgf but keep getting an error?

Code: Select all

[quote][email protected]:~/rpi-fruitbox-master $ ./fruitbox --cfg skins/WallJuke/fruitbox.cfg

fruitbox v1.1 (Dec 14 2017, 19:15:48) by Mike Kingsley
A customisable MP3 Retro Jukebox for the Raspberry Pi
  SkinSize = 1024 768
Detecting display...1680 x 1050 (60Hz)
NOTE: Skin size will be scaled to fit display
Reading configuration 'skins/WallJuke/fruitbox.cfg'...

  [general]
  Database = ../fruitbox.db
  MusicPath = ../home/pi/Music
  SortSongsBy = Artist
  SelectKeys = AE14
  AutoSelect = true
  SelectTimeout = 150
  SelectHoldTimeout = 150
  AutoPageTurnTime = 3000
  MaxPlaylistLength = 20
  LoopPlaylist = false
  AutoPlay = true
  AutoPlayGap = 3000
  PlaysPerCoin = 0
  SongsPerPage = 2
  PageSize = 286 82
  PairSongs = true
  PageMoveStyle = 4 5 true
  SongLoadTime = 100
  SongUnloadTime = 0
  ArtistText = 2 200 64 32 255 centre true true false 0 6
  AlbumText = 0 0 0 0 255 centre false false false 0 0
  SongText = 0 0 0 0 255 centre false true false 0 6

  [sounds]
  LoadSong = 100 skins/WallJuke/recpop.wav
  InsertCoin = 70 skins/WallJuke/coindrop.wav
  PageMove = 50 skins/WallJuke/pagemove.wav

  [font]
  File = skins/WallJuke/typewriter.ttf
  Height = 16

  [font]
  File = skins/WallJuke/hatten.ttf
  Height = 20

  [font]
  File = skins/WallJuke/typewriter.ttf
  Height = 16

  [font]
  File = skins/WallJuke/hatten.ttf
  Height = 38

  [font]
  File = skins/WallJuke/dotmatrx.ttf
  Height = 16

  [page]
  Position = 217 63
  Background = skins/WallJuke/page_bkgnd.jpg
  MoveDelay = 0

  [page]
  Position = 532 63
  Background = skins/WallJuke/page_bkgnd.jpg
  MoveDelay = 0

  [page]
  Position = 217 154
  Background = skins/WallJuke/page_bkgnd.jpg
  MoveDelay = 5

  [page]
  Position = 532 154
  Background = skins/WallJuke/page_bkgnd.jpg
  MoveDelay = 5

  [page]
  Position = 217 243
  Background = skins/WallJuke/page_bkgnd.jpg
  MoveDelay = 10

  [page]
  Position = 532 243
  Background = skins/WallJuke/page_bkgnd.jpg
  MoveDelay = 10

  [page]
  Position = 217 333
  Background = skins/WallJuke/page_bkgnd.jpg
  MoveDelay = 15

  [page]
  Position = 532 333
  Background = skins/WallJuke/page_bkgnd.jpg
  MoveDelay = 15

  [page]
  Position = 217 423
  Background = skins/WallJuke/page_bkgnd.jpg
  MoveDelay = 20

  [page]
  Position = 532 423
  Background = skins/WallJuke/page_bkgnd.jpg
  MoveDelay = 20

  [status]
  Contents = skins/WallJuke/record_spin.txt
  Bitmap = skins/WallJuke/record_spin01.png
  Bitmap = skins/WallJuke/record_spin02.png
  Bitmap = skins/WallJuke/record_spin03.png
  Bitmap = skins/WallJuke/record_spin04.png
  Bitmap = skins/WallJuke/record_spin05.png
  Bitmap = skins/WallJuke/record_spin06.png
  Bitmap = skins/WallJuke/record_spin07.png
  Bitmap = skins/WallJuke/record_spin08.png
  Bitmap = skins/WallJuke/record_spin09.png
  Bitmap = skins/WallJuke/record_spin10.png
  Bitmap = skins/WallJuke/record_spin11.png
  Bitmap = skins/WallJuke/record_spin12.png
  Bitmap = skins/WallJuke/record_spin13.png
  Bitmap = skins/WallJuke/record_spin14.png
  Bitmap = skins/WallJuke/record_spin15.png
  Bitmap = skins/WallJuke/record_spin16.png
  Size = 900 240
  Position = 62 540
  TimerTickPeriod = 4

  [status]
  Position = 214 690
  Size = 300 106
  Text = 4 128 255 128 255 centre false false false 0 0
  Contents = skins/WallJuke/status0.txt
  TimerTickPeriod = 50
  LineSpacing = 4

  [status]
  Position = 514 690
  Size = 300 106
  Text = 4 128 255 128 255 centre false false false 0 0
  Contents = skins/WallJuke/status1.txt
  LineSpacing = 4

  [status]
  Position = 866 708
  Size = 86 68
  Text = 3 255 128 128 255 centre false false false 0 0
  Contents = skins/WallJuke/status2.txt

  [status]
  Position = 82 708
  Size = 86 68
  Text = 3 255 128 128 255 centre false false false 0 0
  Contents = skins/WallJuke/status3.txt
  TimerTickPeriod = 150

  [bitmap]
  File = skins/WallJuke/foreground.png
  Position = 0 0
  Size = 1024 768

Initialising audio ...
Database '../fruitbox.db' not found, so will create it for you...
Creating new database '../fruitbox.db'...
This may take some time, but only needs to be done once.
If your music library changes please delete '../fruitbox.db' and re-run fruitbox.

Alternatively, if you are feeling brave, you can edit the database file directly,
using a text editor.  This can be useful if you want to add or remove songs manually,
and/or modify their tag data (song title, artist name, etc.)

Searching ../home/pi/Music ...

ERROR: Can't find any MP3 songs (are the 'MusicPath' settings in your config correct?)
[/quote]
help..........
try changing the music path in the fruitbox.cfg file to ../Music/ that's how mine is and my mp3s are in the same folder as yours. my guess is that how your path is set up its looking for mp3s in /home/pi/home/pi/Music which the folder doesn't exist

note: make sure you delete the fruitbox.db file if it exists before you run it after making the change to make sure it generates a new one
I am having the same issue. I don't understand where these files are or how I edit them. If I put the SD card in my mac I can't see these files. How do I edit them?

User avatar
fruitbox
Posts: 289
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Wed May 02, 2018 10:11 am

bailey0287 wrote:
Wed May 02, 2018 9:53 am
mabscottsville wrote:
Sun Dec 17, 2017 1:36 pm
bernyone wrote:
Sun Dec 17, 2017 11:51 am
struggling to get this to work,
im pointing to the path for my music in the walljuke cgf but keep getting an error?

Code: Select all

[quote][email protected]:~/rpi-fruitbox-master $ ./fruitbox --cfg skins/WallJuke/fruitbox.cfg

fruitbox v1.1 (Dec 14 2017, 19:15:48) by Mike Kingsley
A customisable MP3 Retro Jukebox for the Raspberry Pi
  SkinSize = 1024 768
Detecting display...1680 x 1050 (60Hz)
NOTE: Skin size will be scaled to fit display
Reading configuration 'skins/WallJuke/fruitbox.cfg'...

  [general]
  Database = ../fruitbox.db
  MusicPath = ../home/pi/Music
  SortSongsBy = Artist
  SelectKeys = AE14
  AutoSelect = true
  SelectTimeout = 150
  SelectHoldTimeout = 150
  AutoPageTurnTime = 3000
  MaxPlaylistLength = 20
  LoopPlaylist = false
  AutoPlay = true
  AutoPlayGap = 3000
  PlaysPerCoin = 0
  SongsPerPage = 2
  PageSize = 286 82
  PairSongs = true
  PageMoveStyle = 4 5 true
  SongLoadTime = 100
  SongUnloadTime = 0
  ArtistText = 2 200 64 32 255 centre true true false 0 6
  AlbumText = 0 0 0 0 255 centre false false false 0 0
  SongText = 0 0 0 0 255 centre false true false 0 6

  [sounds]
  LoadSong = 100 skins/WallJuke/recpop.wav
  InsertCoin = 70 skins/WallJuke/coindrop.wav
  PageMove = 50 skins/WallJuke/pagemove.wav

  [font]
  File = skins/WallJuke/typewriter.ttf
  Height = 16

  [font]
  File = skins/WallJuke/hatten.ttf
  Height = 20

  [font]
  File = skins/WallJuke/typewriter.ttf
  Height = 16

  [font]
  File = skins/WallJuke/hatten.ttf
  Height = 38

  [font]
  File = skins/WallJuke/dotmatrx.ttf
  Height = 16

  [page]
  Position = 217 63
  Background = skins/WallJuke/page_bkgnd.jpg
  MoveDelay = 0

  [page]
  Position = 532 63
  Background = skins/WallJuke/page_bkgnd.jpg
  MoveDelay = 0

  [page]
  Position = 217 154
  Background = skins/WallJuke/page_bkgnd.jpg
  MoveDelay = 5

  [page]
  Position = 532 154
  Background = skins/WallJuke/page_bkgnd.jpg
  MoveDelay = 5

  [page]
  Position = 217 243
  Background = skins/WallJuke/page_bkgnd.jpg
  MoveDelay = 10

  [page]
  Position = 532 243
  Background = skins/WallJuke/page_bkgnd.jpg
  MoveDelay = 10

  [page]
  Position = 217 333
  Background = skins/WallJuke/page_bkgnd.jpg
  MoveDelay = 15

  [page]
  Position = 532 333
  Background = skins/WallJuke/page_bkgnd.jpg
  MoveDelay = 15

  [page]
  Position = 217 423
  Background = skins/WallJuke/page_bkgnd.jpg
  MoveDelay = 20

  [page]
  Position = 532 423
  Background = skins/WallJuke/page_bkgnd.jpg
  MoveDelay = 20

  [status]
  Contents = skins/WallJuke/record_spin.txt
  Bitmap = skins/WallJuke/record_spin01.png
  Bitmap = skins/WallJuke/record_spin02.png
  Bitmap = skins/WallJuke/record_spin03.png
  Bitmap = skins/WallJuke/record_spin04.png
  Bitmap = skins/WallJuke/record_spin05.png
  Bitmap = skins/WallJuke/record_spin06.png
  Bitmap = skins/WallJuke/record_spin07.png
  Bitmap = skins/WallJuke/record_spin08.png
  Bitmap = skins/WallJuke/record_spin09.png
  Bitmap = skins/WallJuke/record_spin10.png
  Bitmap = skins/WallJuke/record_spin11.png
  Bitmap = skins/WallJuke/record_spin12.png
  Bitmap = skins/WallJuke/record_spin13.png
  Bitmap = skins/WallJuke/record_spin14.png
  Bitmap = skins/WallJuke/record_spin15.png
  Bitmap = skins/WallJuke/record_spin16.png
  Size = 900 240
  Position = 62 540
  TimerTickPeriod = 4

  [status]
  Position = 214 690
  Size = 300 106
  Text = 4 128 255 128 255 centre false false false 0 0
  Contents = skins/WallJuke/status0.txt
  TimerTickPeriod = 50
  LineSpacing = 4

  [status]
  Position = 514 690
  Size = 300 106
  Text = 4 128 255 128 255 centre false false false 0 0
  Contents = skins/WallJuke/status1.txt
  LineSpacing = 4

  [status]
  Position = 866 708
  Size = 86 68
  Text = 3 255 128 128 255 centre false false false 0 0
  Contents = skins/WallJuke/status2.txt

  [status]
  Position = 82 708
  Size = 86 68
  Text = 3 255 128 128 255 centre false false false 0 0
  Contents = skins/WallJuke/status3.txt
  TimerTickPeriod = 150

  [bitmap]
  File = skins/WallJuke/foreground.png
  Position = 0 0
  Size = 1024 768

Initialising audio ...
Database '../fruitbox.db' not found, so will create it for you...
Creating new database '../fruitbox.db'...
This may take some time, but only needs to be done once.
If your music library changes please delete '../fruitbox.db' and re-run fruitbox.

Alternatively, if you are feeling brave, you can edit the database file directly,
using a text editor.  This can be useful if you want to add or remove songs manually,
and/or modify their tag data (song title, artist name, etc.)

Searching ../home/pi/Music ...

ERROR: Can't find any MP3 songs (are the 'MusicPath' settings in your config correct?)
[/quote]
help..........
try changing the music path in the fruitbox.cfg file to ../Music/ that's how mine is and my mp3s are in the same folder as yours. my guess is that how your path is set up its looking for mp3s in /home/pi/home/pi/Music which the folder doesn't exist

note: make sure you delete the fruitbox.db file if it exists before you run it after making the change to make sure it generates a new one
I am having the same issue. I don't understand where these files are or how I edit them. If I put the SD card in my mac I can't see these files. How do I edit them?
Hi,

If you try and view the contents of your SD card on a MAC or PC you will only see the boot sector (64Mbytes) and not the entire contents of the SD card, so you need to edit the fruitbox.cfg file on the raspberry Pi itself, the way I described in my previous post :)

From your log above, it looks like you are telling fruitbox that your MP3 files are in a directory called ../home/pi/Music. As the path is relative to the frutibox executable that means it will actually be /home/pi/rpi-fruitbox-master/../home/pi/Music which is the same as /home/pi/home/pi/Music so I suspect this is wrong. If your MP3 files really are in the directory /home/pi/Music, then the easiest way is to specify the Music path as an absolute path, not relative, so leave out the "../", i.e.

Code: Select all

MusicPath = /home/pi/Music
And remember to delete any existing empty database file before you run fruitbox again...

Code: Select all

cd /home/pi/rpi-fruitbox-master
sudo rm ../fruitbox.db
Either plug a keyboard into the Pi so you can work directly from it, or SSH into it if it's accessible from your MAC.

Cheers,
Mike

PittStone
Posts: 12
Joined: Mon Apr 23, 2018 6:48 pm

Re: fruitbox MP3 jukebox

Wed May 02, 2018 8:58 pm

it would be nice if you can also insert .m3u files for internet radio and the player then plays the internet radio stations.

User avatar
fruitbox
Posts: 289
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Thu May 03, 2018 8:27 pm

PittStone wrote:
Wed May 02, 2018 8:58 pm
it would be nice if you can also insert .m3u files for internet radio and the player then plays the internet radio stations.
Hi

That will be included in the next release :)

Mike

bailey0287
Posts: 4
Joined: Sat Apr 28, 2018 9:40 am

Re: fruitbox MP3 jukebox

Thu May 03, 2018 9:41 pm

Thanks Mike. Managed to get it working now. pointed the music path to <media/usb/Music> and it found the Mp3's. Just a question regarding skins... I have it running on Pi zero like you had in the video and also have selected 256 split but the Splat skin is running very slowly. It literary took 5 mins for me to be able to exit the software. Any ideas on why this might be?

Kind regards
Adam

User avatar
fruitbox
Posts: 289
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Thu May 03, 2018 9:46 pm

bailey0287 wrote:
Thu May 03, 2018 9:41 pm
Thanks Mike. Managed to get it working now. pointed the music path to <media/usb/Music> and it found the Mp3's. Just a question regarding skins... I have it running on Pi zero like you had in the video and also have selected 256 split but the Splat skin is running very slowly. It literary took 5 mins for me to be able to exit the software. Any ideas on why this might be?

Kind regards
Adam
Hi Adam

what are your buttons mapped to? Some users have reported slow down issues with some USB controllers which I plan to look into...

Mike

PittStone
Posts: 12
Joined: Mon Apr 23, 2018 6:48 pm

Re: fruitbox MP3 jukebox

Fri May 04, 2018 1:20 am

fruitbox wrote:
Thu May 03, 2018 8:27 pm
PittStone wrote:
Wed May 02, 2018 8:58 pm
it would be nice if you can also insert .m3u files for internet radio and the player then plays the internet radio stations.
Hi

That will be included in the next release :)

Mike
Nice. Is the next Release Out before 25.05.2018? I wil make a Birthday present and it would be cool it has the Internet Radio Funktion.

User avatar
fruitbox
Posts: 289
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Sat May 05, 2018 12:54 am

Yes I will try my level best to get the next release out before then

Mike

kirkjoserey
Posts: 1
Joined: Mon May 07, 2018 3:50 am

Re: fruitbox MP3 jukebox

Mon May 07, 2018 3:57 am

Hi Mike,

Thanks for this great work on fruitbox; it's an excellent piece of software.

Again; thanks from Argentina!

nino65
Posts: 7
Joined: Mon May 07, 2018 9:46 pm

Re: fruitbox MP3 jukebox

Mon May 07, 2018 9:59 pm

Ottimo software, complimenti .
Vorrei realizzare questo bellissimo progetto, ho alcune domande,
Quale scheda usare per l'uscita audio, vanno bene anche usb?
Quali e quanti GPIO utilizzare per i pulsanti in fruitbox, per non avere conflitti con la scheda audio?
Posso usare RASPBIAN STRETCH CON DESKTOP o devo usare la versione LITE.
Ringrazio anticipatamente per le risposte.

bailey0287
Posts: 4
Joined: Sat Apr 28, 2018 9:40 am

Re: fruitbox MP3 jukebox

Tue May 08, 2018 8:05 am

fruitbox wrote:
Thu May 03, 2018 9:46 pm
bailey0287 wrote:
Thu May 03, 2018 9:41 pm
Thanks Mike. Managed to get it working now. pointed the music path to <media/usb/Music> and it found the Mp3's. Just a question regarding skins... I have it running on Pi zero like you had in the video and also have selected 256 split but the Splat skin is running very slowly. It literary took 5 mins for me to be able to exit the software. Any ideas on why this might be?

Kind regards
Adam
Hi Adam

what are your buttons mapped to? Some users have reported slow down issues with some USB controllers which I plan to look into...

Mike
I am using a compaq USB keyboard which I took apart and soldered buttons directly to keys I wanted to use. It controlled an old jukebox I made running DW Jukebox years ago

nino65
Posts: 7
Joined: Mon May 07, 2018 9:46 pm

Re: fruitbox MP3 jukebox

Wed May 09, 2018 5:33 pm

Buonasera a tutti
Ho un problema di configurazione, sicuramente sbaglio io.
Ho installato sul mio raspberry PI 3 una scheda usb audio, è configurata come audio principale, se mi collego su youtube per ascoltare musica funziona.
Su fruitbox quando viene riprodotto un brano, non ho audio, su youtube si.
la versione installata su rasberry è RASPBIAN STRETCH CON DESKTOP.
Altra domanda per attivare il credito che configurazione devo usare? su fruitbox c'è scritto sempre credit FREE
ho configurato i tasti per prova



# fruitbox v1.11 button mapping file
# Missing buttons will assume their default values (see user guide)

ButtonQuit = GPIO 21
ButtonCoin1 = Keyboard 14
ButtonCoin2 = Keyboard 13
ButtonCoin3 = Keyboard 72
ButtonCoin4 = Keyboard 74
ButtonVol+ = Keyboard 70
ButtonVol- = Keyboard 24
ButtonRandom = Keyboard 218
ButtonSelect = Keyboard 220
ButtonSkip = Keyboard 78
ButtonPause = Keyboard 84
ButtonUp = Keyboard 80
ButtonDown = Keyboard 83
ButtonLeft = GPIO 22
ButtonRight = GPIO 17
ButtonLeftJump = GPIO 4
ButtonRightJump = GPIO 23
ButtonLeftAlpha = Keyboard 79
ButtonRightAlpha = Keyboard 85
ButtonAuto = Keyboard 77
ButtonLoop = Keyboard 82
ButtonFree = Keyboard 66
ButtonClear = Keyboard 2
ButtonMute = Keyboard 3
ButtonPowerOff = Keyboard 75
Button0 = Keyboard 35
Button1 = GPIO 25
Button2 = GPIO 24
Button3 = GPIO 13
Button4 = GPIO 12
Button5 =
Button6 =
Button7 = Keyboard 87
Button8 = Keyboard 219
Button9 = Keyboard 93
ButtonA = GPIO 27
ButtonB = GPIO 16
ButtonC = GPIO 26
ButtonD = GPIO 6
ButtonE = GPIO 5
ButtonF = GPIO 20
ButtonG = Keyboard 22
ButtonH = Keyboard 215
ButtonI = Keyboard 62

Perchè la configurazione dei bottoni mi da tutti questi?
quanti bottoni vanno messi esterni e quali servono realmente?
Attendo con pazienza
Grazie in anticipo

User avatar
fruitbox
Posts: 289
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Wed May 09, 2018 7:56 pm

nino65 wrote:
Wed May 09, 2018 5:33 pm
Buonasera a tutti
Ho un problema di configurazione, sicuramente sbaglio io.
Ho installato sul mio raspberry PI 3 una scheda usb audio, è configurata come audio principale, se mi collego su youtube per ascoltare musica funziona.
Su fruitbox quando viene riprodotto un brano, non ho audio, su youtube si.
la versione installata su rasberry è RASPBIAN STRETCH CON DESKTOP.
Altra domanda per attivare il credito che configurazione devo usare? su fruitbox c'è scritto sempre credit FREE
ho configurato i tasti per prova



# fruitbox v1.11 button mapping file
# Missing buttons will assume their default values (see user guide)

ButtonQuit = GPIO 21
ButtonCoin1 = Keyboard 14
ButtonCoin2 = Keyboard 13
ButtonCoin3 = Keyboard 72
ButtonCoin4 = Keyboard 74
ButtonVol+ = Keyboard 70
ButtonVol- = Keyboard 24
ButtonRandom = Keyboard 218
ButtonSelect = Keyboard 220
ButtonSkip = Keyboard 78
ButtonPause = Keyboard 84
ButtonUp = Keyboard 80
ButtonDown = Keyboard 83
ButtonLeft = GPIO 22
ButtonRight = GPIO 17
ButtonLeftJump = GPIO 4
ButtonRightJump = GPIO 23
ButtonLeftAlpha = Keyboard 79
ButtonRightAlpha = Keyboard 85
ButtonAuto = Keyboard 77
ButtonLoop = Keyboard 82
ButtonFree = Keyboard 66
ButtonClear = Keyboard 2
ButtonMute = Keyboard 3
ButtonPowerOff = Keyboard 75
Button0 = Keyboard 35
Button1 = GPIO 25
Button2 = GPIO 24
Button3 = GPIO 13
Button4 = GPIO 12
Button5 =
Button6 =
Button7 = Keyboard 87
Button8 = Keyboard 219
Button9 = Keyboard 93
ButtonA = GPIO 27
ButtonB = GPIO 16
ButtonC = GPIO 26
ButtonD = GPIO 6
ButtonE = GPIO 5
ButtonF = GPIO 20
ButtonG = Keyboard 22
ButtonH = Keyboard 215
ButtonI = Keyboard 62

Perchè la configurazione dei bottoni mi da tutti questi?
quanti bottoni vanno messi esterni e quali servono realmente?
Attendo con pazienza
Grazie in anticipo
Hello,
I can't answer your question about the audio quickly, but regarding the buttons, you only need the buttons you are using in the frutibox.btn file, so you can delete the ones you don't need. You probably pressed every button during --configure-buttons mode, rather than pressing ESC for each button you do not need (in which case it won't be written to the fruitbox.btn file). To toggle between freeplay and credits (coin) mode, you can press the ButtonFree when fruitbox is operating, or in the config file, set one or more of the PlaysPerCoin1, PlaysPerCoin2, PlaysPerCoin3, PlaysPerCoin4 values to greater than zero.


Hope that helps,
Mike

nino65
Posts: 7
Joined: Mon May 07, 2018 9:46 pm

Re: fruitbox MP3 jukebox

Thu May 10, 2018 7:35 pm

Ciao
Ho modificato il file fruitbox.cfg le sole quattro righe ch ho commentato.

Reading configuration 'skins/WallJuke/fruitbox.cfg'...

[general]
SkinName = WallJuke
SkinSize = 1024 768
Database = ../fruitbox.db
MusicPath = ../Music/
SortSongsBy = Title
SortSongsBy = Artist
SelectKeys = AE14
AutoSelect = false "ho modificato questo da yes a no"
SelectTimeout = 150
SelectHoldTimeout = 150
AutoPageTurnTime = 3000
MaxPlaylistLength = 20
LoopPlaylist = false "ho modificato questo da yes a no"
AutoPlay = false "ho modificato questo da yes a no"
AutoPlayGap = 3000
PlaysPerCoin1 = 1 "ho modificato questo da FREE a 1"
SongsPerPage = 2
PageSize = 286 82
PairSongs = Yes
PageMoveStyle = 4 5 true
SongLoadTime = 100
SongUnloadTime = 0
ArtistText = 2 200 64 32 255 centre true true false 0 6 230
SongText = 0 0 0 0 255 centre false true false 0 6 280

inserisco il credito e da Credit 00, mi scrive Credit 01
seleziono il brano che voglio ascoltare ma non mi parte nessun brano.
Dove sbaglio?

Per quanto riguarda l'audio, se sposto il Jack dalla scheda audio esterna usb al Jack del raspberry, l'audio funziona perchè.

User avatar
fruitbox
Posts: 289
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Thu May 10, 2018 7:54 pm

nino65 wrote:
Thu May 10, 2018 7:35 pm
Ciao
Ho modificato il file fruitbox.cfg le sole quattro righe ch ho commentato.

Reading configuration 'skins/WallJuke/fruitbox.cfg'...

[general]
SkinName = WallJuke
SkinSize = 1024 768
Database = ../fruitbox.db
MusicPath = ../Music/
SortSongsBy = Title
SortSongsBy = Artist
SelectKeys = AE14
AutoSelect = false "ho modificato questo da yes a no"
SelectTimeout = 150
SelectHoldTimeout = 150
AutoPageTurnTime = 3000
MaxPlaylistLength = 20
LoopPlaylist = false "ho modificato questo da yes a no"
AutoPlay = false "ho modificato questo da yes a no"
AutoPlayGap = 3000
PlaysPerCoin1 = 1 "ho modificato questo da FREE a 1"
SongsPerPage = 2
PageSize = 286 82
PairSongs = Yes
PageMoveStyle = 4 5 true
SongLoadTime = 100
SongUnloadTime = 0
ArtistText = 2 200 64 32 255 centre true true false 0 6 230
SongText = 0 0 0 0 255 centre false true false 0 6 280

inserisco il credito e da Credit 00, mi scrive Credit 01
seleziono il brano che voglio ascoltare ma non mi parte nessun brano.
Dove sbaglio?

Per quanto riguarda l'audio, se sposto il Jack dalla scheda audio esterna usb al Jack del raspberry, l'audio funziona perchè.
Hi

Probably because you have AutoSelect set to false, so after selecting the track you then need to press the Select button. If AutoSelect is set to true, then the song will start playing as soon as you press the second select code digit..

Cheers,
Mike

nino65
Posts: 7
Joined: Mon May 07, 2018 9:46 pm

Re: fruitbox MP3 jukebox

Thu May 10, 2018 8:17 pm

Ok grazie per la risposta
riportando autoselect su yes ora funziona, ma solo una canzone, alla fine non mi da più la possibilità di aggiungere crediti.
per avere più crediti ed a ogni credito selezionare 2 brani come devo modificare il file config
Quindi la possibilità di inserire più crediti che vanno sommandosi al credito totale e la possibilità ad ogni credito di selezionare 2 brani.

RainbowJuke
Posts: 17
Joined: Fri Feb 16, 2018 9:32 am
Location: West Yorkshire UK

Re: fruitbox MP3 jukebox

Fri May 11, 2018 9:05 am

Hi everybody this is my JuniorJuke conversion from DW Jukebox Gretro skin to a Raspberry Pi Fruitbox Juke. The DW Jukebox was run on a HP laptop with the screen fastened to the under side. The pictures are of the before and after. JuniorJuke incorporates four running light tubes with over 200 sequences, unable to get decent shots due to burn out on camera. An arduino and msgeq7 chip give a rgb led light display on the concave back. Frequency dependant colours with green on bass, red on middle and blue on trebles give an ever changing hue of colours. The rgb leds are fitted behind the centre column that also houses the mid and tweeter speakers. The bass being mounted to the rear and ported to the front slot at the bottom. Hope this gives you inspiration to get building as anything is possible with this great software.
Attachments
JuniorJukeout.jpg
JuniorJukeout.jpg (211.71 KiB) Viewed 1921 times
JuniorJukein.jpg
JuniorJukein.jpg (217.43 KiB) Viewed 1921 times

ljs12377
Posts: 12
Joined: Tue Jan 07, 2014 10:22 pm

Re: fruitbox Mp3 files

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.

User avatar
fruitbox
Posts: 289
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox Mp3 files

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?)

ljs12377
Posts: 12
Joined: Tue Jan 07, 2014 10:22 pm

Re: fruitbox Mp3 files

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!

shhammer5634
Posts: 57
Joined: Mon Dec 04, 2017 10:45 am
Location: Iowa, USA

Re: fruitbox Mp3 files

Sun May 13, 2018 2:07 pm

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

ljs12377
Posts: 12
Joined: Tue Jan 07, 2014 10:22 pm

Re: fruitbox Mp3 files

Sun May 13, 2018 9:02 pm

shhammer5634 wrote:
Sun May 13, 2018 2:07 pm
ljs12377 wrote:
Sun May 13, 2018 12:34 pm
fruitbox wrote:
Sun May 13, 2018 12:48 am


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
Hi Steve

thanks for your help on this, i think i might slowly be getting there. I’ve managed to locate my flash Usb drive and found the mp3 files on it ../media/usb1 (i changed all this via this you tube video https://youtu.be/Q0W6ggl5yjY ) but when i run the programme it still says that it cannot find mp3 files although i know they are there when i run the command ls /media/usb1. I have been changing the config file by using nano skins/WallJuke/fruitbox.cfg

What would be the full path to /media/usb1

I’m interested in trying the switches and flags if your ok with that. (I’m slowly getting this!)

Thanks
Leigh

shhammer5634
Posts: 57
Joined: Mon Dec 04, 2017 10:45 am
Location: Iowa, USA

Re: fruitbox Mp3 files

Sun May 13, 2018 9:10 pm

ljs12377 wrote:
Sun May 13, 2018 9:02 pm
shhammer5634 wrote:
Sun May 13, 2018 2:07 pm
ljs12377 wrote:
Sun May 13, 2018 12:34 pm


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
Hi Steve

thanks for your help on this, i think i might slowly be getting there. I’ve managed to locate my flash Usb drive and found the mp3 files on it ../media/usb1 (i changed all this via this you tube video https://youtu.be/Q0W6ggl5yjY ) but when i run the programme it still says that it cannot find mp3 files although i know they are there when i run the command ls /media/usb1. I have been changing the config file by using nano skins/WallJuke/fruitbox.cfg

What would be the full path to /media/usb1

I’m interested in trying the switches and flags if your ok with that. (I’m slowly getting this!)

Thanks
Leigh
Hi Leigh,

You are making progress. That's great news! Before I can answer your question though, I need to know if you are running Fruitbox from inside the PI desktop or are starting up the PI in console mode.

Cheers,
Steve

Edit: On the assumption that you're running PI in console mode, I'll type something up shortly. I'm cooking supper right now. Food before computing in my house. :D

Return to “Graphics, sound and multimedia”