Hacker News new | ask | show | jobs
by mekane8 2387 days ago
I made something very similar, but the device I'm controlling is an RGB LED attached to the GPIO pins on a Raspberry Pi zero.

https://github.com/mekane/Node-API-for-Raspberry-Pi-GPIO

I made some bash scripts that call the API to do certain things (like light up green when it's time to get up for school) and I set cron tasks to call these at certain times.

The Node service also serves a very simple web page that can be used to control the light color and brightness.