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

Re: fruitbox MP3 jukebox

Mon Dec 04, 2017 10:51 am

Looks like an *awesome* piece of work. I can't wait to get started using it. Thanks so much for putting in the time and effort!

Steve

markoz72
Posts: 2
Joined: Thu Dec 07, 2017 3:21 am

Re: fruitbox MP3 jukebox

Thu Dec 07, 2017 5:07 am

I get to this point chmod +x ./fruitbox
And nothing happens after this point am i missing something or typing something wrong
Regards Mark

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

Re: fruitbox MP3 jukebox

Thu Dec 07, 2017 9:15 am

Hi Mark,

What are you typing after 'chmod +x ./fruitbox'?. That command won't actually give you any response, it's just giving fruitbox program executable status so you can subsequently run it. The next thing to do is run fruitbox itself as described in the next step.

To run fruitbox you must be in the directory it is installed in (i.e. rpi-fruitbox-master). What happens if you just type './fruitbox' (without the single quotes)?

Mike

markoz72
Posts: 2
Joined: Thu Dec 07, 2017 3:21 am

Re: fruitbox MP3 jukebox

Thu Dec 07, 2017 9:56 am

Thx for reply
Comes up as error
Couldnt open configuration file 'fruitbox.cfg' for input

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

Re: fruitbox MP3 jukebox

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

Hutcho_73
Posts: 1
Joined: Thu Dec 07, 2017 12:01 pm

Re: fruitbox MP3 jukebox

Thu Dec 07, 2017 12:06 pm

Hi,
Great work. I have been looking for an RPI alternative for DWJ. Have worked on any album style skins?
Cheers Tom.

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

Re: fruitbox MP3 jukebox

Thu Dec 07, 2017 8:36 pm

Hi Tom,

fruitbox doesn't support albums at the moment, but it will in the next release...

Cheers,
Mike

mabscottsville
Posts: 6
Joined: Sun Dec 03, 2017 1:12 pm

Re: fruitbox MP3 jukebox

Tue Dec 12, 2017 12:56 pm

another request, custom button config to bind keyboard keys to controller inputs please

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

Re: fruitbox MP3 jukebox

Thu Dec 14, 2017 8:50 pm

Hi,

fruitbox v1.1 is now released :)

-> *new* Support for loading and saving playlists to external files
-> Changed handling of Now Playing Artwork
-> *new* Added Album mode
-> Running fruitbox with no arguments shows help (no longer expects default fruitbox.cfg)
-> Various bug-fixes

Latest version can be fetched from GitHub as before...

https://github.com/chundermike/rpi-fruitbox

See release_notes.txt for details, and check out the new "Granite" album skin!

Please note the WallJuke and Splat fruitbox.cfg files have been tweaked for v1.1 bug-fixes, so grab these too if you are using these skins.

Cheers,
Mike

sasquatch001
Posts: 20
Joined: Thu Dec 14, 2017 11:08 pm

Re: fruitbox MP3 jukebox

Thu Dec 14, 2017 11:09 pm

This looks great.

Does it / will it have support for touch screens?

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

Re: fruitbox MP3 jukebox

Fri Dec 15, 2017 5:23 pm

Hi,

fruitbox doesn't support touchscreen at the moment. I will look into adding that (but I guess I'll need to get myself a touchscreen first!)

mabscottsville - to answer your question; when the touchscreen support goes in, I will also add a way of re-defining the keyboard keys as well; this won't involve controller inputs, but presumably this will help you with your controller input control?

Cheers,
Mike

dave 1
Posts: 1
Joined: Sat Dec 16, 2017 1:56 pm

Re: fruitbox MP3 jukebox

Sat Dec 16, 2017 2:00 pm

hi! fruit jukeboks can be installed on retropies?

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

Re: fruitbox MP3 jukebox

Sat Dec 16, 2017 10:33 pm

Hi

Not sure...fruitbox doesn't use the libretro API but it may be possible to install it alongside retropie and call it from the EmulationStation frontend. I'm not the best person to ask....maybe someone else would know?

Cheers
Mike

mabscottsville
Posts: 6
Joined: Sun Dec 03, 2017 1:12 pm

Re: fruitbox MP3 jukebox

Sun Dec 17, 2017 3:20 am

fruitbox wrote:
Fri Dec 15, 2017 5:23 pm
Hi,

fruitbox doesn't support touchscreen at the moment. I will look into adding that (but I guess I'll need to get myself a touchscreen first!)

mabscottsville - to answer your question; when the touchscreen support goes in, I will also add a way of re-defining the keyboard keys as well; this won't involve controller inputs, but presumably this will help you with your controller input control?

Cheers,
Mike
Sorry. i should have worded it better. to try to clarify what i meant, i bought for this project what i thought was a keyboard encoder but was actually a controller encoder, its a xin-mo, testing inputs with evtest on the pi shows that the encoder uses ABS_X and ABS_Y for joystick and BTN_ for the buttons instead of KEY_ like actual keyboard keys do, but for the BTN_ inputs it doesn't do BTN_1 and BTN_2 like the pinout says it does, instead it does BTN_TRIGGER and BTN_THUMB respectively. back to the main point, i was asking if you could fix it to where in a control config or something i could manually tell it that, for example, BTN_TRIGGER = KEY_A and so forth so i could get it working

