Skip to content

rbontekoe/raspi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

Tryout git, raspberry, docker and flask

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published