When I pledged for the Omega on Kickstarter, I wanted to use the device as a web server to control its IO. I really like to work with Python, so I usually does this kind of stuff with the Flask framework. Unfortunately, Flask does not fit on the 16MB memory. I looked for other frameworks and found the Bottle web framework. Bottle is on the opkg repo, so it is really easy to install on the Omega. And it fits!
I put together a small demo that control the RGB LEDs on the breakout board. (see picture below). The code is attached after the picture.
On a fresh Omega, here are the step to make the script run :
opkg update opkg install python3-bottle ln -s /usr/bin/python3 /usr/bin/python cd wget -O web.tar.gz --no-check-certificate https://community.onion.io/uploads/files/1447438533891-web.tar.gz tar -zxvf web.tar.gz cd web python server.py
After that, all you need to do is open a browser with the address IP of your Omega on port 5000 (e.g. http://192.168.2.72:5000/)
The Bottle framework on opkg is using Python 3, so in the steps above, we create a symlink so that the python command points to python3
Bottle is really easy to use, you can find the docs here : http://bottlepy.org/docs/dev/tutorial.html
Anyway, let me know what you think about it!