tekgrunt / kokalee

This is the main home for the edge networking project aimed at remote teams or low-budget remote camps (aka. tent style cams).
2 stars 1 forks source link

Setup Flask API for LED control #3

Closed tekgrunt closed 6 years ago

tekgrunt commented 6 years ago

I have the LED lights currently being randomly turned on and off via the GPIO pins... I need to set up an API so that different applications running on the app can adjust the lights. Along with this I am going to create a system poll that can be used to check various system resources and indicate any problems. I think that I can monitor the services via Monit and have that respond to the issues with the services but this poll can be used to check for network connectivity, disk usage and others - it might end up that all of this can be handled by Monit but I need the API regardless and this gets me going without the yak shaving I need to do get the networking issues I am currently facing with Pip (long story).

tekgrunt commented 6 years ago

I wrote the code for this and just got Flask installed on the Pis after dealing with some weird networking issue which was preventing me from using apt-get or pip. Should get to hook the API up to GPIO pins and get some proper cross machine tests going now.

tekgrunt commented 6 years ago

I have the base of the API setup but given how little time is left before the show I am just going to basically make an animated sequence representing the box in a good state and run with that as a service.

tekgrunt commented 6 years ago

I am going to close this ticket for now.... this is a whole other branch of development and we are good for now. If there is time before the show I would like to swing back on this but for now I have my blinky lights the way I ant them.