Go to advanced search

by Chinasaur
Sun Mar 17, 2013 10:34 pm
Forum: Media centres
Topic: Continual Pianobar Setup
Replies: 7
Views: 4275

Re: Continual Pianobar Setup

I have been working on making pianod more fully compatible with Raspbian and ArchLinuxARM. See here for up-to-date info.
by Chinasaur
Sun Mar 17, 2013 10:29 pm
Forum: Media centres
Topic: pianod+wsgw: Pandora client/server with nice web interface:
Replies: 38
Views: 10531

pianod+wsgw: Pandora client/server with nice web interface:

pianod is a nice Pandora client/server that works great on RasPi (tested on Raspbian & Arch). It overlaps in functionality with pianobar, but is designed to run more as a background service instead of as an interactive program. It has a lot of nice features and is 100% open source. The author is ac...
by Chinasaur
Fri Mar 08, 2013 6:02 pm
Forum: C/C++
Topic: Math on the GPU (RasPi VideoCore)
Replies: 1
Views: 2055

Re: Math on the GPU (RasPi VideoCore)

Ah, I seem to have missed this topic: http://www.raspberrypi.org/phpBB3/viewt ... =24&t=3330
by Chinasaur
Fri Mar 08, 2013 4:44 pm
Forum: C/C++
Topic: Math on the GPU (RasPi VideoCore)
Replies: 1
Views: 2055

Math on the GPU (RasPi VideoCore)

Edited: I misinterpreted what GLM does, so removed references to that. I think there are some people interested in putting more arbitrary math on the VideoCore. Just posting some thoughts. My understanding is before OpenCL, CUDA, etc., shaders was the way to do GPGPU. This approach relies on the GL...
by Chinasaur
Sun Mar 03, 2013 1:19 am
Forum: Media centres
Topic: Automatic speakers on/off; ALSA callbacks or...?
Replies: 3
Views: 1483

Automatic speakers on/off; ALSA callbacks or...?

Hi guys, I'm pretty happy with my RasPi internet radio setup in my kitchen. The only thing that bugs me about it is that I have to manually turn the speakers on and off. I'm going to go ahead and setup a simple transistor switch for the speakers off of GPIO so I can turn the speakers on and off from...
by Chinasaur
Sun Feb 24, 2013 7:45 am
Forum: General discussion
Topic: OSD (on screen display) w/o X
Replies: 44
Views: 13954

Re: OSD (on screen display) w/o X

Hi Fred, I recommend you take a look at my poptart program (linked above). The file poptart.c includes everything you need to get a drawing surface open and text rendered. Probably just compiling poptart and playing with it is a good place to start to verify that everything is working for you, and t...
by Chinasaur
Sun Feb 24, 2013 7:39 am
Forum: Python
Topic: Python Streaming MP3 Player
Replies: 1
Views: 2262

Re: Python Streaming MP3 Player

It's not a very good option, but I know MPD can handle streaming URLs from Google Music. The real downside to this is that I was not able to find a way to get MPD to load any metadata before you actually start to play the song. So if you queue up a bunch of Google Music URLs, your playlist just look...
by Chinasaur
Thu Feb 14, 2013 10:14 pm
Forum: General discussion
Topic: OSD (on screen display) w/o X
Replies: 44
Views: 13954

Re: OSD (on screen display) w/o X

Chinasaur wrote:
  • 1) Include the relevant headers as you already mentioned
So, what is meant by "include the relevant headers" is to give the #include "headername.h" preprocessor instruction in your code files and then do steps 2 and 3 above to tell the compiler where to find the headers and libraries.
by Chinasaur
Thu Feb 14, 2013 8:46 pm
Forum: General discussion
Topic: OSD (on screen display) w/o X
Replies: 44
Views: 13954

Re: OSD (on screen display) w/o X

Hi Fred, just reread your question and I believe you're getting off on the wrong track. To be clear, you should not be copying any of the header files into your own project. Just leave them in their include directory and tell the compiler where to go to find them all.
by Chinasaur
Thu Feb 14, 2013 8:45 pm
Forum: General discussion
Topic: OSD (on screen display) w/o X
Replies: 44
Views: 13954

Re: OSD (on screen display) w/o X

Hi Fred, what are you using to compile your project? Probably the simplest thing is to copy the compile flags (CFLAGS, INCLUDES) and link flags (LDFLAGS) from the hello_font Makefile and then use make to build. In particular there is a Makefile.include file in an outer directory that sets most stuff...
by Chinasaur
Thu Jan 10, 2013 8:09 pm
Forum: General discussion
Topic: Google Music
Replies: 14
Views: 12005

Re: Google Music

Okay, I tried a few things here. First just updated the midori on my pi from the repo. Unfortunately I don't remember what it was before, but the new version in repo is 4.3. This seemed to "improve" things; GMusic gets a little farther in HTML5 mode but still gets stuck on the loading music step. Se...
by Chinasaur
Thu Jan 03, 2013 10:02 pm
Forum: General discussion
Topic: Google Music
Replies: 14
Views: 12005

Re: Google Music

Thanks for the tips; I'll try the new Midori. I've been running stuff in the matchbox window manager to streamline running GUI apps from a mostly console setup; works nicely.
by Chinasaur
Wed Dec 05, 2012 10:06 pm
Forum: Media centres
Topic: Continual Pianobar Setup
Replies: 7
Views: 4275

