krommetje Super User
Joined: December 29 2004 Location: Netherlands
Online Status: Offline Posts: 695
|
Posted: June 11 2006 at 11:00 | IP Logged
|
|
|
Hey Guys?
any Ideas on how to perfect this?
Code:
insert into macroheader values ('TEST','TEST',0,0,1);
insert into macrodetail values ('TEST',1,27,'',NULL,'if({SENSOR1} > 2500,"OK","NEXT")',0,'');
insert into macrodetail values ('TEST',2,26,'',NULL,'OK',0,'');
insert into macrodetail values ('TEST',3,36,'',NULL,'"Temperature Measures {S1}"',0,'');
insert into macrodetail values ('TEST',4,36,'',NULL,'"Shutting down Thermostat"',0,'');
insert into macrodetail values ('TEST',5,12,'K',6,'',0,'X10-1');
insert into macrodetail values ('TEST',6,12,'K',103,'',0,'X10-1');
insert into macrodetail values ('TEST',7,39,'',NULL,'',0,'');
insert into macrodetail values ('TEST',8,26,'',NULL,'NEXT',0,'');
insert into macrodetail values ('TEST',9,36,'',NULL,'"Temperature Measures {S1}"',0,'');
insert into macrodetail values ('TEST',10,12,'K',6,'',0,'X10-1');
insert into macrodetail values ('TEST',11,12,'K',102,'',0,'X10-1');
insert into macrodetail values ('TEST',12,36,'',NULL,'"Switching ON thermostat"',0,'');
insert into macrodetail values ('TEST',13,39,'',NULL,'',0,'');
|
|
|
the Idea is to have PH to have control over the Central heating Thermostat... PH would have the function of controler so that the Thermostat stays in its normal programming... So the Temperature in the living room can't get any higher then 25 degrees celcius with the Central Heating in the example code. What I am looking for is e.g. a time-checking...a low-value checking or something else...
do you have any ideas?
Peter
|