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
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
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
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
f7725bba54
doorlockd: hooks: simplify hooks
...
and add present state
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-08 00:41:21 +02:00
4f95021fcf
doorlockd: minor simplification
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-08 00:41:21 +02:00
e3491aaa45
doorlockd: Flask: disable use_reloader
...
This spawns the process twice which duplicates the UART thread, which,
of course, leads to silly races.
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-07 22:04:24 +02:00
9f3062340c
doorlockd, avr: Don't respond on commands
...
No need to read back the AVR.
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-07 22:02:41 +02:00
95c35e7c06
Let scriptdir depend on PREFIX
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-05 22:31:37 +00:00
60633bbc49
Flask: specify correct root_path
...
We need that for package installation.
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-05 22:31:37 +00:00
e5fb445287
move sound specification from config to source
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-05 22:18:59 +00:00
c2c6e00651
Rename config.cfg -> doorlockd.cfg
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-05 20:22:16 +00:00
3e8d8a98e3
Rename doorlockd.py -> doorlockd
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-09-05 18:44:07 +00:00
71bc36a557
remove old code
...
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-03-23 22:22:50 +00:00
Ralf Ramsauer
020ac1b38b
scripts: simplify mqtt
...
Only publish door status topic, rest will be done by the opennhab server.
Username, password and mqtt's hostname are stored in user's local .config.
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2018-01-06 22:29:30 +01:00
Ralf Ramsauer
9ae9304551
scripts: replace mac
...
we have a new cash-desk PC
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2017-01-07 00:29:58 +01:00
Ralf Ramsauer
d04ba6ef63
doorlock-client: add mainwindow.showFullscreen() call
...
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-08-01 21:51:55 +02:00
Ralf Ramsauer
d1d0d5b160
Fix QT quirk
...
So far, we used QT interfaces in a wrong way. QT is not thread safe, so
use its signal/slot concept and move network communication stuff to a
separate QThread.
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-31 15:48:19 +02:00
Ralf Ramsauer
4ccf8e4f24
doorlock-client: refactor run to app_run
...
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-21 20:57:31 +02:00
Ralf Ramsauer
48d0fcaf6f
doorlock-client: be even more verbose
...
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-21 20:50:32 +02:00
Ralf Ramsauer
42f168ff19
doorlick-client: remove misleading comment line
...
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-21 20:40:45 +02:00
Ralf Ramsauer
ee481009e1
doorlock-client: Add more error output
...
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-21 20:40:32 +02:00
Ralf Ramsauer
951e1de987
Door: Redirect output to logfile
...
And use nohup for detached call.
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-20 20:48:58 +02:00
Ralf Ramsauer
c058e1e4d0
door, logic: propagate new logfile to Door class
...
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-20 20:48:54 +02:00
Ralf Ramsauer
7e522e59af
Door: Refactor system() to own function
...
Preparatory work for script logging
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-20 20:17:00 +02:00
Ralf Ramsauer
573d9e7c65
Door: fix coding style
...
Consequently use _ for private member variables/functions.
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-20 20:12:51 +02:00
Ralf Ramsauer
f713ef6124
Doorlockd: Replace logfile by logdir
...
In future, we might have several different logfiles.
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-20 20:12:46 +02:00
Ralf Ramsauer
3721259f3e
scripts: add nodered twitter sink
...
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-20 19:22:43 +02:00
Ralf Ramsauer
660a7297ee
scripts: Wake up cashdesk PC
...
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-18 21:17:30 +02:00
Ralf Ramsauer
8503a2114f
Mainwindow: Show huge token
...
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-17 23:00:08 +02:00
Ralf Ramsauer
62ac4f26e0
clientmessage: add token regex and getter
...
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-17 23:00:05 +02:00
Ralf Ramsauer
474d941918
clientmessage: Refactor token to web_address
...
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-17 22:57:54 +02:00
Ralf Ramsauer
5355749c6b
UI: refactor tokenLabel to address_label
...
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-17 22:38:01 +02:00
Ralf Ramsauer
367afb4092
doorlockd: Improve error handling
...
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-17 22:29:31 +02:00
Ralf Ramsauer
34417b8ddb
Cmake: Gcc: do not warn on unused results
...
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-07-17 22:18:17 +02:00
Ralf Ramsauer
f5c67445e9
startup scripts: use mosquitto
...
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-06-23 19:35:43 +02:00
Ralf Ramsauer
40d871b2d2
Version 1.4
...
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-04-24 22:16:18 +02:00
Ralf Ramsauer
99feb14036
Use aplay command for playing sounds
...
This basically reverts 5c8ca78c99
.
Using libao + sndfile was a bad idea...
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-04-24 22:08:21 +02:00
Ralf Ramsauer
88926613e7
Improve version nomenclature
...
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-04-24 21:32:56 +02:00
Andreas Augustin
b15e7960cb
Fix boost include bug
...
Signed-off-by: Andreas Augustin <andy.augustin@t-online.de>
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-04-24 01:58:08 +02:00