LIVE DEMO AVAILABLE (selfhosted, built and deployed with Jenkins) : https://api.pirotechnics.sylvaindenyse.me
- Finish routes
- Handle errors with Hapi (Boom)
- Test routes
- Add Swagger
- Implement canals
- Really mock GPIO
- Handle data with socket
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
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.