Custom page doesn't load data

Moderator: leecollings

Post Reply
rednas
Posts: 132
Joined: Tuesday 20 October 2015 12:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Custom page doesn't load data

Post by rednas »

Hello,

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!'); })
But the getJSON does nothing! None of the alerts are fired and just nothing happens with the getJSON function..
Do I need to change something on the raspberry pi to make it work?

Thanks in advance!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest