31 lines
621 B
Python
31 lines
621 B
Python
|
import os
|
||
|
|
||
|
from . import Main
|
||
|
|
||
|
"""
|
||
|
if "eesuks" in buf:
|
||
|
door = "front"
|
||
|
elif "valis" in buf:
|
||
|
door = "ground"
|
||
|
elif "taga" in buf:
|
||
|
door = "back"
|
||
|
else:
|
||
|
door = "unknown"
|
||
|
"""
|
||
|
|
||
|
door = os.environ["KDOORPI_DOOR"]
|
||
|
api_allowed = os.environ["KDOORPI_API_ALLOWED"]
|
||
|
api_longpoll = os.environ["KDOORPI_API_LONGPOLL"]
|
||
|
api_swipe = os.environ["KDOORPI_API_SWIPE"]
|
||
|
api_key = os.environ["KDOORPI_API_KEY"]
|
||
|
uid_salt = os.environ["KDOORPI_UID_SALT"]
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
Main(door,
|
||
|
api_allowed,
|
||
|
api_longpoll,
|
||
|
api_swipe,
|
||
|
api_key,
|
||
|
uid_salt)
|