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

can't dump #14

Closed hsie closed 6 years ago

hsie commented 6 years ago

after I choose the id to proceed on the dumping, the error below appears, would appreciate it if you can help to figure out, thanks in advance

+++++++++++++++++++++++++ Traceback (most recent call last): File "getBroadlinkSharedData.py", line 65, in jsonIrCodeData = json.loads(jsonIrCode) File "/usr/local/lib/python2.7/dist-packages/simplejson/init.py", line 516, in loads return _default_decoder.decode(s) File "/usr/local/lib/python2.7/dist-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/local/lib/python2.7/dist-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.scanner.JSONDecodeError: Expecting ',' delimiter or ']': line 1 column 95017 (char 95016)

NightRang3r commented 6 years ago

Can you provide me the files so I can use it to debug the issue?

hsie commented 6 years ago

thanks and pls. find the document you required

temp.zip

NightRang3r commented 6 years ago

@hsie

Your jsonIrCode file looks different than mine, did you get it from the e-Control app , is it the latest version of the app ?

It looks like it is missing }] in the end of the file even if you add it it is still not in the right format, i will continue to investigate it

NightRang3r commented 6 years ago

@hsie Ok figured it out, your "jsonIrCode" file is incomplete and is not a valid json format you should add ]}]to the end of the file

Your file:

screen shot 2017-10-21 at 8 11 29 pm

Fix should look like this:

screen shot 2017-10-21 at 8 11 51 pm

You can use https://jsonlint.com/ to verify if the file is in the correct format.