This project is read-only.
Powerchumby.cgi is the interface that the PowerChumby cmdlets use to control the chumby, but it is also accessible directly. If you would like to use the cgi directly the below outlines all of the functions that are currently available.

http://chumbyip/custom/cgi-bin/powerchumby.cgi?action=getchumby
Returns info about the Chumby including name, IP address, current channel, available channels, version, and PowerChumby version (version of the .cgi script).

http://chumbyip/custom/cgi-bin/powerchumby.cgi?action=mute&var1=off
var1=on
Turns Mute on
var1=off
Turns Mute off

http://chumbyip/custom/cgi-bin/powerchumby.cgi?action=setvolume&var1=0 - 100
This changes the volume level of the chumby. var1 can be any value from 0 to 100. It indicates the percentage of maximum volume.

http://chumbyip/custom/cgi-bin/powerchumby.cgi?action=playmusic&var1=http://pathtomp3orstream
This uses the music player to play the stream in var1.

http://chumbyip/custom/cgi-bin/powerchumby.cgi?action=stopmusic
This stops the music player. There is currently no pause or way to just start playing again.

http://chumbyip/custom/cgi-bin/powerchumby.cgi?action=nightmode&var1=off
var1=on
Turns night mode on
var1=off
Turns night mode off

http://chumbyip/custom/cgi-bin/powerchumby.cgi?action=setchannel&var1=channelname
Sets the current channel to the channel specified in var1. If the channel does not exist this does nothing.

http://chumbyip/custom/cgi-bin/powerchumby.cgi?action=reloadchannel
Reloads the current channel. This is useful if you are making changes to the channel via chumby.com and want to see the changes.

http://chumbyip/custom/cgi-bin/powerchumby.cgi?action=setwidget&var1=widgetname
Sets the current widget to the widget specified in var1. If the widget does not exist in the current channel this command will not do anything.

http://chumbyip/custom/cgi-bin/powerchumby.cgi?action=shufflewidget
This will shuffle the widgets in the current channel. Unfortunately, there is no way to turn off shuffle at the moment.

http://chumbyip/custom/cgi-bin/powerchumby.cgi?action=nextwidget
This sets the current widget to the next widget in the channel

http://chumbyip/custom/cgi-bin/powerchumby.cgi?action=prevwidget
This sets the current widget to the previous widget in the channel

http://chumbyip/custom/cgi-bin/powerchumby.cgi?action=setscreen&var1=Cannot resolve the wiki link macro, invalid number of inputs.
var1=0ff
Turns off the display
var1=dim
Dims the display
var1=bright
Sets the display to normal mode of operation

http://chumbyip/custom/cgi-bin/powerchumby.cgi?action=sshd&var1=off
var1=off
Turns off ssh
var1=on
Turns on ssh. Please note that the default password for root is blank so use this with caution

Last edited Dec 6, 2010 at 5:25 AM by toenuff, version 1

Comments

No comments yet.