Files
reolink_api/ConfigHandler.py
Alano Terblanche 8b100dc4cd Some API's added
API's added:
- Network (get and add).
- Login (token)
- General System (only get info)
- Wifi (set, scan, get)
2019-01-01 00:58:54 +02:00

18 lines
365 B
Python

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