Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 916 Bytes

Readme.md

File metadata and controls

23 lines (13 loc) · 916 Bytes

Raspi

Tryout: Git, Raspberry Pi, Docker, Sense-Hat and Flask.

I have a RaspberryPi 3 with Docker installed and a web application running in a container. It's a Flask enabled website that displays temperature, air pression and relative humidity collected from Sense-Hat.

##Instructions

  1. Install Docker on Raspberry Pi 3

  2. Download Dockerfile and web.tar.gz

  3. Build Docker image: docker build -t rbontekoe/myflaskapp:1.0 .

  4. Create container: docker run --privileged -it -p 5005:80 rbontekoe/myflaskapp:1.0

  5. Start app: python3 web/app.py

  6. Load web app in browser: http://raspi2:5005/ - I use my Chromebook to access my Raspberry Pi 3 remote via ssh, otherwise use http://127.0.0.1:5005/

References

Getting started with docker: http://blog.alexellis.io/getting-started-with-docker-on-raspberry-pi/

Beginners's guide: http://thisdavej.com/beginners-guide-to-installing-node-js-on-a-raspberry-pi/