Hallo an alle die nicht vor dem Fernseher sitzen und dem Ball nachschauen!
Ich bin in eine Falle getapst, die ich selbst nicht lösen kann!
Trotz einiger Versuche schaffe ich nicht den "delimiter" erfolgreich zu setzen.
Weiter unten nach den ######
Für jeden Hinweis schon jetzt meinen Dank!
Wolfgang
Ich bin in eine Falle getapst, die ich selbst nicht lösen kann!
Trotz einiger Versuche schaffe ich nicht den "delimiter" erfolgreich zu setzen.
Weiter unten nach den ######
Für jeden Hinweis schon jetzt meinen Dank!
Wolfgang
Code:
2024-06-20 17:57:03 NOTICE lib.smarthome -------------------- Init SmartHomeNG v1.10.0-master (4b25822a0) -------------------- 2024-06-20 17:57:03 NOTICE lib.smarthome Running in Python interpreter 'v3.9.2 final', from directory /usr/local/smarthome 2024-06-20 17:57:03 NOTICE lib.smarthome - operating system 'Debian GNU/Linux 11 (bullseye)' (pid=3472) 2024-06-20 17:57:03 NOTICE lib.smarthome - on 'Raspberry Pi 4 v1.4, 8GB (Sony, UK)' 2024-06-20 17:57:04 ERROR lib.smarthome Unhandled exception: Expecting ',' delimiter: line 1 column 10 (char 9) <class 'json.decoder.JSONDecodeError'> running SmartHomeNG v1.10.0-master (4b25822a0) Exception: File "/usr/local/smarthome/bin/smarthome.py", line 295, in <module> sh =SmartHome(MODE=MODE, extern_conf_dir=extern_conf_dir) File "/usr/local/smarthome/lib/smarthome.py", line 418, in __init__ self.shtime._initialize_holidays() File "/usr/local/smarthome/lib/shtime.py", line 1171, in _initialize_holidays count = self._add_custom_holidays() File "/usr/local/smarthome/lib/shtime.py", line 1056, in _add_custom_holidays cust_date = json.loads(entry) File "/usr/lib/python3.9/json/__init__.py", line 346, in loads return _default_decoder.decode(s) File "/usr/lib/python3.9/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.9/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ###################### Ausschnitt smarthome.py ########################################## /usr/local/smarthome/bin/smarthome.py", line 287 bis 296 287 # check for pid file if lib.daemon.check_sh_is_running(PIDFILE): print("SmartHomeNG already running with pid {}".format(lib.daemon.read_pidfile(PIDFILE))) print("Run 'smarthome.py -s' to stop it or 'smarthome.py -r' to restart it.") exit() if MODE == 'debug': lib.daemon.write_pidfile(psutil.Process().pid, PIDFILE) # Starting SmartHomeNG sh =SmartHome(MODE=MODE, extern_conf_dir=extern_conf_dir) sh.start()
Kommentar