1 (edited by ih8gates 2007-12-20 14:04:04)

Topic: Switch Chumby channels with an HTTP call

Taking advantage of Duane's new Easter egg in Control Panel 2.6.51, I created a *really* simple script to allow changing of the channel via an HTTP call.

Keep in mind that I don't know shell from.... well, I don't know shell. I cobbled this together from samples I found.

put this in /psp/cgi-bin/ :


echo $QUERY_STRING > /tmp/change_profile

echo "Content-type: text/html"
echo ""
echo "<html>"
echo "<body>"
echo "<p>channel will switch to <b>" 
echo "</b> on next refresh</p>"
echo "</body>"
echo "</html>"

I named it "channel_switch". (for my fellow newbs: make sure that you have the line-terminations right and chmod the file a+x )

then you can run:


replacing Default with the desired channel name. Careful - proper-case matters.

Anyone wanna take a stab at a script that returns the available channels? Is that possible (i did find a script that supposedly lists available widgets, but that was parsing a dir on the local filesystem)?

Re: Switch Chumby channels with an HTTP call

Hmmm, perhaps I should spit out a file with the available channels.

Something to think about.