Notices


Reply
Thread Tools
Posts: 2,014 | Thanked: 1,581 times | Joined on Sep 2009
#1
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.
__________________
Class .. : Power Poster, Potential Coder
Humor .. : [*********] Alignment: Chaotic Evil
Patience : [***-------] Weapon(s): +2 Logic Mace
Agro ... : |*****-----] Relic(s) : G1, N900


Last edited by Bratag; 2010-01-26 at 05:08.
 

The Following 3 Users Say Thank You to Bratag For This Useful Post:
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#2
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?
It also assumes that you have customized the controls
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!

Last edited by fatalsaint; 2010-01-26 at 04:24.
 
Posts: 2,014 | Thanked: 1,581 times | Joined on Sep 2009
#3
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
__________________
Class .. : Power Poster, Potential Coder
Humor .. : [*********] Alignment: Chaotic Evil
Patience : [***-------] Weapon(s): +2 Logic Mace
Agro ... : |*****-----] Relic(s) : G1, N900

 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#4
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.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
Posts: 486 | Thanked: 251 times | Joined on Oct 2009
#5
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.
 
Posts: 2,014 | Thanked: 1,581 times | Joined on Sep 2009
#6
Originally Posted by j.s View Post
You might want to edit your original post. It says the opposite.
Good point - done
__________________
Class .. : Power Poster, Potential Coder
Humor .. : [*********] Alignment: Chaotic Evil
Patience : [***-------] Weapon(s): +2 Logic Mace
Agro ... : |*****-----] Relic(s) : G1, N900

 
Posts: 28 | Thanked: 15 times | Joined on Dec 2009
#7
Awesome job Bratag.
++
 
Posts: 2,014 | Thanked: 1,581 times | Joined on Sep 2009
#8
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)
__________________
Class .. : Power Poster, Potential Coder
Humor .. : [*********] Alignment: Chaotic Evil
Patience : [***-------] Weapon(s): +2 Logic Mace
Agro ... : |*****-----] Relic(s) : G1, N900

 
Posts: 188 | Thanked: 34 times | Joined on Dec 2009
#9
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.
 
Posts: 11 | Thanked: 1 time | Joined on Dec 2009
#10
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.
 
Reply


 
Forum Jump


All times are GMT. The time now is 16:51.