sylvainDNS / PiRotechnics-api

Launch fireworks using a web application on a Raspberry PI 3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LIVE DEMO AVAILABLE (selfhosted, built and deployed with Jenkins) : https://api.pirotechnics.sylvaindenyse.me

Build Status Project progress

PiRotechnics

PiRotechnics

TODO

  • Finish routes
  • Handle errors with Hapi (Boom)
  • Test routes
  • Add Swagger
  • Implement canals
  • Really mock GPIO
  • Handle data with socket

Environment variable sample

export NODE_ENV=development|production

export HAPI_HOST=localhost
export HAPI_PORT=4444

export SWAGGER_HOST=localhost
export SWAGGER_SCHEMES=http

export SQLITE_PATH=piro.db

Specs

Representation of how to emulate 28 canals with 16 GPIO output.
With this implementation, we can use CanalNumber % 2 to find if the last GPIO must be activated or not.

Canals implementation

About

Launch fireworks using a web application on a Raspberry PI 3


Languages

Language:JavaScript 100.0%