Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Home automation
- Andy Jacobs
November 13, 2004, 5:43 am
rate this thread
this burning desire to mess around with some home automation. Is there any
way with PHP that you can write out to a USB port, for example, to turn a
device on of off?
Does anyone know where there's any decent information about this?
Re: Home automation
(haven't tested this, but it should work)
`mode com1: BAUD=9600 PARITY=N data=8 stop=1 xon=off`;
$fp = fopen ("COM1:", "w+");
$command = chr(27)+chr(64); //DEVICE DEPENDANT
fputs ($fp, $command);