Open artomweb opened 3 years ago
Thanks for creating the issue. To be honest, I haven't personally used this library for multiple years. The actual sensor reading is done by a Python script, which internally sends JSON back to the Node process. Not ideal, but it was the quickest way back then. :P It seems the JSON data gets delayed somehow and then is sent out simultaneously. Parsing the data assumes it is valid JSON, which in this case it indeed no longer is.
Feel free to submit a pull request to fix this issue; otherwise I will have to find the time to look at it. ;-)
Error:
This only used to happen occasionally and could be fixed I believe with git reset. However this no longer works and the error is always given. I have had a few problems with this library because my code also uses socket io, which breaks a lot of things.