Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Howto: Pandora via command line. -- pianobar --

  1. #1
    Join Date
    Mar 2005
    Location
    Chicago
    Beans
    249

    Thumbs down Howto: Pandora via command line. -- pianobar --

    I just found this and it's not new. There are some posts about it.
    Here is the consolidated how-to

    Pianobar is a command line tool: Dev's Link

    Make sure you have what you need to compile the software

    Code:
    sudo apt-get install build-essential
    install the dependencies

    Code:
    sudo apt-get install libao-dev libmad0-dev libfaad-dev
    download the source
    Code:
    wget http://github.com/PromyLOPh/pianobar/archives/master/PromyLOPh-pianobar-3631791.tar.gz
    or download it from
    http://github.com/PromyLOPh/pianobar

    untar it
    Code:
    tar xvf Promy*.tar.gz
    change directory
    Code:
    cd Promy*
    compile
    Code:
    make
    
    sudo make install
    then start the program & follow the prompts to log in.
    Code:
    pianobar
    Press "+" if you want to give the song a thumbs up.
    Press "-" if you want to give the song a thumbs down.

    Press "N" to skip the song.

    Pretty sweet! No more flash crashing or having the browser open for no reason.

    Hope this helps
    Last edited by greenwom; July 18th, 2010 at 05:03 AM.
    Registered Linux user #393688
    I don't know much but I'll try to help

    IXOYE

  2. #2
    Join Date
    Sep 2009
    Beans
    467

    Re: Howto: Pandora via command line. -- pianobar --

    sweet perfect explanation. is there a way 2 pause it?
    Just hand me my pitchfork and torch.

  3. #3
    Join Date
    Mar 2005
    Location
    Chicago
    Beans
    249

    Re: Howto: Pandora via command line. -- pianobar --

    Just hit "P"

    Just like any other command you can always look at the man page to get instructions and descriptions.

    Code:
    $ man pianobar
    Registered Linux user #393688
    I don't know much but I'll try to help

    IXOYE

  4. #4
    Join Date
    Sep 2009
    Beans
    467

    Re: Howto: Pandora via command line. -- pianobar --

    Quote Originally Posted by greenwom View Post
    Just hit "P"

    Just like any other command you can always look at the man page to get instructions and descriptions.

    Code:
    $ man pianobar
    sorry for the stupid post, i didn't think.
    Just hand me my pitchfork and torch.

  5. #5
    Join Date
    Sep 2009
    Beans
    467

    Re: Howto: Pandora via command line. -- pianobar --

    Code:
      act_stationdelete = d
                  Delete current station.
    
           act_songexplain = e
                  Explain why this song is played.
    
           act_stationaddbygenre = g
                  Add genre station provided by pandora.
    
           act_history = h
                  Show history.
    
           act_songinfo = i
                  Print information about currently played song/station.
    
           act_addshared = j
                  Add shared station by id. id is a very long integer without "sh"
                  at the beginning.
    
           act_songmove = m
                  Move current song to another station
    
           act_songnext = n
                  Skip current song.
    
           act_songpause = p
                  Pause/Continue
    
           act_quit = q
                  Quit pianobar.
    
           act_stationrename = r
                  Rename currently played station.
    
           act_stationchange = s
                  Select another station.
    Just hand me my pitchfork and torch.

  6. #6
    Join Date
    Apr 2008
    Location
    AZ
    Beans
    2,064
    Distro
    Ubuntu

    Re: Howto: Pandora via command line. -- pianobar --

    thanks greenwom, pianobar is a lot less resource intensive than playing pandora through flash.

  7. #7
    Join Date
    Mar 2005
    Location
    Chicago
    Beans
    249

    Re: Howto: Pandora via command line. -- pianobar --

    Just a FYI, for some reason, I can't wget the file. It's resolving and downloading a file with that name but it's not a tar ball. So just go to the web site (link above and download it through the browser.) Then the tar ball will be right.
    Registered Linux user #393688
    I don't know much but I'll try to help

    IXOYE

  8. #8
    Join Date
    Apr 2008
    Location
    AZ
    Beans
    2,064
    Distro
    Ubuntu

    Re: Howto: Pandora via command line. -- pianobar --

    Quote Originally Posted by greenwom View Post
    Just a FYI, for some reason, I can't wget the file. It's resolving and downloading a file with that name but it's not a tar ball. So just go to the web site (link above and download it through the browser.) Then the tar ball will be right.
    yes thats what i had to do as well. i thought it was just me

  9. #9
    Join Date
    Sep 2009
    Beans
    467

    Re: Howto: Pandora via command line. -- pianobar --

    yea the problem is you don't get the header info when you download through wget.

    you can download it through the link below.

    http://github.com/PromyLOPh/pianobar/tarball/master

    or use the link in the first post.
    Last edited by v1ad; August 21st, 2010 at 05:52 AM.
    Just hand me my pitchfork and torch.

  10. #10
    Join Date
    Sep 2009
    Beans
    467

    Re: Howto: Pandora via command line. -- pianobar --

    also if you want to customize your pianobar for autologin. make, save, and edit this script to your needs in /home/your_user_name/.config/pianobar/config

    the config will be the file name.

    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_pandora_username
    #password = your_pandora_password
    
    # 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, mp3-hifi or aacplus
    #audio_format = mp3
    #autostart_station = 123456
    #event_command = /home/user/.config/pianobar/eventcmd
    #sort = quickmix_10_name_az
    uncomment the lines that you will use. i will try to work on a script that will run it in a screen in the foreground.
    Just hand me my pitchfork and torch.

Page 1 of 3 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •