Internet Lamp

by Semicton 23. December 2009 00:34

This is a module I created in C# using Sockets and TCP.  Pressing the button will turn on my house lamp from any where in the world.  There are four parts to this application:

  1. A client service installed on my local PC uploads and stores my IP address to a SQL server on da' net.   If the client service notices it's IP has changed, It updates the database.
  2. A socket server app controlling phidgets and accepting TCP connections.  Once a connection is created, I parse the message and turn on my lamp via a relay switch.
  3. A client on running here on this web page.  The client querys the database for my IP address first, and then creates a connection to my desktop.
  4. The client here on this web page then sends a command to my socket server on my desktop that turns on my lamp.

Watched the video? Try it yourself:

Turn on my home lamp

Tags:

Sandbox

Powered by Semicton 1.5.0.7

Interesting Questions

What is the lifespan of a CD-ROM disc?

Answer:

Aluthough manuafacturers claim that a CD-ROM disk will last 20 years, recent statments by the United States National Archives and Records Administration suggest that a lifespan of three to five years is more accurate. The main problem is that the aluminum substratum on wich the data is recorded is vulnerable to oxidation.


 Refresh

Latest Downloads:

File Name Downloads
2009/12/scribd.zip 319
2009/12/BinaryClock.zip 267