Re: Continual Pianobar Setup

It took me longer than it should have to find up-to-date information, but apparently systemd is the modern way to set up services (?). See here for a pianod.service example file ; I use this to start/stop pianod as a background service and have it start at boot. You could adapt this for pianobar. sy...
by Chinasaur
Wed Dec 05, 2012 10:03 pm
Forum: Media centres
Topic: Continual Pianobar Setup
Replies: 7
Views: 4275

Re: Continual Pianobar Setup

Okay, I have pianod running as a daemon now. It doesn't seem drastically different from just running pianobar with the FIFO, but it does take care of some things so you can easily control it over the network. It's also actively under development and already works fine, so will probably improve. I'll...
by Chinasaur
Mon Dec 03, 2012 4:16 pm
Forum: Media centres
Topic: Continual Pianobar Setup
Replies: 7
Views: 4275

Re: Continual Pianobar Setup

I agree `pianod` is probably ultimately the way to go. I was able to build it on Arch without too much trouble; looks like someone already went through and added some tweaks for RPi. Haven't actually set it up and played with running it though. To solve your immediate issue, you can use GNU screen (...
by Chinasaur
Sun Nov 18, 2012 4:53 am
Forum: General discussion
Topic: auto start x with program and leave on exit?
Replies: 20
Views: 10537

Re: auto start x with program and leave on exit?

I faced similar issues trying to run Midori on its own as a pseudo-kiosk app. Midori really doesn't like to give you a nice fullscreen window without a window manager. So I did: sudo apt-get install matchbox And then had xinit run a script with (minimally) the following: #!/bin/sh matchbox-window-ma...
by Chinasaur
Thu Nov 15, 2012 7:00 pm
Forum: Other projects
Topic: Pibow acrylic layer thickness
Replies: 4
Views: 2715

Re: Pibow acrylic layer thickness

Thanks very much! One thing I wonder about is breaking some of the layers that are just big rings (I think #1 and #2 especially) into two pieces so that you don't have to waste so much material in the donut hole. For that to work nicely probably adding additional screws is helpful. I imagine you guy...
by Chinasaur
Sun Nov 11, 2012 8:36 am
Forum: Other projects
Topic: Why not slightly larger cases?
Replies: 18
Views: 5144

Re: Why not slightly larger cases?

Wanted to follow up: actually the acrylic thickness looks like 3 mm; a pretty standard thickness. Sorry for the earlier misinformation. Also, after fiddling with my RPi in the Pibow a little, it seems clear to me that pulling the SD card out by the edges is a lot harder than gripping it by the faces...
by Chinasaur
Sun Nov 11, 2012 8:27 am
Forum: Other projects
Topic: Pibow acrylic layer thickness
Replies: 4
Views: 2715

Re: Pibow acrylic layer thickness

Sorry, my first measurement was with the white backing still on the acrylic; I should have realized that this could add more than 500 um. So now my measurement looks like 3 mm, which is a standard thickness.
by Chinasaur
Sun Nov 11, 2012 3:55 am
Forum: Other projects
Topic: Why not slightly larger cases?
Replies: 18
Views: 5144

Re: Why not slightly larger cases?

I totally agree that cases with the SD card hanging loose are deficient. I'm adding a VESA mount to replace the backplate of the Pibow case (couldn't wait for the rumored official VESA options to come out). The way I designed it, the VESA mount bar of acrylic is right behind the SD, so the SD is sti...
by Chinasaur
Sun Nov 11, 2012 3:38 am
Forum: Other projects
Topic: Case that use screwholes of Rev2/512MB Rpi?
Replies: 5
Views: 2014

Re: Case that use screwholes of Rev2/512MB Rpi?

Is there a diagram of the board to help in the design? From the updated revision 2.0 announcement: Two 2.5mm (drilled 2.9mm for M2.5 screw) non plated mounting holes have been provided to assist with ATE test mounting. Positions of these holes relative to the bottom left of the PCB (Power Input Cor...
by Chinasaur
Sat Nov 10, 2012 4:09 am
Forum: Other projects
Topic: Pibow acrylic layer thickness
Replies: 4
Views: 2715

Pibow acrylic layer thickness

Hey, I'm trying to make some mods to the Pibow design. They put an Adobe Illustrator file on Thingiverse (thanks!), but I'm having trouble with the layer thickness. By my measurement, the acrylic layers are something like 3.75 mm thick. I don't have my own equipment/materials, so I was hoping to get...
by Chinasaur
Wed Oct 24, 2012 4:16 pm
Forum: General discussion
Topic: OSD (on screen display) w/o X
Replies: 44
Views: 13954

Re: OSD (on screen display) w/o X

C is compiled and can run very fast and light, something that's kind of important for a daemon running all the time on such a low-spec system. Good points. I'm kind of at a point for design decisions. My basic version (https://github.com/chinasaur/poptart) doesn't run as a daemon; you just call it ...
by Chinasaur
Wed Oct 24, 2012 4:07 pm
Forum: General discussion
Topic: OSD (on screen display) w/o X
Replies: 44
Views: 13954

Re: OSD (on screen display) w/o X

I've submitted a new pull request. The vgfont library had a limitation of only 200 characters per line; trying to draw more than that caused an assertion fail (or I assume a segfault if you have assertions off). This patch releases the limitation: https://github.com/chinasaur/firmware/commit/9f3059b...

Go to advanced search