NightRang3r / Broadlink-e-control-db-dump

These two scripts will "parse" the broadlink e-Control Android application database or SharedData and dump the IR / RF codes for selected accessories into a text file which can be later used with broadlink-python to send the codes to the RM PRO hub
149 stars 52 forks source link

getBroadlinkSharedData.py - JSONDecodeError #22

Closed AntonLevi closed 6 years ago

AntonLevi commented 6 years ago

hi. i use getBroadlinkSharedData.py i have same error

root@pi:/home/code# python code.py ID: 1 | Name: button1 ID: 2 | Name: livo ID: 11 | Name: button2 ID: 15 | Name: Temp ID: 16 | Name: 10 Select accessory ID: 1 [+] You selected: button1 Traceback (most recent call last): File "code.py", line 58, in jsonIrCodeData = json.loads(jsonIrCode) File "/usr/lib/python2.7/dist-packages/simplejson/init.py", line 516, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 374, in decode obj, end = self.raw_decode(s) File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 404, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.scanner.JSONDecodeError: Expecting ',' delimiter or ']': line 1 column 11066 (char 11065)

have any thoughts what is it? error in the script code? I need to install something else?

NightRang3r commented 6 years ago

@AntonLevi Something is probably wrong with the json files

use https://jsonlint.com/ and paste the each file content to check if it is in a valid json format

AntonLevi commented 6 years ago

Yes! thank you. found an error in one of the files. added a sign "]". everything worked out