O'Reilly logo

TiVo Hacks by Raffi Krikorian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Writing Code

Hacks #88-100

We’ve run the gamut of the kinds of tips, tricks, and hacks it takes to become a TiVo power user, but we haven’t taught you to build anything yourself yet. Up to this point, the extent to which you’ve hacked your TiVo’s software has only meant borrowing and running other people’s code.

Let’s change that.

While this chapter will not magically turn you into a TiVo code jockey, it will whet your appetite, providing a reasonable primer on the concepts you’ll need to understand if you’re going to start stringing together pieces of code to suit your purposes. To sit at the feet of the masters, hang out at some of the user forums, such as http://alt.org/forum, devoted to open source TiVo development. Be forewarned, though, that most contributors there are pretty advanced. But that shouldn’t stop you from listening in and learning.

As is usually the case with hacking, there’s more than one way to do just about everything. There are two programming languages on TiVo you usually stumble over:

Tcl

Tcl (pronounced “tickle”) is the glue language of the TiVo world, passing commands between interactive applications, and providing a lower learning and development curve to building lightweight TiVo applications.

C

C performs much of the heavy lifting in TiVo. TiVo’s main brains (read: binaries) are written in C. C is harder to write correctly, but it’s compiled for speed and let’s you do so much more in terms of interfacing with the TiVo hardware.

Which language you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required