Linux: beginning home automation on a server.

This is just a quickie proof of concept about using a web server to do home automation remotely. all we will be doing is just turning on some leds, but the blueprint will be there for doing larger things. You do need to have some knowledge of linux and using the command line. You could also use the same idea to control x10 modules or even the Insteon units.


I will not talk about setting up routers and how to open a port to access the server remotely. That is for another instructable. But then you could also use https://www.instructables.com/id/Linux-computer-tweeting/

You need to go to https://www.instructables.com/id/No-solder-parallel-port-break-out/ or https://www.instructables.com/id/Mini-parallel-port-break-out-cable/ and build a compatible cable with the led array mentioned in the instructable. This will be attached to your web server.

Update: added a screen shot of html code.
Update: added asm file (lptout.c) separately.

For more info on using insteon see: http://www.linuxha.com/athome/common/iplcd/
Developer kit : http://www.smarthome.com/insteon/sdk2600S.html
Generating web page tutorials: http://w3schools.com/

You may like this instructable also: https://www.instructables.com/id/Linux-screen-play/

Note: I contacted Insteon about getting a free developer kit to do instructables and help sell their product. They said NO!

Using an Android devcie will make even for more fun.

Step 1: Requirements

Some knowledge of linux.
Linux server running apache2 web server with a standard parallel port.. We are using an old Dell GX1 (Pentium II class).
Have administrative rights.
Have build-essential installed on the server
Knowledge of how to compile a c program.
A second computer or mobile web device to access the server remotely
Parallel port cable with led array attached. (see https://www.instructables.com/id/No-solder-parallel-port-break-out/ or https://www.instructables.com/id/Mini-parallel-port-break-out-cable/)
Note: Web page is an internal beta fictional but working site.

Note: Slot 1 pII cpu was swapped out for a slot 1 pIII cpu since the article was originally published.
Instructables seems to have removed the #includes in the code.<br><br>I guess the following are needed: just imagine the names within angle brackets...<br><br>#include stdio.h <br>#include stdlib.h <br>#include unistd.h <br>#include asm/io.h<br><br>
Thanx for catching that, I thought I had caught and fixed it. Anyway I did upload the lptout.c that I used and the original version. <br> <br>For some linux variants, you may want to use sys/io.h instead of asm/io.h.

About This Instructable




Bio: computoman.blogspot.com Bytesize articles instead of a trilogy in one post.
More by Computothought:Coffeepot meals Easy sun hat Easy cakes and pies. 
Add instructable to: