Page 49 of 59

Re: fruitbox MP3 jukebox

Posted: Tue Jan 14, 2020 10:55 am
by sputnik1983
Hello again,

is there no solution to the problem?
sputnik1983 wrote:
Thu Jan 09, 2020 1:35 pm
Hello,

it is possible to make the audio output of the fruitbox via the bluetooth output.
The desktop sound already works via bluetooth.only in the fruitbox application.
Thank you very much

Re: fruitbox MP3 jukebox

Posted: Tue Jan 14, 2020 11:01 am
by fruitbox
sputnik1983 wrote:
Tue Jan 14, 2020 10:55 am
Hello again,

is there no solution to the problem?
sputnik1983 wrote:
Thu Jan 09, 2020 1:35 pm
Hello,

it is possible to make the audio output of the fruitbox via the bluetooth output.
The desktop sound already works via bluetooth.only in the fruitbox application.
Thank you very much
Hi

The audio output is not under control by fruitbox...fruitbox uses the alsa driver to send audio to the default device. You will need to search for help in setting up the default device as a bluetooth device I think, but it's not something I have any experience with.

Also I don't recommend using fruitbox under the desktop environment, but the lite OS version under command line.

Cheers
Mike

Re: fruitbox MP3 jukebox

Posted: Tue Jan 14, 2020 11:04 am
by fruitbox
willbuden wrote:
Fri Jan 10, 2020 4:06 pm


I emailed, just now, it to the address you gave me before.
Ah...haven't received anything...could you double check the email address please...

rpi-fruitbox (at) hotmail (dot) com

Cheers
Mike

Re: fruitbox MP3 jukebox

Posted: Sat Jan 18, 2020 3:15 pm
by willbuden
fruitbox wrote:
Tue Jan 14, 2020 11:04 am
willbuden wrote:
Fri Jan 10, 2020 4:06 pm


I emailed, just now, it to the address you gave me before.
Ah...haven't received anything...could you double check the email address please...

rpi-fruitbox (at) hotmail (dot) com

Cheers
Mike
the hotmail account bounces back with a message "mailbox unavailable." I've sent it to the outlook address you gave before and it seems to be going through. Please send a message to willbuden (at) gmail (dot) com if you have not received the message. I will respond and send the skin that way. Sorry for the trouble. I don't know why this isn't going trough.

Re: fruitbox MP3 jukebox

Posted: Mon Feb 10, 2020 7:49 pm
by zLagos
Hi Mike

Thank you for your amazing program. I like very much.

I am making a skin of Albums, not songs, for a 7 "touch screen at 1024x600 and I have a problem, the album covers do not appear to me, which are good in the tags, because when I select an album, it does It appears in the right square that is blank in this screenshot:
screenshot.jpg
screenshot.jpg (57.19 KiB) Viewed 1341 times
I don't know if I need to create a txt file or what happens, but only the fruitbox logos appear instead of the covers.

This is my fruitbox.cfg:

Code: Select all

[general]
SkinName = TouchTwoAlbums
SkinDescription = Touch skin for Official Raspberry Pi 7" Touch Screen
SkinSize = 1024 600
Database = /home/pi/fruitbox.db
MusicPath = /home/pi/musica/
PageMode = Albums
SortSongsBy Album
#SortSongsBy Title
#SortSongsBy Artist
SelectKeys = 0909
AutoSelect = Yes
SelectTimeout = 150
SelectHoldTimeout = 150
AutoPageTurnTime = 3000
MaxPlaylistLength = 100
AlbumPageArtworkMode = Auto
NowPlayingArtworkMode = Auto
#AlbumPageMissingArtwork = splat.png
NowPlayingMissingArtwork = splat.png
AutoPlay = no
AutoPlayGap = 3000
PlaysPerCoin1 = 0
SongsPerPage = 10
PageSize = 340 512
PairSongs = no
PairedSongDescription = AlbumTitle
PageMoveStyle = 20 0 no
AlbumArtSize = 222 222
AlbumArtOffset = 59 0
AlbumText = 0 0 0 0 255 centre true true false 0 235 340
ArtistText = 0 255 32 32 255 centre true true false 0 265 340
SongText = 0 0 0 0 255 centre false true false 0 290 340
AlbumPageLineSpacing = 4

[sounds]

[font]
File = selite.ttf
Height = 21

[font]
File = selite.ttf
height = 22

[font]
File = selite.ttf
height = 16

[font]
File = digital.ttf
Height = 12

[bitmap]
File = background.jpg
Position = 0 0
Size = 1024 600

[page]
Position = 5 14
Background = strip5a.jpg

[page]
Position = 350 14
Background = strip5a.jpg

[status]
Position = 746 208
Size = 222 222
Contents = coverart.txt

[status]
Position = 695 20
Size = 340 84
Text = 2 0 0 0 255 centre true true false 0 0 330
Contents = now_playing.txt
LineSpacing = 4
TimerTickPeriod = 60

[status]
Position = 700 135
Size = 320 54
Text = 3 0 0 0 255 centre false false false 0 0
Contents = help.txt
LineSpacing = 8
TimerTickPeriod = 200

[status]
Position = 695 450
Size = 340 84
Text = 2 0 0 0 255 left true true false 0 0 330
Contents = coming_up.txt
LineSpacing = 4

[touch song]
Bitmap = touch_red.png

[bitmap]
File = foreground.png
Position = 0 0
Size = 1024 600

[bitmap]
File = volume.png
Position = 8 542
Size = 12 51
VertScale = Volume
VertScaleMode = Clipped

[status]
Position = 37 541
Size = 93 53
Bitmap = volume_button.png
Contents = volume_pressed.txt

[status]
Position = 177 541
Size = 93 53
Bitmap = poweroff_button.png
Contents = poweroff_pressed.txt

[status]
Position = 299 541
Size = 94 53
Bitmap = pause_button.png
Contents = pause_pressed.txt

[status]
Position = 423 541
Size = 93 53
Bitmap = random_button.png
Contents = random_pressed.txt

[status]
Position = 546 541
Size = 94 53
Bitmap = skip_button.png
Contents = skip_pressed.txt

[status]
Position = 687 541
Size = 54 53
Bitmap = left_button.png
Contents = left_pressed.txt

[status]
Position = 741 541
Size = 53 53
Bitmap = right_button.png
Contents = right_pressed.txt

[status]
Position = 821 541
Size = 94 53
Bitmap = leftalpha_button.png
Contents = leftalpha_pressed.txt

[status]
Position =915 541
Size = 94 53
Bitmap = rightalpha_button.png
Contents = rightalpha_pressed.txt

[touch areas]
ButtonRandom = 423 541 94 53
ButtonSkip   = 546 541 94 53
ButtonLeft   = 687 541 48 53
ButtonRight  = 741 541 45 53
ButtonVol-   = 37 541 32 53
ButtonVol+   = 98 541 32 53
ButtonPause  = 299 541 94 53
ButtonPowerOff = 177 541 94 53
ButtonLeftAlpha  = 821 541 94 53
ButtonRightAlpha = 915 541 94 53
I don't know what I can be doing wrong.

I have an other question:

Is there any way that the "AlbumArtist" field appears in the pages instead of "Artist". That is, use "AlbumArtistText" instead of "ArtistText"

Thanks for your help.

Re: fruitbox MP3 jukebox

Posted: Tue Feb 11, 2020 9:45 pm
by fruitbox
zLagos wrote:
Mon Feb 10, 2020 7:49 pm
Hi Mike

Thank you for your amazing program. I like very much.

I am making a skin of Albums, not songs, for a 7 "touch screen at 1024x600 and I have a problem, the album covers do not appear to me, which are good in the tags, because when I select an album, it does It appears in the right square that is blank.

I don't know if I need to create a txt file or what happens, but only the fruitbox logos appear instead of the covers.

I don't know what I can be doing wrong.
Hi,

You're not doing anything wrong...there is no "embedded" option for the Album cover art I'm afraid...the mp3 library seems to take a long time to extract the coverart from an mp3 file. It's an acceptable delay for the now playing cover art (you may have noticed a slight delay between a song starting and the cover art appearing), but when trying to extract coverart for multiple albums pages, the delay becomes unacceptable, so I omitted it. One option is to use the "Folder" (or "Auto") option for the AlbumPageArtworkMode parameter, and put your coverart image in a file called folder.jpg in each album directory (quite often this file is generated automatically when you rip a CD). The user guide should explain this, but I think a bug in the last few versions means that the descriptions for the skin parameters are missing I'm afraid (but it's fixed in the next release). Here's the relevant snippet...

Code: Select all

      NowPlayingMissingArtwork      <Filename> of graphic image (bmp, png, tga, jpg, pcx) to be used if NowPlayingArtworkMode = 'Specified',
                                    or no song artwork is found and NowPlayingArtworkMode = 'Auto'
      AlbumPageMissingArtwork       <Filename> of graphic image (bmp, png, tga, jpg, pcx) to be used if AlbumPageArtworkMode = 'Specified',
                                    or no song artwork is found and AlbumPageArtworkMode = 'Auto'
      NowPlayingArtworkMode         <None|Embedded|Folder|Specified|Logo|Auto>
                                    None : don't show artwork,
                                    Embedded : use image in MP3 file,
                                    Folder : use 'folder.jpg' in song directory,
                                    Specified : use MissingArtwork image,
                                    Logo : use fruitbox logo,
                                    Auto : use embedded/folder/missing/logo if available
      AlbumPageArtworkMode          <None|Folder|Specified|Logo|Auto>
                                    None : don't show artwork,
                                    Folder : use 'folder.jpg' in song directory,
                                    Specified : use MissingArtwork image,
                                    Logo : use fruitbox logo,
                                    Auto : use folder/missing/logo if available
I have an other question:

Is there any way that the "AlbumArtist" field appears in the pages instead of "Artist". That is, use "AlbumArtistText" instead of "ArtistText"
...yes, just put the line ArtistDescription = AlbumArtist in the skin file [general] section. Again, here's a snippet from the user guide for the pages text entries...

Code: Select all

      SongDescription *             <String> defining (part of) the song description for the song entry (first in a pair) in the pages.
                                    Can contain the following reserved keywords...
                                    'SongTitle', 'Artist', 'AlbumTitle', 'AlbumArtist', 'Year', 'Genre', 'TrackNumber',
                                    'Publisher', 'ISRC', 'Custom', 'PairedSongTitle', 'PairedArtist',
                                    'PairedAlbumTitle', 'PairedAlbumArtist', 'PairedYear', 'PairedGenre',
                                    'PairedTrackNumber', 'PairedPublisher', 'PairedISRC', 'PairedCustom'
      PairedSongDescription *       <String> defining (part of) the song description for the second song in a pair
                                    NOTE: In Albums mode (PageMode = Albums) this determines the Album Title line
      ArtistDescription *           <String> defining (part of) the artist description in the pages (same values as 'SongDescription')
      MatchedArtistDescription *    <String> used instead of 'ArtistDescription' if the artists of the songs in a pair are the same
                                    (or the second song in a pair is absent)
      ExtraDescription *            <String> defining (part of) the extra description in the pages (same values as 'SongDescription')
Note that in Albums mode, only the following parameters are used…
PairedSongDescription (The "Album" line)
ArtistDescription (The "Artist" line)
SongDescription (The "Songs" line(s))
ExtraDescription (The "Extra" line)

As a point of interest, if you define multiple entries for any of these parameters, they will all get concatentated into a single string, so you can create quite detailed descriptions using a variety of parameters and fixed characters.

Hope that helps,

Cheers,
Mike

Re: fruitbox MP3 jukebox

Posted: Wed Feb 12, 2020 2:28 pm
by Skunki
Hello Guys,

hopelfully anyone con help me. I install Fruitbox an it is running very well.
But, i need to change the Skin. I have a limit Keyboard and i can only Use the Buttons 0.....9 and A and B on my Spezial Keypad.
How can i change the Buttons in Fruitbox the only the Buttons are used. I found pictures of the Fruitbox-Screen in the Internet with only numbers
are used.

Please help me and thanks a lot.

Skunki

Re: fruitbox MP3 jukebox

Posted: Wed Feb 12, 2020 6:42 pm
by zLagos
fruitbox wrote:
Tue Feb 11, 2020 9:45 pm
zLagos wrote:
Mon Feb 10, 2020 7:49 pm
Hi Mike

Thank you for your amazing program. I like very much.

I am making a skin of Albums, not songs, for a 7 "touch screen at 1024x600 and I have a problem, the album covers do not appear to me, which are good in the tags, because when I select an album, it does It appears in the right square that is blank.

I don't know if I need to create a txt file or what happens, but only the fruitbox logos appear instead of the covers.

I don't know what I can be doing wrong.
Hi,

You're not doing anything wrong...there is no "embedded" option for the Album cover art I'm afraid...the mp3 library seems to take a long time to extract the coverart from an mp3 file. It's an acceptable delay for the now playing cover art (you may have noticed a slight delay between a song starting and the cover art appearing), but when trying to extract coverart for multiple albums pages, the delay becomes unacceptable, so I omitted it. One option is to use the "Folder" (or "Auto") option for the AlbumPageArtworkMode parameter, and put your coverart image in a file called folder.jpg in each album directory (quite often this file is generated automatically when you rip a CD). The user guide should explain this, but I think a bug in the last few versions means that the descriptions for the skin parameters are missing I'm afraid (but it's fixed in the next release). Here's the relevant snippet...

Code: Select all

      NowPlayingMissingArtwork      <Filename> of graphic image (bmp, png, tga, jpg, pcx) to be used if NowPlayingArtworkMode = 'Specified',
                                    or no song artwork is found and NowPlayingArtworkMode = 'Auto'
      AlbumPageMissingArtwork       <Filename> of graphic image (bmp, png, tga, jpg, pcx) to be used if AlbumPageArtworkMode = 'Specified',
                                    or no song artwork is found and AlbumPageArtworkMode = 'Auto'
      NowPlayingArtworkMode         <None|Embedded|Folder|Specified|Logo|Auto>
                                    None : don't show artwork,
                                    Embedded : use image in MP3 file,
                                    Folder : use 'folder.jpg' in song directory,
                                    Specified : use MissingArtwork image,
                                    Logo : use fruitbox logo,
                                    Auto : use embedded/folder/missing/logo if available
      AlbumPageArtworkMode          <None|Folder|Specified|Logo|Auto>
                                    None : don't show artwork,
                                    Folder : use 'folder.jpg' in song directory,
                                    Specified : use MissingArtwork image,
                                    Logo : use fruitbox logo,
                                    Auto : use folder/missing/logo if available
I have an other question:

Is there any way that the "AlbumArtist" field appears in the pages instead of "Artist". That is, use "AlbumArtistText" instead of "ArtistText"
...yes, just put the line ArtistDescription = AlbumArtist in the skin file [general] section. Again, here's a snippet from the user guide for the pages text entries...

Code: Select all

      SongDescription *             <String> defining (part of) the song description for the song entry (first in a pair) in the pages.
                                    Can contain the following reserved keywords...
                                    'SongTitle', 'Artist', 'AlbumTitle', 'AlbumArtist', 'Year', 'Genre', 'TrackNumber',
                                    'Publisher', 'ISRC', 'Custom', 'PairedSongTitle', 'PairedArtist',
                                    'PairedAlbumTitle', 'PairedAlbumArtist', 'PairedYear', 'PairedGenre',
                                    'PairedTrackNumber', 'PairedPublisher', 'PairedISRC', 'PairedCustom'
      PairedSongDescription *       <String> defining (part of) the song description for the second song in a pair
                                    NOTE: In Albums mode (PageMode = Albums) this determines the Album Title line
      ArtistDescription *           <String> defining (part of) the artist description in the pages (same values as 'SongDescription')
      MatchedArtistDescription *    <String> used instead of 'ArtistDescription' if the artists of the songs in a pair are the same
                                    (or the second song in a pair is absent)
      ExtraDescription *            <String> defining (part of) the extra description in the pages (same values as 'SongDescription')
Note that in Albums mode, only the following parameters are used…
PairedSongDescription (The "Album" line)
ArtistDescription (The "Artist" line)
SongDescription (The "Songs" line(s))
ExtraDescription (The "Extra" line)

As a point of interest, if you define multiple entries for any of these parameters, they will all get concatentated into a single string, so you can create quite detailed descriptions using a variety of parameters and fixed characters.

Hope that helps,

Cheers,
Mike
Thank you very much for your help, I have already solved my problems with the data you have given me.

I have a question to ask you because I don't know if it can be done in fruitbox. Each time fruitbox starts the volume is at maximum. Is there any way to start at 50%, for example? I have searched the documentation but I have not found anything. If there is, I have not been able to see it.

Another little thing, Mike, in the fruitbox GitHub I have put an issue because the --choose-cfg option could not make it work with a touch screen without a keyboard. It appears on the screen, but it only responds to the keyboard and I would need it for a touch screen.

I didn't put it here before because I guess that possibility you will have to program it.

Thanks for everything and sorry for the inconvenience.

Saludos.

Re: fruitbox MP3 jukebox

Posted: Wed Feb 12, 2020 7:39 pm
by fruitbox
Skunki wrote:
Wed Feb 12, 2020 2:28 pm
Hello Guys,

hopelfully anyone con help me. I install Fruitbox an it is running very well.
But, i need to change the Skin. I have a limit Keyboard and i can only Use the Buttons 0.....9 and A and B on my Spezial Keypad.
How can i change the Buttons in Fruitbox the only the Buttons are used. I found pictures of the Fruitbox-Screen in the Internet with only numbers
are used.

Please help me and thanks a lot.

Skunki
Hi,

You can change the select buttons by using the SelectButtons keyword in the skin file. The characters you specify after the keyword indicate the letters you wish to use, and each time you use the keyword will add another select digit, for example...

SelectButtons = ABCDE
SelectButtons = 12345

… will produce the codes A1, A2, A3, A4, A5, B1, B2, … E5.

and...

SelectButtons = 12345

… will produce the codes 1, 2, 3, 4, 5

and...

SelectButtons = 09
SelectButtons = 09
SelectButtons = 09

.. will produce the codes 000, 001, ... 999

So for your case you'll probably need...

SelectButtons = AB
SelectButtons = 09

There is also another skin parameter SelectButtonsSequence which can be set to RowCol or ColRow. This reverses the order in which the select code digits are generated, so for example in your case they will change the order from A0, A1, A2..A9, B0, B1, B2..B9 to A0, B0, A1, B1, ...A9, B9.

Note that the codes displayed in the skin graphics will be particular to a certain SelectButtons value(s), so you will have to modify the skin graphics. To help you do this, you can run fruitbox with an additional command line parameter --debug-song-nums. This will display the select codes next to each song entry, so you can tell exactly what the codes are.

Cheers,
Mike

Re: fruitbox MP3 jukebox

Posted: Wed Feb 12, 2020 7:45 pm
by fruitbox
zLagos wrote:
Wed Feb 12, 2020 6:42 pm

I have a question to ask you because I don't know if it can be done in fruitbox. Each time fruitbox starts the volume is at maximum. Is there any way to start at 50%, for example? I have searched the documentation but I have not found anything. If there is, I have not been able to see it.

Another little thing, Mike, in the fruitbox GitHub I have put an issue because the --choose-cfg option could not make it work with a touch screen without a keyboard. It appears on the screen, but it only responds to the keyboard and I would need it for a touch screen.

I didn't put it here before because I guess that possibility you will have to program it.

Thanks for everything and sorry for the inconvenience.

Saludos.
Hi,

You can set the initial volume using the SongVolume parameter in the [general] section of the skin file. Again I must apologise as it should be in the user guide but isn't. The next release will have it.

i.e. SongVolume = 50 will set it at 50%

And yes, I am aware of the problem with the skin chooser touchscreen bug, and I'm intending to fix that in the next release. Thanks for reporting it.

Cheers,
Mike

Re: fruitbox MP3 jukebox

Posted: Thu Feb 13, 2020 1:06 am
by zLagos
fruitbox wrote:
Wed Feb 12, 2020 7:45 pm
zLagos wrote:
Wed Feb 12, 2020 6:42 pm

I have a question to ask you because I don't know if it can be done in fruitbox. Each time fruitbox starts the volume is at maximum. Is there any way to start at 50%, for example? I have searched the documentation but I have not found anything. If there is, I have not been able to see it.

Another little thing, Mike, in the fruitbox GitHub I have put an issue because the --choose-cfg option could not make it work with a touch screen without a keyboard. It appears on the screen, but it only responds to the keyboard and I would need it for a touch screen.

I didn't put it here before because I guess that possibility you will have to program it.

Thanks for everything and sorry for the inconvenience.

Saludos.
Hi,

You can set the initial volume using the SongVolume parameter in the [general] section of the skin file. Again I must apologise as it should be in the user guide but isn't. The next release will have it.

i.e. SongVolume = 50 will set it at 50%

And yes, I am aware of the problem with the skin chooser touchscreen bug, and I'm intending to fix that in the next release. Thanks for reporting it.

Cheers,
Mike

Yes, the volume works in terms of sound volume, but not in terms of the position of the volume signal on the screen.
In this code:

Code: Select all

[bitmap]
File = volume.png
Position = 8 567
Size = 12 51
VertScale = Volume
VertScaleMode = Clipped
I have tried to vary Position and Size, but VertScale and VertScaleMode are not documented and I don't know how to modify them.

Thanks for your help.

Re: fruitbox MP3 jukebox

Posted: Thu Feb 13, 2020 10:31 am
by zLagos
Skunki wrote:
Wed Feb 12, 2020 2:28 pm
Hello Guys,

hopelfully anyone con help me. I install Fruitbox an it is running very well.
But, i need to change the Skin. I have a limit Keyboard and i can only Use the Buttons 0.....9 and A and B on my Spezial Keypad.
How can i change the Buttons in Fruitbox the only the Buttons are used. I found pictures of the Fruitbox-Screen in the Internet with only numbers
are used.

Please help me and thanks a lot.

Skunki
The WallSmall skin runs only with numbers.

Re: fruitbox MP3 jukebox

Posted: Thu Feb 13, 2020 2:19 pm
by fruitbox
zLagos wrote:
Thu Feb 13, 2020 1:06 am
Yes, the volume works in terms of sound volume, but not in terms of the position of the volume signal on the screen.
In this code:

Code: Select all

[bitmap]
File = volume.png
Position = 8 567
Size = 12 51
VertScale = Volume
VertScaleMode = Clipped
I have tried to vary Position and Size, but VertScale and VertScaleMode are not documented and I don't know how to modify them.

Thanks for your help.
Hi,

Sorry I tested it on my latest version (v2.00) which isn't released yet, and it works fine. However, on the current release (v1.15) the SongVolume should be in the [sounds] section, not [general]. And there's also an issue where it doesn't update the volume scale until the volume is changed. Again, that's fixed in the next release

Cheers,
Mike

Re: fruitbox MP3 jukebox

Posted: Thu Feb 13, 2020 4:45 pm
by zLagos
fruitbox wrote:
Thu Feb 13, 2020 2:19 pm
zLagos wrote:
Thu Feb 13, 2020 1:06 am
Yes, the volume works in terms of sound volume, but not in terms of the position of the volume signal on the screen.
In this code:

Code: Select all

[bitmap]
File = volume.png
Position = 8 567
Size = 12 51
VertScale = Volume
VertScaleMode = Clipped
I have tried to vary Position and Size, but VertScale and VertScaleMode are not documented and I don't know how to modify them.

Thanks for your help.
Hi,

Sorry I tested it on my latest version (v2.00) which isn't released yet, and it works fine. However, on the current release (v1.15) the SongVolume should be in the [sounds] section, not [general]. And there's also an issue where it doesn't update the volume scale until the volume is changed. Again, that's fixed in the next release

Cheers,
Mike
OK. Perfect.

Thanks, Mike.

Re: fruitbox MP3 jukebox

Posted: Thu Feb 13, 2020 5:07 pm
by zLagos
I am trying to make a skin with this appearance, to be able to select one of the 6 albums on screen:
screenshot.jpg
screenshot.jpg (113.75 KiB) Viewed 1176 times
And when I play one of the two albums of the top line, it adds and reproduces them perfectly, but if I play one of the bottom four, fruitbox closes and leaves me this message on the screen:

Code: Select all

fruitbox v1.15 (Oct 10 2019, 21:10:35) by Mike Kingsley
A customisable MP3 Retro Jukebox for the Raspberry Pi.
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::at: __n (which is 34) >= this->size() (which is 11)
Abortado
[email protected]:~ $
My idea was to put on screen six pages, one for each album, but, or it cannot be done, or something I am doing wrong.

This is my fruitbox.cfg

Code: Select all

[general]
SkinName = TouchTwoAlbums
SkinDescription = Skin for 7" Touch Screen by iOtero
SkinSize = 1024 600
Database = /home/pi/rpi-fruitbox-master/skins/TouchTwoAlbums/fruitbox.db
MusicPath = /home/pi/musica/
PageMode = Albums
SortSongsBy Album
SelectKeys = 0909
AutoSelect = no
SelectTimeout = 150
SelectHoldTimeout = 150
AutoPageTurnTime = 3000
MaxPlaylistLength = 100
AlbumPageArtworkMode = Folder
AlbumPageMissingArtwork = splat.png
NowPlayingArtworkMode = Folder
NowPlayingMissingArtwork = splat.png
ArtistDescription = AlbumArtist
AutoPlay = no
AutoPlayGap = 3000
PlaysPerCoin1 = 0
SongsPerPage = 100
PageSize = 340 170
PairSongs = no
PairedSongDescription = AlbumTitle
PageMoveStyle = 20 0 no
AlbumArtSize = 120 120
AlbumArtOffset = 110 4
AlbumText = 0 0 0 0 255 centre true true false 1 124 340
ArtistText = 1 255 32 32 255 centre true true false 1 148 340
#SongText = 2 0 0 0 255 centre true true false 0 168 340
AlbumPageLineSpacing = 4

[sounds]
SongVolume = 50

[font]
File = sfchb.ttf
Height = 26

[font]
File = sfchb.ttf
height = 24

[font]
File = sfchb.ttf
height = 20

[font]
File = sfch.ttf
height = 16

[bitmap]
File = background.jpg
Position = 0 0
Size = 1024 600

[page]
Position = 5 14
Background = strip6.jpg

[page]
Position = 350 14
Background = strip6.jpg

[page]
Position = 5 184
Background = strip6a.jpg

[page]
Position = 350 184
Background = strip6a.jpg

[page]
Position = 5 354
Background = strip6.jpg

[page]
Position = 350 354
Background = strip6.jpg

[status]
Position = 818 102
Size = 200 200
Contents = coverart.txt

[status]
Position = 695 20
Size = 340 84
Text = 3 0 0 0 255 centre true true false 0 0 330
Contents = now_playing.txt
LineSpacing = 4
TimerTickPeriod = 60

[status]
Position = 696 108
Size = 116 198
Text = 3 0 0 0 255 centre true true false 0 0 118
Contents = data.txt
LineSpacing = 4

[status]
Position = 698 312
Size = 340 218
Text = 3 0 0 0 255 centre true true false 0 0 330
Contents = coming_up.txt
LineSpacing = 4

[touch song]
Bitmap = touch_red.png

[bitmap]
File = foreground.png
Position = 0 0
Size = 1024 600

[bitmap]
File = volume.png
Position = 8 542
Size = 12 51
VertScale = Volume
VertScaleMode = Clipped

[status]
Position = 37 541
Size = 93 53
Bitmap = volume_button.png
Contents = volume_pressed.txt

[status]
Position = 177 541
Size = 93 53
Bitmap = poweroff_button.png
Contents = poweroff_pressed.txt

[status]
Position = 299 541
Size = 94 53
Bitmap = pause_button.png
Contents = pause_pressed.txt

[status]
Position = 423 541
Size = 93 53
Bitmap = random_button.png
Contents = random_pressed.txt

[status]
Position = 546 541
Size = 94 53
Bitmap = skip_button.png
Contents = skip_pressed.txt

[status]
Position = 687 541
Size = 54 53
Bitmap = left_button.png
Contents = left_pressed.txt

[status]
Position = 741 541
Size = 53 53
Bitmap = right_button.png
Contents = right_pressed.txt

[status]
Position = 821 541
Size = 94 53
Bitmap = leftalpha_button.png
Contents = leftalpha_pressed.txt

[status]
Position =915 541
Size = 94 53
Bitmap = rightalpha_button.png
Contents = rightalpha_pressed.txt

[touch areas]
ButtonRandom = 423 541 94 53
ButtonSkip   = 546 541 94 53
ButtonLeft   = 687 541 48 53
ButtonRight  = 741 541 45 53
ButtonVol-   = 37 541 32 53
ButtonVol+   = 98 541 32 53
ButtonPause  = 299 541 94 53
ButtonPowerOff   = 177 541 94 53
ButtonLeftAlpha  = 821 541 94 53
ButtonRightAlpha = 915 541 94 53
Thanks for your help.

Re: fruitbox MP3 jukebox

Posted: Thu Feb 13, 2020 9:29 pm
by fruitbox
zLagos wrote:
Thu Feb 13, 2020 5:07 pm
I am trying to make a skin with this appearance, to be able to select one of the 6 albums on screen:

And when I play one of the two albums of the top line, it adds and reproduces them perfectly, but if I play one of the bottom four, fruitbox closes and leaves me this message on the screen:

Code: Select all

fruitbox v1.15 (Oct 10 2019, 21:10:35) by Mike Kingsley
A customisable MP3 Retro Jukebox for the Raspberry Pi.
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::at: __n (which is 34) >= this->size() (which is 11)
Abortado
[email protected]:~ $
My idea was to put on screen six pages, one for each album, but, or it cannot be done, or something I am doing wrong.


Thanks for your help.
Hi,

That's a bug. I've tried your fruitbox.cfg on my Pi and it works ok, so it must be database related. Could you provide me with some debug please?...Can you run fruitbox from a SSH session (so that you have the console on the remote screen and the jukebox on the touchscreen)?

Code: Select all

sudo gdb --args ./fruitbox --cfg skins/<YOUR SKIN NAME>/fruitbox.cfg
...this will place it into the debugger. Then you need to type in the following commands...

Code: Select all

run
..then select an album to cause the crash,

then type...

Code: Select all

bt
...this will give you a backtrace of the code execution. If you could send me that output I could try and get to the bottom of the problem

EDIT : It may be useful to send me your fruitbox.db file. You can email it to rpi-fruitbox (at) outlook (dot) com

Cheers,
Mike

Re: fruitbox MP3 jukebox

Posted: Sat Feb 15, 2020 9:29 pm
by fruitbox
Hi zLagos

I've put v1.16 on GitHub which should hopefully fix your Album mode issue. It also fixes the missing skin parameter descriptions in the user-guide, so that should help you too!

Cheers,
Mike

Re: fruitbox MP3 jukebox

Posted: Sun Feb 16, 2020 5:46 pm
by zLagos
fruitbox wrote:
Sat Feb 15, 2020 9:29 pm
Hi zLagos

I've put v1.16 on GitHub which should hopefully fix your Album mode issue. It also fixes the missing skin parameter descriptions in the user-guide, so that should help you too!

Cheers,
Mike
Thanks, Mike...

My OS is Raspbian Stretch Lite 2018-03-13 release.
I deleted everything that was installed in fruitbox on the raspberry pi, including skins.
I have installed the version you have on the github and everything seems to have gone well.
But when launching fruitbox, it gives me the following error message:

Code: Select all

/home/pi/rpi-fruitbox-master/fruitbox: error while loading shared libraries: libGLX.so.0: cannot open shared object file: No such file or directory

Re: fruitbox MP3 jukebox

Posted: Sun Feb 16, 2020 5:50 pm
by fruitbox
zLagos wrote:
Sun Feb 16, 2020 5:46 pm
fruitbox wrote:
Sat Feb 15, 2020 9:29 pm
Hi zLagos

I've put v1.16 on GitHub which should hopefully fix your Album mode issue. It also fixes the missing skin parameter descriptions in the user-guide, so that should help you too!

Cheers,
Mike
Thanks, Mike...

My OS is Raspbian Stretch Lite 2018-03-13 release.
I deleted everything that was installed in fruitbox on the raspberry pi, including skins.
I have installed the version you have on the github and everything seems to have gone well.
But when launching fruitbox, it gives me the following error message:

Code: Select all

/home/pi/rpi-fruitbox-master/fruitbox: error while loading shared libraries: libGLX.so.0: cannot open shared object file: No such file or directory
Ah...maybe I built it on Buster Lite...I can check later. Perhaps you could try building the executable yourself by following the instructions in build.txt in the build directory. If you don't want to do that no problem I'll do it later (as I'm sure others will need the Stretch version).

Cheers
Mike

Re: fruitbox MP3 jukebox

Posted: Sun Feb 16, 2020 8:23 pm
by zLagos
fruitbox wrote:
Sun Feb 16, 2020 5:50 pm
zLagos wrote:
Sun Feb 16, 2020 5:46 pm
fruitbox wrote:
Sat Feb 15, 2020 9:29 pm
Hi zLagos

I've put v1.16 on GitHub which should hopefully fix your Album mode issue. It also fixes the missing skin parameter descriptions in the user-guide, so that should help you too!

Cheers,
Mike
Thanks, Mike...

My OS is Raspbian Stretch Lite 2018-03-13 release.
I deleted everything that was installed in fruitbox on the raspberry pi, including skins.
I have installed the version you have on the github and everything seems to have gone well.
But when launching fruitbox, it gives me the following error message:

Code: Select all

/home/pi/rpi-fruitbox-master/fruitbox: error while loading shared libraries: libGLX.so.0: cannot open shared object file: No such file or directory
Ah...maybe I built it on Buster Lite...I can check later. Perhaps you could try building the executable yourself by following the instructions in build.txt in the build directory. If you don't want to do that no problem I'll do it later (as I'm sure others will need the Stretch version).

Cheers
Mike
I have followed all the steps in the build.txt file and, I have restarted the computer and when trying to start fruitbox, I get this error:

Code: Select all

fruitbox v1.16 (Feb 16 2020, 21:03:06) by Mike Kingsley
A customisable MP3 Retro Jukebox for the Raspberry Pi.
ALSA lib pcm_direct.c:977:(snd1_pcm_direct_initialize_slave) requested or auto-format is not available
ALSA lib pcm_dmix.c:1064:(snd_pcm_dmix_open) unable to initialize slave
ERROR: Couldn't install audio
Now I will fight with the sound... What a day ... :?

Re: fruitbox MP3 jukebox

Posted: Mon Feb 17, 2020 6:39 pm
by zLagos
I have managed to compile it without problems and it works correctly, but there is something I don't like at all ...

And I also have another problem that I don't understand.
I have not changed the music site, nor have I added more songs, and I have not modified the fruitbox.cfg, but when I start the fruitbox I create the database again, when there is an earlier one.
I don't like this because I have more than 11,000 songs and it takes more than an hour to create the database, but the worst part is that when I compare the previous database (which I had previously saved) with the new one with a comparator of files, these are identical, the content is the same without differentiating into a line, a comma or a space.
If you already had a database like the one you created, why do you do it? I don't understand it and it makes no sense to do it, just wasting users' time.
What causes this? If you know, tell me to see if I can prevent these things from happening, which are a very big waste of time.

Thanks for the help and apologies for all the problems I caused you.

Re: fruitbox MP3 jukebox

Posted: Mon Feb 17, 2020 9:26 pm
by fruitbox
zLagos wrote:
Mon Feb 17, 2020 6:39 pm
I have managed to compile it without problems and it works correctly, but there is something I don't like at all ...

And I also have another problem that I don't understand.
I have not changed the music site, nor have I added more songs, and I have not modified the fruitbox.cfg, but when I start the fruitbox I create the database again, when there is an earlier one.
I don't like this because I have more than 11,000 songs and it takes more than an hour to create the database, but the worst part is that when I compare the previous database (which I had previously saved) with the new one with a comparator of files, these are identical, the content is the same without differentiating into a line, a comma or a space.
If you already had a database like the one you created, why do you do it? I don't understand it and it makes no sense to do it, just wasting users' time.
What causes this? If you know, tell me to see if I can prevent these things from happening, which are a very big waste of time.

Thanks for the help and apologies for all the problems I caused you.
Hi,

fruitbox will re-create the database when it detects that the timestamp of the database file (fruitbox.db by default) is earlier than any timestamp in the music directory, so in your case I guess the timestamps must of changed somehow. If you want to disable this check, so that fruitbox doesn't recreate the database, then run fruitbox as usual, but including the --no-database-update command line option. Alternatively you can use the Linux command touch to make the timestamp of the database file newer than the music (i.e. touch fruitbox.db)

Also, I've now built the Stretch version of v1.16 and it's now on GitHub.

Cheers,
Mike

Re: fruitbox MP3 jukebox

Posted: Tue Feb 18, 2020 1:01 pm
by zLagos
fruitbox wrote:
Mon Feb 17, 2020 9:26 pm
zLagos wrote:
Mon Feb 17, 2020 6:39 pm
I have managed to compile it without problems and it works correctly, but there is something I don't like at all ...

And I also have another problem that I don't understand.
I have not changed the music site, nor have I added more songs, and I have not modified the fruitbox.cfg, but when I start the fruitbox I create the database again, when there is an earlier one.
I don't like this because I have more than 11,000 songs and it takes more than an hour to create the database, but the worst part is that when I compare the previous database (which I had previously saved) with the new one with a comparator of files, these are identical, the content is the same without differentiating into a line, a comma or a space.
If you already had a database like the one you created, why do you do it? I don't understand it and it makes no sense to do it, just wasting users' time.
What causes this? If you know, tell me to see if I can prevent these things from happening, which are a very big waste of time.

Thanks for the help and apologies for all the problems I caused you.
Hi,

fruitbox will re-create the database when it detects that the timestamp of the database file (fruitbox.db by default) is earlier than any timestamp in the music directory, so in your case I guess the timestamps must of changed somehow. If you want to disable this check, so that fruitbox doesn't recreate the database, then run fruitbox as usual, but including the --no-database-update command line option. Alternatively you can use the Linux command touch to make the timestamp of the database file newer than the music (i.e. touch fruitbox.db)

Also, I've now built the Stretch version of v1.16 and it's now on GitHub.

Cheers,
Mike
Thanks, Mike, that I needed to know what I was checking, knowing it, with changing the date and time because it is already there, and if not, then with the command line option of not loading the bbdd, which I did not remember or read it, and that I have read the userguide half a dozen times, but looking for other things, of course.

I'm glad that the new version is already on GitHub, although, on the third attempt, I managed to compile fruitbox. Of course, I had to start from scratch on a new microSD and a new installation of Raspbian Stretch Lite.

I have also finished my 3 skins for fruitbox. All three are for a 7/10 "touch screen at 1024x600. One for songs and two for albums. If you want to see them I can send them to you by email, they are not much, but they do everything I want, which is not a small thing...

I can also think of other things, such as being able to put two touch buttons for the sound volume, one to raise it and another to lower it, which I have not seen how to do. I guess it can't be done. Quiet, for now I am not going to ask for anything else, I have already bothered you enough.

Now I just need to solve the problem that option - choose-cfg does not work tactically .

Thank you very much for everything and sorry for the inconvenience I caused you.

Regards, zLagos aka iOtero.

Re: fruitbox MP3 jukebox

Posted: Tue Feb 18, 2020 8:34 pm
by fruitbox
Hi zLagos

Yes you can separate the single volume touch button into two buttons...just have two separate status objects. And yes please, if you can email your new skins to me that would be great! I can put them on GitHub for everyone to enjoy.

Cheers,
Mike

Re: fruitbox MP3 jukebox

Posted: Wed Feb 19, 2020 1:26 pm
by zLagos
fruitbox wrote:
Tue Feb 18, 2020 8:34 pm
Hi zLagos

Yes you can separate the single volume touch button into two buttons...just have two separate status objects. And yes please, if you can email your new skins to me that would be great! I can put them on GitHub for everyone to enjoy.

Cheers,
Mike
Hi Mike

I have created two buttons with the names volup_button.png and voldown_button.png and two text files, with the volup_pressed.txt and voldown_pressed.txt names, they contain:

Code: Select all

$IF_BUTTON_VOLUP_PRESSED$DRAW_BITMAP
$IF_NOT_BUTTON_VOLUP_PRESSED$UNDRAW_BITMAP
and

Code: Select all

$IF_BUTTON_VOLDOWN_PRESSED$DRAW_BITMAP
$IF_NOT_BUTTON_VOLDOWN_PRESSED$UNDRAW_BITMAP

And in my fruitbox.cfg I set them up like this:

Code: Select all

[status]
Position = 20 550
Size = 93 45
Bitmap = voldown_button.png
Contents = voldown_pressed.txt

[status]
Position = 70 550
Size = 93 45
Bitmap = volup_button.png
Contents = volup_pressed.txt

[touch areas]
ButtonVol-   = 20 550 40 45
ButtonVol+   = 70 550 40 45
But when executing the fruitbox I get this error message:

Code: Select all

fruitbox v1.16 (Feb 17 2020, 19:07:50) by Mike Kingsley
A customisable MP3 Retro Jukebox for the Raspberry Pi.
ERROR: Couldn't open status file '/home/pi/rpi-fruitbox-master/skins/Touch6Albums/voldown_pressed.txt' for input
Violación de segmento
I do not know what I'm doing wrong.

Thanks for your help.