pijam-IoT basic app written using flask framework for raspberry pi pip install Flask export FLASK_APP=pilab.py python -m flask run --host=0.0.0.0 http://yourpi-ip:5000/on http://0.0.0.0:5000/off