file headers
Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
parent
7f90e104d3
commit
fc9f1c5c05
10
sql_app/TODO
10
sql_app/TODO
@ -15,7 +15,7 @@
|
|||||||
- [X] Expose data analysis
|
- [X] Expose data analysis
|
||||||
- [X] Load backend onto RPi
|
- [X] Load backend onto RPi
|
||||||
- [X] Test connections in lab network
|
- [X] Test connections in lab network
|
||||||
- [ ] Define emrgancy triggers (manual and automatic)
|
- [X] Define emrgancy triggers (manual and automatic)
|
||||||
- [ ] Expose temporary control in case of emergancy
|
- [ ] Expose temporary control in case of emergancy
|
||||||
- Triggers
|
- Triggers
|
||||||
- Acccess
|
- Acccess
|
||||||
@ -36,6 +36,10 @@
|
|||||||
- [ ] Write unit tests
|
- [ ] Write unit tests
|
||||||
- [ ] Develop a program to visualize the data
|
- [ ] Develop a program to visualize the data
|
||||||
- [ ] CLI frontend
|
- [ ] CLI frontend
|
||||||
|
- [X] Emergaency
|
||||||
|
- [X] Send state with accesslist
|
||||||
|
- [X] Split monitor into different class
|
||||||
|
- [ ] Make a script that adds types, and thier basic database ops?? (avoid writing boiler-plate)
|
||||||
|
- [ ] Make a script that emulates a door and monitor
|
||||||
|
- [ ] Check file premissions on .env file, if global reject
|
||||||
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJibHVldG9vdGhfbWFjIjoic3RyaW5nIn0.ELl5AfBR1NdM4_OFhl_SCTm9EMPpqjiCKOSS0CrOJps
|
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJibHVldG9vdGhfbWFjIjoic3RyaW5nIn0.ELl5AfBR1NdM4_OFhl_SCTm9EMPpqjiCKOSS0CrOJps
|
@ -1,3 +1,5 @@
|
|||||||
|
# May 2022
|
||||||
|
# Hesham T. Banafa <hishaminv@gmail.com>
|
||||||
|
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
from decouple import config
|
from decouple import config
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
# March 2022
|
||||||
|
# Hesham T. Banafa <hishaminv@gmail.com>
|
||||||
|
|
||||||
# CRUD (Create, Read, Update, Delete) from db
|
# CRUD (Create, Read, Update, Delete) from db
|
||||||
|
|
||||||
from sqlalchemy import select, join
|
from sqlalchemy import select, join
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# March 2022
|
||||||
|
# Hesham T. Banafa <hishaminv@gmail.com>
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from hashlib import pbkdf2_hmac
|
from hashlib import pbkdf2_hmac
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
# March 2022
|
||||||
|
# Hesham T. Banafa <hishaminv@gmail.com>
|
||||||
|
|
||||||
from sqlalchemy import create_engine
|
from sqlalchemy import create_engine
|
||||||
from sqlalchemy.ext.declarative import declarative_base
|
from sqlalchemy.ext.declarative import declarative_base
|
||||||
from sqlalchemy.orm import sessionmaker
|
from sqlalchemy.orm import sessionmaker
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# June 2022
|
||||||
|
# Hesham T. Banafa <hishaminv@gmail.com>
|
||||||
|
|
||||||
from . import crud, main, schemas, auth_helper
|
from . import crud, main, schemas, auth_helper
|
||||||
from decouple import config
|
from decouple import config
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
# March 2022
|
||||||
|
# Hesham T. Banafa <hishaminv@gmail.com>
|
||||||
|
|
||||||
from fastapi import Depends, FastAPI, HTTPException, status
|
from fastapi import Depends, FastAPI, HTTPException, status
|
||||||
from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm, OAuth2AuthorizationCodeBearer
|
from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm, OAuth2AuthorizationCodeBearer
|
||||||
from fastapi.security.api_key import APIKey
|
from fastapi.security.api_key import APIKey
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
# March 2022
|
||||||
|
# Hesham T. Banafa <hishaminv@gmail.com>
|
||||||
|
|
||||||
from sqlalchemy import Boolean, Column, ForeignKey, Integer, String, DateTime
|
from sqlalchemy import Boolean, Column, ForeignKey, Integer, String, DateTime
|
||||||
from sqlalchemy.orm import relationship
|
from sqlalchemy.orm import relationship
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
# March 2022
|
||||||
|
# Hesham T. Banafa <hishaminv@gmail.com>
|
||||||
|
|
||||||
from typing import Any, List, Optional
|
from typing import Any, List, Optional
|
||||||
|
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# May 2022
|
||||||
|
# Hesham T. Banafa <hishaminv@gmail.com>
|
||||||
|
|
||||||
from .database import SessionLocal
|
from .database import SessionLocal
|
||||||
|
|
||||||
@ -11,3 +13,4 @@ def get_db():
|
|||||||
EMERG_TEMP = 50
|
EMERG_TEMP = 50
|
||||||
EMERG_SMOKE = 1000
|
EMERG_SMOKE = 1000
|
||||||
EMERG_OPEN_TIME_SEC = 500
|
EMERG_OPEN_TIME_SEC = 500
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user