started event reading

This commit is contained in:
Robin Mueller
2022-03-04 11:02:10 +01:00
parent ea5f384f72
commit 47f982e4f7
8 changed files with 171 additions and 165 deletions

View File

@ -1,7 +1,18 @@
import csv
import os.path
import config.object_ids as obj_ids
DEFAULT_EVENTS_CSV_PATH = "config/events.csv"
RETURNVALUE_DICT = None
def handle_event_packet(
object_id: bytes, event_id: int, param_1: int, param_2: int
) -> str:
return ""
if os.path.exists(DEFAULT_EVENTS_CSV_PATH) and RETURNVALUE_DICT is None:
with open(DEFAULT_EVENTS_CSV_PATH) as csvfile:
csv_reader = csv.reader(csvfile, delimiter=";")
for row in csv_reader:
print(row)
return ""