aa3369baa8
doorlockd: move all scripting stuff to DoorHandler
...
Use this chance to get rid of most global variables.
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:37 +02:00
bb65e38640
doorlockd: make {static,templates}_folder local
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:35 +02:00
ae358d403c
doorlockd: move sounds to DoorHandler
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:31 +02:00
00f74d69f9
pydoorlock: Refactor LogicResponse to DoorlockResponse
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:23 +02:00
8d37886ee1
doorlockd: propagate cfg through Logic
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:19 +02:00
5b296b777d
pydoorlock: WebApp: outsource WebApp
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:17 +02:00
2cdf9d1b27
pydoorlock: Condense locality of Flask stuff
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:13 +02:00
badeb1945b
pydoorlock: Authenticator: Move all auth-related logic to Authenticator
...
By passing the configuration
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:10 +02:00
faecb6b98f
pydoorlock: switch to new config parser
...
We want to use doorlockd for more than just serving webapps. Get rid of the
Flask config parser and use python's own config parser.
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:06 +02:00
aaaad9b6ef
pydoorlock: Extract WebApp pt. 1
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:25:02 +02:00
d1855bf77d
pydoorlock: extract DoorState
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:24:54 +02:00
55205ad247
doorlockd: First steps towards pydoorlock module
...
Extract Authenticator platform from doorlockd.
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-16 21:24:51 +02:00
7e26fa0cd6
doorlockd: remove superfluous code
...
No more users, drop it.
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-08 00:24:36 +02:00
147c4cff0c
Bump version number: 2.0-rc1
...
Release 2.0-rc1
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-07 03:48:15 +02:00
69cbf48bae
Make sounds working again
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-07 03:47:34 +02:00
8b49549876
PKGBUILD: add more dependencies
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-07 02:56:30 +02:00
b9a1bfc566
Publish door state to mqtt
...
Assisted by nice gpio-wait helper.
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-07 01:50:41 +02:00
197397027e
update gitignore
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-06 22:33:38 +02:00
128cc2ced2
scripts: update mqtt topics
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-06 22:19:04 +02:00
82fd80b02d
PKGBUILD: automatically deploy BKCA certificate
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-06 21:51:37 +02:00
305f89b70b
Add TODO list
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-06 04:27:38 +02:00
b9dae15799
Bump version number: 2.0-rc1
...
Release 2.0-rc1
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-06 04:14:55 +02:00
be33bb71ce
ssl: use system certificates
...
Rely on system certificates instead of pinning them.
On Arch Linux, copy the certificate over to
/etc/ca-certificates/trust-source/anchors
and run
trust extract-compat
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-06 04:14:34 +02:00
6a5987e7cb
templates: Don't let google try to translate our page
...
Google tries to autotranslate the page. Avoid this by adding a specific
notranslate meta tag.
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-06 04:14:34 +02:00
3b2544d892
avr: reverse bolzen logic
...
And set initial state
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-06 04:14:34 +02:00
8623d3a78a
avr: Add fuse rule to Makefile
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-06 04:14:34 +02:00
6370e54ff8
Makefile: install doorlockd-passwd
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-18 01:28:34 +02:00
2aea44496f
doorlockd: amend default config path for local credential storage
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-18 01:28:34 +02:00
f5603272d2
doorlockd: frontend: support local authentication
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-18 01:28:34 +02:00
45724f37c8
doorlockd: backend: support local authentication
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-18 01:28:34 +02:00
f6eabcd8cf
Parameterise more settings
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-17 19:54:53 +02:00
0bf9679eef
doorlockd: improve display content
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-13 01:14:22 +02:00
3dc71db095
doorlockd: templated: improve layout
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-10 01:32:47 +02:00
0b91b84180
doorlockd: templates: replace old QR Token
...
by a new one, and provide the Google playstore URL.
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-10 01:03:34 +02:00
7f84e8e1a0
schematics: Add BOM and Reichelt link
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-10 01:03:32 +02:00
e8717c9e9f
PKGBUILD: add python-ldap dependency
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-10 01:03:28 +02:00
1a331ac4fb
schematics: board: minor fixups
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-10 01:03:25 +02:00
5d60f1fc45
schematics: add Raspberry Pi Hat EEPROM
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-10 01:03:21 +02:00
a20c0a43b5
schematics: board: minor fixes
...
Credits go to Noby for the review!
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-09 01:40:12 +02:00
b7ba8ebe18
doorlockd: templates: fix bug in meta tags
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-08 23:25:03 +02:00
2ee9457908
doorlockd: scripts: mqtt: send present status
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-08 23:15:42 +02:00
3df6515808
schematics: board: move RJ45 jack to the left
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-08 23:07:49 +02:00
e0fd93a700
schematics: add door state jumper
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-08 23:07:49 +02:00
ce3d4911ec
schematics: board: rearrange LEDs
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-08 22:45:27 +02:00
c70bd29b61
schematics: decouple optocoupler
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-08 22:45:27 +02:00
9b47b260f3
schematics: Update Resistor values
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-08 21:06:11 +02:00
4c7886dc61
Add PKGBUILD for Arch linux
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-08 03:22:38 +02:00
03648bf821
Add Makefile
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-08 03:22:29 +02:00
f857fffac6
doorlockd: remove nasty flask-bootstrap dependency
...
Package is no longer officially maintainer, remove the dependency.
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-08 02:55:14 +02:00
f226f44190
doorlockd: fix logic bug
...
We don't want to continue if we actually want to close.
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-08 00:59:01 +02:00