Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Latest commit

 

History

History
27 lines (19 loc) · 1.57 KB

README.md

File metadata and controls

27 lines (19 loc) · 1.57 KB

Docker Cloud Build Status Docker Cloud Automated build Commit SHA Size & Layers Docker Pulls Hardware

SenseAPI

A simple RESTful service built on top of the SenseHAT Python API module, that runs on Docker.

Installation

Before installing make sure that the Sense Hat is attached to your Raspberry and that I2C is enabled:

sudo raspi-config -> Interfacing options -> I2C

Setting up the container:

docker run -d -p 8000:8000 --privileged --name sense-api --restart on-failure tanasegabriel/sense-api

Usage

Access http://localhost:8000 in your browser: homepage

You can use the UI to understand how the API works and to test it out, but programatic requests should be issued on http://localhost:8000/senseapi/v1/<endpoint>.