bernyone
Posts: 50
Joined: Fri Sep 29, 2017 8:42 pm

Re: fruitbox MP3 jukebox

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?
[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?)
help..........

mabscottsville
Posts: 6
Joined: Sun Dec 03, 2017 1:12 pm

Re: fruitbox MP3 jukebox

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

bernyone
Posts: 50
Joined: Fri Sep 29, 2017 8:42 pm

Re: fruitbox MP3 jukebox

Sun Dec 17, 2017 7:01 pm

Ok sorted the issues with no music and its running YAYY

i want to add some simple buttons to the front of the jukebox i.e letters and number selection and left right etc

I have alot of spares from building arcade cabinets so would like to use the buttons and usb encoders that i have already,

Any suggestions on how to map the buttons to the corresponding functions?

bernyone
Posts: 50
Joined: Fri Sep 29, 2017 8:42 pm

Re: fruitbox MP3 jukebox

Sun Dec 17, 2017 7:05 pm


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
Sorted it thanks, i was leaving the (../) before the path to correct folder

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

Re: fruitbox MP3 jukebox

Sun Dec 17, 2017 10:48 pm

Good stuff!

Regarding buttons, for my jukebox I connected my switches to the GPIO pins and used Adafruit's "retrogame" utility to map these to simulated keyboard key presses.

I will look into supporting USB controllers as requested in a previous post, but I've not used these before so will need to get my head around what software support they need.

Cheers,
Mike

sasquatch001
Posts: 20
Joined: Thu Dec 14, 2017 11:08 pm

Re: fruitbox MP3 jukebox

Mon Dec 18, 2017 2:38 pm

I'm pretty new to the Pi so please bear with me. This is the sort of project that makes me want to learn a bit more.

I was planning to use a pi zero. If I add the justboom amp hat, will I still have access to the GPIO pins to connect buttons?

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

Re: fruitbox MP3 jukebox

Wed Dec 20, 2017 9:58 am

Hi,

A beautiful new 'Modern' skin is available, designed by Alvaro. Thanks!

Despite it's name, it's actually a really old looking classic, with flickering status and wonky pages.

You can find it in the GitHub 'skins' repository...

https://github.com/chundermike/rpi-frui ... ster/skins

Mike

Andrey Threat
Posts: 3
Joined: Wed Dec 20, 2017 10:50 am

Re: fruitbox MP3 jukebox

Wed Dec 20, 2017 10:57 am

Hi Mike!
First of all, I wanted to thank you for this great project! Found it just in time :D

I have a question reg database. Can't find any instruction on parameters.
I'm rebuilding old jukebox cabinet and want it to play mp3s. So basically I'll be using Raspberry as a headless system.
So my goal is, to load it every time with the same exact playlist, and songs should be under exact numbers - A1, B3, G4 etc.

And the second thing. Are there any limitations on letters? Seems like I can't go past letter H. My cabinet is A-K, 0-9.

Thanks,
Andrey.

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

Re: fruitbox MP3 jukebox

Wed Dec 20, 2017 12:47 pm

Hi,

If you run fruitbox first time it will create a database file with the MP3 songs it finds. You can then edit the fruitbox.db file manually to order the songs as you wish, and then make sure the SortSongsBy parameter in fruitbox.cfg is set to 'Unsorted' (without the quotes). That way the select codes will be assigned in the order defined by the song order, and the page setup (i.e. SongsPerPage, PairSongs and number of pages). If you want gaps in the song list, then I'd just put a dummy song in the database file where you want a gap. Just point it to a non-existent MP3 file and make sure the Title and Artist strings are blank. It'll probably take a fair bit of fiddling around with but you will get there in the end.

And yes, the select code letters range between A and H, but I can extend that to A through to K for you, but it'll mean a new code release. I can sort that in the next few days as it's a small change.

Cheers,
Mike

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

Re: fruitbox MP3 jukebox

Thu Dec 21, 2017 12:07 pm

Hi,

fruitbox v1.2 is now released. Just one minor tweak this time:

-> Extended Select Code range from A->H to A->K

Latest version can be fetched from GitHub as before...

https://github.com/chundermike/rpi-fruitbox

Cheers,
Mike

sasquatch001
Posts: 20
Joined: Thu Dec 14, 2017 11:08 pm

Re: fruitbox MP3 jukebox

Thu Dec 21, 2017 12:17 pm

sasquatch001 wrote:
Mon Dec 18, 2017 2:38 pm

I was planning to use a pi zero. If I add the justboom amp hat, will I still have access to the GPIO pins to connect buttons?
I expect this is a dumb question, but can somebody confirm with a yes or no? I’m itching to order the amp :) .

Thanks

Return to “Graphics, sound and multimedia”

Who is online

Users browsing this forum: Mayki and 10 guests