Some API's added

API's added:
- Network (get and add).
- Login (token)
- General System (only get info)
- Wifi (set, scan, get)
This commit is contained in:
Alano Terblanche
2019-01-01 00:58:54 +02:00
parent 5b31de25c4
commit 8b100dc4cd
5 changed files with 256 additions and 0 deletions

17
ConfigHandler.py Normal file
View File

@@ -0,0 +1,17 @@
import io
import yaml
class ConfigHandler:
camera_settings = {}
@staticmethod
def load() -> yaml or None:
try:
stream = io.open("config.yml", 'r', encoding='utf8')
data = yaml.safe_load(stream)
return data
except Exception as e:
print("Config Property Error\n", e)
return None