JSON parse error
Closed this issue · 1 comments
Hello
I got 4 Daikin units installed including wireless controller. The official app is working fine, but with the same limitations/problems as described here. This project is a good solution to that.
I tried to set up a webserver on the same network as the units, which is running right now. I copied the code (content of web_gui to my publichtml folder), changed the IP-address of the unit in the config.php page and tried using the webpage as a control for the unit. The controls aren't working, and aren't doing anything. I can click on it but nothing happens.
In the debug console I can find the following errors:
Uncaught SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at XMLHttpRequest.xmlhttp.onreadystatechange (daikin_ui.js:24)
Uncaught SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at XMLHttpRequest.xmlhttp.onreadystatechange (daikin_ui.js:79)
Does this error has something to do with the non-working UI?
Thanks for your support
Problem solved. I used an openwrt device as webserver and forgot to install the php5-json module.