tcmaker / door_refactor Goto Github PK
View Code? Open in Web Editor NEWattempt to run the door controller on modern NodeJS
attempt to run the door controller on modern NodeJS
Commands should be CRLF terminated (code checks for LF, a CR in there doesn't seem to have an effect) All responses are CRLF terminated (\r\n) (per Arduino Serial.println()) door controller command inputs: D1U | D2U == unlock door 1 or 2 D1L | D2L == lock door 1 or 2 ST == get door status and timestamp SDyymmddwhhnnss == set RTC date/time yy == 2-digit year (yes, I know...) mm == month dd == date w == day of week (1-7, starts on Sunday) hh == hour (24-hour clock) nn == minutes ss == seconds GT == get RTC time DxPy == response from tag query (x=door number, y=tag priority from DB) door controller responses: <ID><command> where: ID == [R1 | R2] (keypad ID) commands: Cn == keypress (n=digits entered, ENT sends; a bare ENT is sent as C0; ESC does not send and clears buffer) Tn == tag number (leading zeroes stripped, should match number on tag) date string (HH:mm:ss d/m/yy DAY) STdd [datestring] Status: dd == door 1/2 state (0=unlocked, 1=locked)
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.