
It's looking for '192.168.1.102', but I don't have that ip-address, and I can't find in what file it does call this.
Moderator: leecollings
Is your question regarding installing PHP on a Pi? Then check this.Trigun wrote:
Hi G3rard,
I was looking at this post and this is exactly what I would like to use.
I am able to control the sonos via HTTP but I can't get it to work with the PHP option in G3rards files.
perhaps you can help me out here?
maybe a noob question but how do I install the PHP server on the Domoticz Pi?
Thanks in advance!
Kind regards,
Then just try to change the formula until it works for you.hpapagaj wrote:Super it's working now.Thank you!
Little glitch that one step is 6% instead of 3% (like in Domoticz):
50 to 56:
plus 50
in plus 19.7 50
SUCCES
56 to 62:
plus 56
in plus 21.62 56
SUCCES
Code: Select all
var d = ((level + 10)/100 * 31) + 0.3;
I had it changed. See belowG3rard wrote:The 192.168.1.102:8084 is from my Domoticz settings. That means you haven't changed that in frontpage_settings.js.
So change that line to your Domoticz settings and that should work.
Code: Select all
// ############################################################################################################
// #### vvvvv USER VALUES below vvvvv #######
// ############################################################################################################
$(document).ready(function() {
$.roomplan=0; // define roomplan in Domoticz and create items below.
$.domoticzurl="http://192.168.0.10:8084";
//format: idx, value, label, description, lastseen(1 when lastseen is wanted, 2 is only time), plusmin button or protected (0 for empty, 1 for buttons, 2 for volume of Sonos, 4 for protected, 5 for zwave dimmer, 6 for protected when on), [override css], [alarm value]
$.PageArray = [
I had this line commented out with <!-- -->, but somehow that line was still being executed.g3rard wrote: The 192.168.1.1 for the videostream is in line 290 of frontpage.html. So you can change that as well (or remove it).
Check this readme instruction .
Code: Select all
function updateCamera() {
var d = new Date();
var t = d.getTime();
document.getElementById("popup_camera").src="http://<IPADDRESS>/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=******&pwd=********&"+t;
document.getElementById("popup_camera3").src="http://<IPADDRESS>/snapshot.cgi?user=*****&pwd=*****&"+t;
}
setInterval(updateCamera,1000);
Code: Select all
['1','Status', 'cell11', 'Licht Beneden','1','0'],
Code: Select all
Uncaught TypeError: Cannot read property 'length' of undefined
at Object.<anonymous> (frontpage.js:954)
at Function.each (jquery.min.js:4)
at Object.success (frontpage.js:953)
at c (jquery.min.js:4)
at Object.fireWith [as resolveWith] (jquery.min.js:4)
at k (jquery.min.js:6)
at HTMLScriptElement.n.onload.n.onreadystatechange (jquery.min.js:6)
Code: Select all
for( var ii = 0, len = $.PageArray_Scenes.length; ii < len; ii++ ) {
ropske wrote:hi, anyone using setpoint in this FrontPage?
I'm just wondering if it's also taking some seconds with you guys when it changes state? guess 2-3 seconds
so when i want to go from 16degrees to for example 20degrees, this takes long
i'm going up/down by steps off 0.5degree so i need to press 8 times on the temp up button (8x2sec = 16sec)
What works for me is:barbaar wrote:Right.. Has anyone succeeded with displaying a group?
I have entered the group into the roomplan, and added the line below to frontpage_settings.js:The IDX is correct for sure..Code: Select all
['1','Status', 'cell11', 'Licht Beneden','1','0'],
But, the cell in Chrome stays empty. When I inspect the element, I get the following error:
Line 954 of frontpage.js is:Code: Select all
Uncaught TypeError: Cannot read property 'length' of undefined at Object.<anonymous> (frontpage.js:954) at Function.each (jquery.min.js:4) at Object.success (frontpage.js:953) at c (jquery.min.js:4) at Object.fireWith [as resolveWith] (jquery.min.js:4) at k (jquery.min.js:6) at HTMLScriptElement.n.onload.n.onreadystatechange (jquery.min.js:6)
Any help would be appreciated!Code: Select all
for( var ii = 0, len = $.PageArray_Scenes.length; ii < len; ii++ ) {
Code: Select all
$.PageArray_Scenes = [
['2','Status', 'cell14', 'Thuis werken','0','0'],
['1','Status', 'cell15', 'HiFi systemen','0','0'],
];
Users browsing this forum: No registered users and 1 guest