I am currently trying to make the default Custom.html example work. However, it doesn't fire the getJSON part of the javascript.
I edited the array with devices and just created one which is in my own Domoticz and edited the roomplan and domoticz url.
With console.log I confirmed the url which JSON requests and when I enter this url into my browser I can see that it's returning the right devices, so the url is working.
I also tried adding this:
Code: Select all
.done(function() { alert('getJSON request succeeded!'); })
.fail(function(jqXHR, textStatus, errorThrown) { alert('getJSON request failed! ' + textStatus); })
.always(function() { alert('getJSON request ended!'); })Do I need to change something on the raspberry pi to make it work?
Thanks in advance!