You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've got a problem with getting it to work.
when I get to the step
"Then start:
./venv/bin/python3 main.py"
I get the error below. The options.json is in the batmon-ha folder and has all necessary rights and the correct user.
pi@batteryshack:~/batmon-ha $ ./venv/bin/python3 main.py
error reading /data/options.json, trying options.json [Errno 2] No such file or directory: '/data/options.json'
Traceback (most recent call last):
File "/home/pi/batmon-ha/main.py", line 26, in
user_config: Dict[str, any] = load_user_config()
^^^^^^^^^^^^^^^^^^
File "/home/pi/batmon-ha/bmslib/store.py", line 70, in load_user_config
conf = dotdict(json.load(f))
^^^^^^^^^^^^
File "/usr/lib/python3.11/json/init.py", line 293, in load
return loads(fp.read(),
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 19 column 3 (char 320)
Beta Was this translation helpful? Give feedback.
All reactions