1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-11-16 20:19:13 +01:00
Commit Graph

84 Commits

Author SHA1 Message Date
Ralf Ramsauer
4cdf16347e Removed unneeded function 2015-09-25 00:50:10 +02:00
Ralf Ramsauer
2234c58371 Typos 2015-09-25 00:50:10 +02:00
Ralf Ramsauer
270943e388 Added JSON Response handling to PHP software
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-25 00:50:10 +02:00
Ralf Ramsauer
364a1f36fc Logical bugfix 2015-09-25 00:50:10 +02:00
Ralf Ramsauer
1d6719269b Resend version string after redirection stdout 2015-09-25 00:50:10 +02:00
Ralf Ramsauer
85f8e3a3bc Bugfix: Timeout was uninitialized 2015-09-25 00:50:10 +02:00
Ralf Ramsauer
4d2bdba703 Simplified version string 2015-09-25 00:50:10 +02:00
Ralf Ramsauer
32ebec327d Added version information 2015-09-25 00:50:10 +02:00
Ralf Ramsauer
201ffe1e44 Added baudrate 2015-09-25 00:50:10 +02:00
Ralf Ramsauer
d6b092ea9f Changed default serial port 2015-09-25 00:50:10 +02:00
Ralf Ramsauer
dcdc8bcfe2 Removed manual change of tokenTimeout
Epaper display is gone, this is not necessary any more.
2015-09-25 00:50:09 +02:00
Ralf Ramsauer
7496a0bab2 Rearranged code 2015-09-25 00:50:09 +02:00
Ralf Ramsauer
542f5518a6 TCP connection logging 2015-09-25 00:50:09 +02:00
Ralf Ramsauer
c01eb22f91 Moved Command handling from logic to main 2015-09-25 00:50:09 +02:00
Ralf Ramsauer
211127f9d3 Refactored action to command 2015-09-25 00:50:09 +02:00
Ralf Ramsauer
0e55a86404 Improved coding style
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-25 00:50:09 +02:00
Ralf Ramsauer
5c825a0958 Implemented better Response handling
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-25 00:50:09 +02:00
Ralf Ramsauer
3b7338ea6e Added proper Response handling 2015-09-25 00:50:09 +02:00
Ralf Ramsauer
a522f1b70f Code style
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-25 00:50:09 +02:00
Ralf Ramsauer
48565ef37e Moved JSON parsing to main.cpp 2015-09-25 00:50:09 +02:00
Ralf Ramsauer
60bbe3df76 Added condition variable, which is notified on Token updates 2015-09-25 00:50:09 +02:00
Ralf Ramsauer
a06a2669e5 Check if logic is running 2015-09-25 00:50:09 +02:00
Ralf Ramsauer
4581e4da20 Removed using of std namespace 2015-09-25 00:50:09 +02:00
Ralf Ramsauer
09a1c613cc Improved error handling 2015-09-25 00:50:09 +02:00
Ralf Ramsauer
25c07e28a1 Implemented multi-threaded TCP session handling 2015-09-25 00:50:09 +02:00
Ralf Ramsauer
cd1fcdc96b Removed unreachable code 2015-09-25 00:50:09 +02:00
Ralf Ramsauer
0f67ed23c5 moved License file 2015-09-25 00:50:09 +02:00
Ralf Ramsauer
703ecc9c86 Removed foreground option (default now)
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-25 00:50:09 +02:00
Ralf Ramsauer
cf536ca889 Activated the 'status' functionality
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-25 00:50:09 +02:00
Ralf Ramsauer
d979310893 Added emergency unlock scripts 2015-09-25 00:50:09 +02:00
Ralf Ramsauer
7b659a832e Outsourced timer and external interupt initialization
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-25 00:50:09 +02:00
Ralf Ramsauer
133a8729ac added more documentation
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-25 00:50:09 +02:00
Ralf Ramsauer
13980b895a avr-code now uses doorcmds.h
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-25 00:50:09 +02:00
Ralf Ramsauer
5808ef8677 doorlockd now uses doorcmds.h 2015-09-25 00:50:09 +02:00
Ralf Ramsauer
aaf47ab0c7 Added common file doorcmds.h
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-25 00:50:09 +02:00
Ralf Ramsauer
5af124000b Improved door responses 2015-09-25 00:50:09 +02:00
Ralf Ramsauer
ad77fbe86b Typo 2015-09-25 00:50:08 +02:00
Ralf Ramsauer
2a6ea56e74 Added schematics of controller board
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-25 00:50:08 +02:00
Ralf Ramsauer
9141b502c3 Readded PRE/POST Lock scripts 2015-09-25 00:50:08 +02:00
Ralf Ramsauer
73868b2d4d Rewrite of Door class
Removed old epaper display and added stub for qrcode printing.

Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-25 00:50:08 +02:00
Ralf Ramsauer
b4d6a46025 removed wiringPi 2015-09-25 00:50:08 +02:00
Ralf Ramsauer
07cddb29f8 Added new AVR software 2015-09-25 00:50:08 +02:00
Ralf Ramsauer
6b8e45ef42 Updated board pinout 2015-09-25 00:50:08 +02:00
Ralf Ramsauer
bd9e3b4e8d Added Pinout of new Board
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-25 00:50:08 +02:00
Ralf Ramsauer
4d965f3614 Added proper json-cpp include directory 2015-09-25 00:50:08 +02:00
Ralf Ramsauer
bf4f74bfea Inversed logic of Doorlight
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-25 00:50:08 +02:00
Ralf Ramsauer
392763f720 Added mutex to door.cpp to prevent lock collissions
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-25 00:50:08 +02:00
Ralf Ramsauer
3a50f596b5 Fixed Button-close bug
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-25 00:50:08 +02:00
Ralf Ramsauer
4dbce13cb0 Added logging to close request on button press
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-25 00:50:08 +02:00
Ralf Ramsauer
d933bc9821 Automatically turn on blue light on unlocking
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-25 00:50:08 +02:00