Jan 31

Friday Post: PiPlay Sneak Peek

Hey All,

I wanted to give you all a sneak peek on the next version of PiPlay.  The biggest feature is that we are moving from YAML files to a sqlite DB to store a lot of the data.  There are also lots of optimizations and speed improvements.

My two favorite features have to be the ones that Mark implemented:  Favorites, and Game Info.  You can now favorite a game and it will appear in the favorites category.  Alongside the game list, you will also find info available about your game (as long as you have run the scraper.)

The web interface has also been extended to include database editing.  You can now add menu items to frontend via the web interface.

1 2 3 4 5

 

This release should be out in the next week or so.

Have a good weekend everyone!

Aug 08

Youtube-Viewer

Hey all,

As you saw in my previous post / video, I was running Youtube videos in fullscreen on my little display.  I was using an application (really just a 2000+ line perl script) that does this for me.  The program is called youtube-viewer (github)

Gcala posted a nice guide on how to set it up and has given me permission to also repost it here.  I’m making some modifications as I had to do a couple changes, but it works.

  1. sudo apt-get install gcc-4.7
  2. export CC=gcc-4.7
  3. export CXX=g++-4.7
  4. sudo apt-get install libwww-perl
  5. sudo cpan -i XML::Fast
  6. sudo wget https://github.com/downloads/ssilverm/youtube-viewer/youtube-viewer -O /usr/bin/youtube-viewer
  7. sudo chmod +x /usr/bin/youtube-viewer

Now just type youtube-viewer on the command line and you are good to go 🙂

List of Commands
all               : play all the results in order
next              : go to the next page (same as <ENTER>)
back              : return to the previous page
login             : will prompt you for login
logout            : will delete the authentication key
[integer]         : play the corresponding video
i, info [i]       : show more informations about one video
c, comments [i]   : show video comments (e.g.: c 19)
r, related [i]    : show related videos (e.g.: r 6)
v, videos [i]     : show author's latest videos
p, playlists [i]  : show author's latest playlists
subscribe [i]     : subscribe to author's channel
like, dislike [i] : like or dislike a video
fav, favorite [i] : favorite a video (e.g.: fav 3)
[keywords]        : search for youtube videos
3-8, 3..8         : same as 3 4 5 6 7 8
8 2 12 4 6 5 1    : play the videos in your order
-argv -argv2=v    : set some arguments (e.g.: -u=google)
e, edit-config    : edit and apply the configuration
load-config       : (re)load the configuration file
/my?[regex]*$/    : play videos matched by a regex (/i)
reset, reload     : restart the application
q, quit, exit     : close the application

Let me know if you have any issues or questions!

-Shea

Aug 06

Youtube in my Raspberry Pi? or Is that an LCD in your pocket or are you just happy to see me…

LCD Screen

This weekend has been fun.  I got my 2.0″ LCD Display from Adafruit in!  It’s an amazing little screen.  Bright, Sharp, Colorful.  MAME, Quake, NeoGeo games all look great on it.  A concern I had was how to power the little screen.  It can take 5v – 12v, and the connector is just two bare wires for power.

After testing the screen with a regular power supply, I decided I wanted to see if I could power it via the GPIO power pins on the Raspberry Pi itself.  I was concerned about the amperage it would require, but after connecting it to pins 2 and 6 (5v and GND), and powering on the Pi, they both turned on and I was watching Raspbian bootup.

Youtube

On the Raspberry Pi Forums, gcala contributed a post with a how to on getting Youtube to play from the command line to omxplayer.

Here is a video I took after getting youtube-viewer running on my Pi:

Hope you all enjoy this!

-Shea