Better folder structure, added a few ambient sensors

This commit is contained in:
Remy Moll
2021-04-15 19:50:37 +02:00
parent c61ee3ea72
commit 03d419f8f7
45 changed files with 711 additions and 1285 deletions

View File

@@ -12,10 +12,12 @@ class PersistentDict(dict):
self.path = file_name
self.last_action = ""
if not os.path.exists(self.path):
try:
self.read_dict()
except:
with open(self.path, "a") as f:
f.write("{}")
self.read_dict()
## helper - functions
def write_dict(self):