Versatile BetaBrite
LED Sign Control

Scripts

I've written a few starter scripts in Python, but keep in mind that these can be written in any language, just as long as they follow the common formatting syntax for their output.

Note that many of the service scripts use a cacheing mechanism to avoid hammering their respective data sources. Caches are stored in the same directory as the script, so you'll want to ensure that directory isn't read-only.

Service Scripts

Charlie Chan
$ bbcc.py

Charlie Chan say, Use this script to spread my wisdom.

Final Gear
$ bbfinalgear.py

Retrieves and displays Top Gear/Final Gear countdown data as seen on FinalGear.com.

Finance
$ bbstock.py <symbolset>

Provides stock information for various company stocks, indices, and market indicators. The symbolsets can be modified within the script. Run "bbstock.py" with no arguments to see available default symbolsets. For example, "bbstock.py index" to see some US stock indices.

Fortune
$ bbfortune.py

Returns a random fortune (via fortune-mod). Script can be modified to allow only certain fortune files (defaults to known-worksafe files).

RSS
$ bbrss.py <source/rssurl>

Prints a single randomly-selected article from an RSS feed. You can either choose from a list of predefined news sources, or provide a URL to your own RSS feed. Run with no arguments to see the list of predefined sources.

Weather
$ bbweather.py <zipcode>

Prints out a brief forecast. Edit the "numdays" variable to change the length of the forecast.

Utility Scripts

Repeat Execution
$ cmdrepeat.py <delay (minutes)> <command arg arg ...>

Unlike the above service scripts, this utility script isn't meant to be run by bbusb. Instead, it's meant for repeatedly running bbusb (and updating your sign) with a set interval, without needing to set up a cron job (or similar). For example, running "cmdrepeat.py 1 bbusb -u config.txt" will update your sign once a minute using the provided config file.