Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON Parsing Failed No Memory - AC IR Raw code #291

Closed
digital-phantom opened this issue Jul 3, 2020 · 2 comments
Closed

JSON Parsing Failed No Memory - AC IR Raw code #291

digital-phantom opened this issue Jul 3, 2020 · 2 comments

Comments

@digital-phantom
Copy link

Hi! Excellent work with this. Just running into an issue transmitting raw IR code from my Air conditioning remote.

I'm getting a "Error! JSON parsing failed" message when trying to send the following

http://192.168.4.1:80/json?plain=[{data:[432,440,432,438,432,438,430,438,432,436,432,25420,3476,1738,434,1306,432,438,432,442,432,430,430,1306,434,436,432,438,430,438,432,436,432,1308,432,438,432,1304,432,1306,432,440,432,1308,432,1302,434,1306,432,1304,434,1306,432,436,432,438,432,1306,434,436,430,438,432,440,432,436,432,436,432,438,432,436,432,438,430,436,432,440,430,436,432,436,432,438,432,438,432,438,432,434,432,436,432,436,432,1304,432,438,432,440,432,434,432,1308,434,1306,432,434,432,436,432,438,432,438,432,1304,432,438,432,1306,434,1304,434,438,432,436,432,436,432,438,432,436,432,436,432,438,430,436,432,436,432,438,432,1306,434,1304,434,1306,432,1306,434,436,432,1304,434,442,434,1302,432,438,432,436,432,438,432,436,432,438,432,438,432,436,432,436,432,438,432,434,432,446,432,430,432,436,432,436,432,436,432,438,432,436,432,436,432,436,432,438,432,438,432,436,432,434,432,440,430,438,432,444,432,430,432,438,432,438,432,436,432,436,432,438,432,1304,434,440,432,434,432,438,432,438,430,438,432,436,432,436,432,438,432,436,432,436,432,440,430,438,432,438,432,436,432,436,432,1306,434,438,432,1306,432,436,430,438,432,438,432,1304,434,1306,432,438,432,438,432,438,430,436,432,438,432,434,432,438,432,436,432,438,432,436,432,436,434,1304,434,436,430,440,432],type:'raw',khz:38}]

It seems this is quite a bit longer than regular IR code because of how AC remotes are.

Any chance this could work?

Thanks!

@mdhiggins
Copy link
Owner

#278

This may provide some insight

There was an update 90ca42b that increased the buffer size and added some more error logging as to why the JSON parsing failed and your error message seems to not include that

Updating should at least improve the error message, and may fix by increasing the buffer

If that doesn't work try going up on the buffer more

@digital-phantom
Copy link
Author

Great! Thanks for the reply. I increased the buffer and it seems to parse fine now. The AC doesn't respond to the raw code so I'm not 100% sure my IR led is working. At any rate, this parsing issue is resolved for me now. Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants