Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    [application] qtPianobar

    Reply
    Page 1 of 3 | 1   2     3   | Next
    Bratag | # 1 | 2010-01-26, 03:47 | Report

    qtPianobar

    Is a qt 4.6 based c++ gui for the pianobar command line application

    Why a GUI and also why another pianobar GUI

    We all know why we needed a GUI for the command line app. As to why I wrote another pianobar GUI when fatal had already written one. Well the fact is we started writing them at the same time. He went python Qt, I went Qt 4.6 native C++, mostly because I wanted to see what all the fuss was about with Qt and I needed to dust off my c++ skills.

    Features
    • Play/pause
    • Skip Song
    • Favourite Song
    • Ban Song
    • Choose Station Dropdown
    • Song Time/left Display

    Things to do
    • Decent Username/Password handling
    • Creating Stations
    • General Cleanup of Code

    Known issues

    Right now the app assumes you have a config file in /home/user/.config/pianobar with the username and password fields uncommented and filled out with your pandora login. It also assumes that you have NOT customized the controls. If you dont have these things then it wont work - simple as that.

    For those of you who don't know what the config looks like - here is is

    Code:
    # This is an example configuration file for pianobar. You may remove the # from
    # lines you need and copy/move this file to ~/.config/pianobar/config
    # See manpage for a description of the config keys
    #
    # User
    user = your@user.name
    password = password
    
    # last.fm scrobbling
    #lastfm_user = username
    #lastfm_password = password
    #lastfm_scrobble_percent = 50
    
    # Proxy (for those who are not living in the USA)
    #control_proxy = http://127.0.0.1:9090/
    
    # Keybindings
    #act_help = ?
    #act_songlove = +
    #act_songban = -
    #act_stationaddmusic = a
    #act_stationcreate = c
    #act_stationdelete = d
    #act_songexplain = e
    #act_stationaddbygenre = g
    #act_songinfo = i
    #act_addshared = j
    #act_songmove = m
    #act_songnext = n
    #act_songpause = p
    #act_quit = q
    #act_stationrename = r
    #act_stationchange = s
    #act_songtired = t
    #act_upcoming = u
    #act_stationselectquickmix = x
    
    # Misc
    # mp3 or aacplus
    #audio_format = mp3
    #autostart_station = 123456
    #event_command = /home/user/.config/pianobar/eventcmd
    There are most likely going to be bugs. Post them here until i get the garage page up and running for this thing.

    Why Qt

    Like it or not - this is where maemo is going. Figured I better get on board early. I also chose Qt 4.6 because the libs are optified and wont chew up your root partition (The app is also optified)

    How

    I have put it into the queue for extras devel but for some reason its not processing - this is not altogether unusual. In the meanwhile you can grab it from http://thecrayonbox.org/files/N900/q....0-1_armel.deb

    You will also need to do from a command line.

    apt-get install libqt4-maemo5-core
    apt-get install libqt4-maemo5-gui

    though if the package is working correctly it should prompt you for those packages.

    Screenshot



    PS Thanks to fatal for porting pianobar. Excellent stuff.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by Bratag; 2010-01-26 at 05:08.
    The Following 3 Users Say Thank You to Bratag For This Useful Post:
    fatalsaint, Thorprime, ukki

     
    fatalsaint | # 2 | 2010-01-26, 04:11 | Report

    Looks awesome dude! Why the change of default pianobar controls?

    I really like your rendition of the design... its simplistic and yet perfectly functional.

    Definitely the optified libs are the way right now until pyqt4 gets there.

    ETA: Actually, I dont see any customized controls in your config?? What do you mean?
    Originally Posted by
    It also assumes that you have customized the controls

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by fatalsaint; 2010-01-26 at 04:24.

     
    Bratag | # 3 | 2010-01-26, 04:27 | Report

    Originally Posted by fatalsaint View Post
    Looks awesome dude! Why the change of default pianobar controls?

    I really like your rendition of the design... its simplistic and yet perfectly functional.

    Definitely the optified libs are the way right now until pyqt4 gets there.

    ETA: Actually, I dont see any customized controls in your config?? What do you mean?
    What I mean is if they customize the controls - things will go pear shaped . So um.... dont

    Edit | Forward | Quote | Quick Reply | Thanks

     
    fatalsaint | # 4 | 2010-01-26, 04:35 | Report

    Originally Posted by Bratag View Post
    What I mean is if they customize the controls - things will go pear shaped . So um.... dont
    Ohohoh... so you mean "haven't" customize the controls!

    Makes sense.. mine is the same way for now... good idea in putting that in the OP.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    j.s | # 5 | 2010-01-26, 05:04 | Report

    Originally Posted by Bratag View Post
    What I mean is if they customize the controls - things will go pear shaped . So um.... dont
    You might want to edit your original post. It says the opposite.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Bratag | # 6 | 2010-01-26, 05:12 | Report

    Originally Posted by j.s View Post
    You might want to edit your original post. It says the opposite.
    Good point - done

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Thorprime | # 7 | 2010-01-26, 05:23 | Report

    Awesome job Bratag.
    ++

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Bratag | # 8 | 2010-01-27, 18:41 | Report

    Finally got this thing to build an should be in extras-dev shortly. Be happy if people would vote for it to get it into extras-testing. It includes a truly horrible icon, I will be very happy to accept suggestions/replacements for both the icon and the app in general.

    Please note all standard warning messages about how installing stuff from extras-dev can do horrible things to your phone apply (though with this app I cant see that happening)

    Edit | Forward | Quote | Quick Reply | Thanks

     
    ViciousXUSMC | # 9 | 2010-01-28, 14:54 | Report

    Bratag what are the requirements for a icon (size & file type) I'll see if I can lend some assistance to you by making one.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    mmoylan | # 10 | 2010-01-29, 02:59 | Report

    I installed qtpianobar 1.0-2 and it worked fine the first time that I used it and now anytime I launch it I cant do anything stations control is grayed out no music plays. I am running pianobar 1.1-1 and it runs fine from the command line auto logs in fine, I have not customized any controls, has anyone else experienced this, I hope someone can help me out I know this is not much to go on is there any sort of debug output that I can get from the app.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 1 of 3 | 1   2     3   | Next
vBulletin® Version 3.8.8
Normal Logout