PHP Custom Floorplan for Domoticz
Posted: Sunday 09 August 2015 8:29
Open source Home Automation System
https://forum.domoticz.com/
Code: Select all
Dimmer('Zithoek',48,115,125);
Dimmer('Eettafel',48,115,269);
Schakelaar('Lamp_Bureel','Light', 45, 8,207);
Schakelaar('TV','TV', 48, 3,92);
Schakelaar('Denon','Amp', 48, 6,154);
Schakelaar('Licht_Inkom','Light', 40, 60,360);
Schakelaar('Licht_Voordeur','Light', 40, 60,441);
Schakelaar('Licht_Hall','Light', 42, 416,252);
Schakelaar('Licht_Hall_Auto','Clock', 36, 420,299);
Schakelaar('Licht_Garage','Light', 48, 305,216);
Schakelaar('Licht_Garage_Auto','Clock', 36, 312,180);
Schakelaar('Pluto','Laptop', 30, 365,266);
Schakelaar('Thuis','Home', 48, 268,428);
Schakelaar('Slapen','Sleepy', 48, 335,428);
Schakelaar('Meldingen','Alarm', 48, 5,16);
Schakelaar('Terras','Light', 48, 77,15);
Schakelaar('Brander','Fire', 48, 765,260);
Schakelaar('Licht_Zolder','Light', 48, 705,260);
Schakelaar('Bureel_Tobi','Plug', 36, 780,380);
Smokedetector('SD_Hall_General',36,434,218);
Smokedetector('SD_Zolder_General',36,710,320);
Thermometer('Buiten',110,140,17);
Thermometer('Living',80,141,225);
Thermometer('Badkamer',70,426,435);
Thermometer('Slaapkamer',70,568,435);
Thermometer('Slaapkamer_Tobi',70,458,135);
Thermometer('Slaapkamer_Tobi',70,568,135);
Thermometer('Garage_Temp',60,296,310);
Thermometer('SD_Hall_Temperatuur',60,470,224);
Thermometer('SD_Zolder_Temperatuur',60,707,160);
Setpoint('Living',48,161,172);
Setpoint('Badkamer',40,437,385);
Setpoint('Slaapkamer',40,580,385);
Setpoint('Slaapkamer_Tobi',40,470,90);
Setpoint('Slaapkamer_Tobi',40,580,90);
Radiator('LivingZE',90,160,310);
Radiator('LivingZZ',-90,221,76);
Radiator('BadkamerZ',0,403,349);
if($SwitchThuis == 'Off' || $SwitchSlapen == 'On') {Secured(52,88,250,196);Secured(50,345,129,57);Secured(255,88,316,141);}
if($SwitchThuis == 'Off') {Secured(404,212,129,65);Secured(469,214,45,66);}
if($SwitchPIR_Living != 'Off') Motion(52,88,250,196);
if($SwitchPIR_Inkom != 'Off') Motion(50,345,129,57);
if($SwitchPIR_Garage != 'Off') Motion(255,88,316,141);
if($SwitchPIR_Hall != 'Off') {Motion(404,212,129,65);Motion(469,214,45,66);}
if($SwitchTimeDeurbel>$eendag) Timestamp('Deurbel',-90,17,456);
if($SwitchTimePIR_Garage>$eendag) Timestamp('PIR_Garage',0,255,223);
if($SwitchTimePIR_Living>$eendag) Timestamp('PIR_Living',0,232,223);
if($SwitchTimePIR_Inkom>$eendag) Timestamp('PIR_Inkom',0,40,360);
if($SwitchTimePIR_Hall>$eendag) Timestamp('PIR_Hall',0,403,215);
if($SwitchTimeAchterdeur>$eendag) Timestamp('Achterdeur',-90,280,79);
if($SwitchTimepoort>$eendag) Timestamp('poort',90,315,377);
if($SwitchTimeBrander>$eendag) Timestamp('Brander',0,812,265);
if($SwitchTimeLicht_Zolder>$eendag) Timestamp('Licht_Zolder',0,688,266);
if($SwitchTimeBureel_Tobi>$eendag) Timestamp('Bureel_Tobi',0,782,433);
Code: Select all
!/bin/sh
curl 'http://127.0.0.1:portofwwwserver/secure/hw2domoticz.php'
Code: Select all
2015-12-20 22:39:22.900 Switch 632 kristal On by Guy = OK
2015-12-20 22:46:01.613 Switch 26 brander Off by cron = OK
2015-12-20 22:46:01.642 D0.200|P0.050|T0.250|M14.45|C0.09|E0|TE0|All > 1 actions
You can run it on any PHP enabled machine that has access to your domoticz.maomanna wrote:Can i run the php floorplan on another machine? Or is running on the rpi the best way?
Code: Select all
Dimmer('Lamp keuken',40,420,130); //kamer Tobi