You can control LEGO® Power Functions with this Flask application if you install it on a Raspberry Pi.
There's more information about this project in this blog post.
There's more information about this project in this archived blog post.
https://www.youtube.com/watch?v=MxAEXKPW3xQ
- http://alexba.in/blog/2013/01/06/setting-up-lirc-on-the-raspberrypi/
- https://github.com/iConor/lego-lirc
- Unit tests for jQuery