examples

Simple code snippets to work with flespi

View project on GitHub

flespi.io http stream receiver (python)

Using aiohttp (python 3.5 or newer)

Example: python3-aiohttp.py

To start this example you need to install requirements:

pip install aiohttp

Usually such a command requires superuser privileges (using sudo) or virtualenv.

Then start example HTTP server:

python3 python3-aiohttp.py

Using Tornado (python 2.7)

Example: python2-tornado.py

To start this example you need to install requirements:

pip install tornado==5.1

Usually such a command requires superuser privileges (using sudo) or virtualenv.

Then start example HTTP server:

python2 python2-tornado.py