Commit Graph

104 Commits

Author SHA1 Message Date
59757ae269
sql_app: TODO
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-06-05 14:02:50 +03:00
2c4840b5c3
sql_app: Change defualt page title
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-05-25 16:36:06 +03:00
0370ba175e
run-tls: change port to 4040
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-05-23 21:09:03 +03:00
f4b0e886cc sql_app: Added function to get room info (temp, people ...)
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-05-23 21:04:19 +03:00
36123b1090 sql_app: Access log for user (access history)
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-05-23 19:44:04 +03:00
52a7cffce2 sql_app: Added access log request
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-05-23 19:02:54 +03:00
575ba9452a users/open: pass in time for door to stay open
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-05-23 14:58:30 +03:00
e9925d32b4 clear open_door attr from doors when read.
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-05-23 14:36:29 +03:00
bae51c3f67 Added data storage tables and types
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-05-23 13:46:09 +03:00
3bf883b6ac remove check 2022-05-08 22:27:41 +03:00
6e74778241 main: temp spelling
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-05-08 22:20:39 +03:00
dc4e3ef8d6 main: add iot functions for monitor and door
- Echo back for monitor for now.
   - Needs database tables and linkage

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-05-08 22:09:06 +03:00
3302c4dc39 main, crud: implement disallow user
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-18 02:39:45 +03:00
32c58daf57 main: remove APIKey dependancy for admin paths...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-18 01:55:06 +03:00
20f4d0202f crud: use indexed primary key search rather than list all
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-18 01:54:33 +03:00
f5d7db5071 crud: fix open door command db commit
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-18 01:48:44 +03:00
34f27c32e8
users: Add open door command from user application
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-18 01:43:12 +03:00
d8bb92a48a main: alias user token gen with '/users/tkn'
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-17 21:35:26 +03:00
48e4f0ab48 crud: get iot by BT
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-17 21:34:50 +03:00
59417427c3 main: Implement generation of IotDev Token
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-17 21:20:45 +03:00
c0c9c7da2b run-tls: use exec when starting uvicorn
- exec replaces the running shell (script)

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-17 20:40:07 +03:00
4617e5a7a2
auth_helper: basic method to gen a permenant token
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-17 02:20:14 +03:00
a329ad3b10
TODO list
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-14 15:01:35 +03:00
7d4f49d0e7
init_secrets: script to init .env values
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-14 07:19:53 +03:00
b08a24bedf
admin: All admin path functions require an APIKey
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-14 07:16:28 +03:00
bacf7bd1f0
run-tls: change port from 4433 to 4242
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-14 01:42:55 +03:00
17aa68ba9a
allow user: allow acces to room by name or id
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-14 01:37:30 +03:00
5387610d35
main: remove async. not sure if it is safe to use
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-13 23:23:42 +03:00
caa223bd6f
main: remove redundant url path parameters
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-13 23:18:23 +03:00
18ea7db1e7
user disable/enable. disallow iot dev
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-13 09:57:48 +03:00
22ecea44f6
sql_app: db: enforece not-null
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-13 09:52:37 +03:00
9a7e6a288f sql_app: db: IotEntity added bluetooth field
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-13 09:39:25 +03:00
fe3a193a4f sql_app: create and link iot device
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-13 08:34:12 +03:00
a28183ddd8
main: reorder
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-13 07:07:00 +03:00
40d981a4cd sql_app: main: Add tags and base url for admin/user
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-13 07:05:44 +03:00
08b8aafcf0 sql_app: auth by user not email 2022-04-13 06:21:10 +03:00
f1cbd6d265 jwt auth
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-13 05:24:06 +03:00
3153a7db8d sql_app: add username in regsiter
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-04 02:02:29 +03:00
866182c25e sql_app/models: fix inverted table links
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-03 15:51:36 +03:00
7dab731337 sql_app/schema: fix type error
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-03 14:55:39 +03:00
98c3f5416a sql_app/schema: fix type error
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-03 14:54:16 +03:00
64edc98a76 sql_app/schema: fix type error
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-03 14:51:26 +03:00
987087704a
gitignore: ignore IDE files
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-23 04:02:32 +03:00
cae0f350eb
remove binary files
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-23 04:01:44 +03:00
7d41fcf200 mosquitto_broker: MQTT broker/client sample server. also scrapped.
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-23 03:59:30 +03:00
e633be8396
coap: coap server using libcoap. also scrapped.
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-23 03:55:29 +03:00
8094b1fc77
aicoap: a sample server for coap. scrapped however.
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-22 22:21:58 +03:00
ab30844d95
sql_app: implement password hashing when create_user is used.
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-16 22:46:50 +03:00
75984d1f1f
sql_app: crypto: added crypto python helper fucntions
Idea is to isolate cryptography from database managment
	code.

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-16 22:30:57 +03:00
3922d659da
sql_app: models: correct many-to-many relation between iotdev and users
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-16 22:29:34 +03:00