ael-code / daikin-control

Unofficial api documentation and web interface to control "Daikin Emura" air conditioner
GNU General Public License v2.0
295 stars 99 forks source link

JSON parse error #19

Closed SpirouSp closed 7 years ago

SpirouSp commented 7 years ago

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

SpirouSp commented 7 years ago

Problem solved. I used an openwrt device as webserver and forgot to install the php5-json module.