annejan / powerbars Goto Github PK
View Code? Open in Web Editor NEWThis project forked from merlijnwajer/powerbars
TechInc Powerbars
This project forked from merlijnwajer/powerbars
TechInc Powerbars
= Powerbars for TechInc = We have multiple powerbars, controllable over serial. Each of these bars has power sockets that can be turned on/off individually. The plan is to use these throughout to space to be able to remotely control the lights and other machinery. == Design == Since we don't care about where the bars are and how many we have, the most basic component we consider in a socket. A socket can be turned on or off. A socket can be part of a group. As such, a group consists of a set of sockets. Groups can be turned on or off as a whole. Finally, there will be prefixes, which consist of a set of groups. A prefix can be turned on or off as a whole, thus turning on or off and the groups in said prefix, and all the sockets in all said groups. == Security == The plan is to use serial cables to connect the bars together, but optionally we can put a cheap device with serial in front of every powerbar and have them communicate over HTTPS. The inter-device communication (where required) will happen over HTTPS, using certificates for authentication. ACL's will be used, to "secure" certain groups if deemed necessary. The main supported API is listed below. Some other interfaces (with possibly access to all components) will follow. == API == export HOST=10.0.20.30 export PORT=5000 for i in $(seq 0 19) ; do curl -d state=On http://$HOST:$PORT/0/$i ; done Extra POST var, kill=graceful or force Current examples: # Off curl -d state=On http://$HOST:$PORT/group/lights # On curl -d state=Off http://$HOST:$PORT/group/lights
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.