Skip to content

Docker image for Python 3.4 based Raspberry Pi Sense HAT

Notifications You must be signed in to change notification settings

protik77/python3-sensehat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python3 based Raspberry Pi Sense HAT container 🐍

ℹ️ This project is forked from bmwshop/sensehat.

Features

  • Based on Python 3.4.2.
  • Image size is only 59MB.

Using the docker image

Create a temporary container,

docker run --privileged -it protik77/python3-sensehat bash

The command above should pull the image from the docker hub, create a temporary container with an interactive shell. The prompt at this point should look like,

root@0cab39t3d53:/code#

Now run the test code by doing,

python3 test.py

This should print the current temperature and show the message "It worked!" in the LED matrix of the Sense HAT.

Type exit and this should give back the original shell. The temporary container will be removed automatically.

See the Sense Hat API docs for more Sense Hat API.

Changes made from the original repository

  • Python 3.4.2 based.
  • Based on official arm32v7/debian:jessie rather than armhf/ubuntu image which is not supported anymore. Also the required RTIMULIB version is only supported for debian:jessie.
  • Updated RTIMULIB to version 7.2.1-3. Even though 7.2.1-4 and 7.2.1-5 are out there, they don't work with debian:jessie based image.
  • Moved test code test.py into /code directory.

About

Docker image for Python 3.4 based Raspberry Pi Sense HAT

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 65.6%
  • Shell 24.7%
  • Python 9.7%