Is there a way to call a program (Python script) from a local HTML page?
I have a YUI-colorpicker on that page and need to send its value to a microcontroller via rs232. (There is other stuff than the picker, so I can’t code an application instead of an HTML page.)
Later, this will migrate to a server, but I need a fast and easy solution now.
Thanks.
I see now that Daff mentioned the simple HTTP server, but I made an example on how you’d solve your problem (using
BaseHTTPServer):Now, from your JavaScript, you’d call
http://localhost:1337/?color=ffaabb