very nice. any reason for (alref (req 'args) "code") instead of (arg req "code") ? (even if token count is a silly metric :))
One thing really confusing me: it looks like it writes the string value of the "code" parameter to the serial port, is that how it's supposed to work? (I notice it's the same in python)
I didn't think of using arg; that's obviously better.
Yes, the code parameter is written to the serial port, where it is received by the Arduino microcontroller board. This board does the work of generating the IR signal corresponding to the code. The details are at http://arcfn.com/2009/11/controlling-your-stereo-over-web-wi...
"Arc requires the clearing of srvops* unless you want the webserver to respond to a dozen URLs in unexpected ways."
Specifically, the Arc web server automatically implements /login, /logout, /whoami, /admin, /mismatch, and various other things, unless you clear out srvops*. I don't know that any of these are security holes, but I'd rather disable them since I don't want them.