Followed your instructions as best as I could on a brand new raspberry pi 4 with current raspbian buster freshly installed.
First attempt with python3 main.py gave:
FileNotFoundError: [Errno 2] No such file or directory: ‘config/testblegateway.json’
So I copied my editted blegateway.json to testblegateway.json.
Then trying to start again by
Running python3 main.py gives the following errors:
Traceback (most recent call last):
File “/home/pi/ble-gateway/config.py”, line 5, in
config = json.load(open(‘config/testblegateway.json’,))
File “/usr/lib/python3.7/json/init.py”, line 296, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File “/usr/lib/python3.7/json/init.py”, line 348, in loads
return _default_decoder.decode(s)
File “/usr/lib/python3.7/json/decoder.py”, line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python3.7/json/decoder.py”, line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 25 column 3 (char 481)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “main.py”, line 4, in
import blegateway
File “/home/pi/ble-gateway/blegateway.py”, line 4, in
import config
File “/home/pi/ble-gateway/config.py”, line 7, in
config = json.load(open(‘config/blegateway.json’,))
File “/usr/lib/python3.7/json/init.py”, line 296, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File “/usr/lib/python3.7/json/init.py”, line 348, in loads
return _default_decoder.decode(s)
File “/usr/lib/python3.7/json/decoder.py”, line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python3.7/json/decoder.py”, line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 25 column 3 (char 481)
At this point my poor python understanding was overwhelmed and I gave up.
Just trying to use the built-in BLE chip in the raspberry pi4 to read my brand new ruuvitag.
Thanks in advance for any help!