Arc Forumnew | comments | leaders | submitlogin
Arc beats Python for a web-controlled stereo (arcfn.com)
8 points by pmarin 5494 days ago | 5 comments


2 points by conanite 5494 days ago | link

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)

-----

3 points by kens 5494 days ago | link

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...

-----

2 points by thaddeus 5494 days ago | link

another great post by arcfn!

re: > "Arc requires the silly clearing of srvops*"

Why would ken need to clear this? I don't think this is required.

-----

4 points by kens 5494 days ago | link

I should have said:

"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.

-----

1 point by thaddeus 5494 days ago | link

I see.

-----