Archive for July, 2008

Here are my screens so far.  As you can see there is now text that is dynamically populated.
I picked a relative small window, in this case 574.1 x 430.05 and work everthing in that, cleaner and simple.

The Jukebox function basically tells my server to open a HTML page and play a radio URL.
you can find that article here Software:Play WAV,MP3 and Playlists, from your program.

Master Bedroom Screen, I’ve added little dots next to the devices to see if there on or off.
I show how I did this in the next article.

Here I’ve also populated the bottom of the Den,Hallway with the motion sensor data, this way
you can see when there was last activity, also the bulbs show the light status.

Yep, the notification screen, its the only way to unglue them from their PC’s
I wonder where they got it from.  That is done

The Special Features menu.  Also populate the information for the Garage Motion sensors and last time it was opened.

Another day another dollar.  Now that im working with flash and I recommend the same, that you get yourself the right tools to work with the images.
It’s all about the images and the presentation.

For creating my main images I used Corel’s PhotoImpact, before used to be owned by Nova development, it has all the goodies you want in a non-photoshop environment.  Plus I find PS to hard to grasp for the regular day to day task.
And you CAN import photoshop files and add-ins so its a real treat plus it loads faster. 🙂

Also another really good utility is one called Xnview located here
Free, Has all the goodies you want in a graphic convert, view and even rebuilds your thumbnails file when its getting slow or corrupted.  There is even a XP shell for it,highlight the images right in your explorer window and from there convert them!.There is also a external program which great features but is a little quirky when using .PNG files.

Also if you take a lot of pictures and find it a pain to be resizing them you can download this free tool,
and just by dropping your file or folder over the file it will do the magic.
free, It contains many options such as replace in place or create new file, resize and keep certain degree of quality, and much more, and the cool part is that its all done by the filename.

As for Icon’s and other goodies surf the web, all the one’s ive used are free.

I have to let my ‘Vista’ rant out, here is my situation, my Main server is on a wireless PC running XP (Hopefully I can migrate to the main server).

But a Vista PC for some reason cannot ping or see it after some time has passed, note that it does respond as long as it its connected, but then just dies?

The only way to fix this is if I ping the vista PC from my XP client and then it works again!!?   And there are two other XP clients wireless also and they work fine!.

I’ve disabled firewalls, IPV6, Aegis and all the other stuff in my network settings…

Oh well I figure a work around somehow…. 🙂

Here’s a pic of my Trusty Icon Applicancelinc and Eagle Eye motion sensor…

I’ve moved that page to the Main Page since I update it frequently.

That page has been moved here

If you like me you really don’t need to know when its dusk and dawn, especially if your getting your sunset, sunrise information daily from the Internet.  Also the Eagle eye will transmit this on the next unit #. For example if you have it configured for A1 it will transmit dawn and dawn in A2, which is really a wasted slot in my opinion, also each x10 transceiver can catch 16 devices which are eaten up fast if you have a couple of the devices already.  Also in my case I have a motion sensor in my entrance that will fire a dusk/dawn alert each time the light goes on.

By using a small little black tape you can disable it.  Yes you can do this by the buttons but this is just another way of doing it. 🙂

The process involves opening the device so your on your own. Im not a expert so again its it to you.

1. Flip the device on its back, you don’t need to remove the batteries

2nd Unscrew all 4 of them and you will see the front cover pop-out

3rd You will see the dusk/dawn sensor right next to the motion sensor. What we will do is just put a small little black tape over it. I’ve

circled it in red.

4. this is how it looks with the tape covering it.  Make sure not to cover the sensor.

Close and your ready to go!!!

Hi, in a previous article I had shown how to monitor & capture data on a specific port using VB. Mainly to allow my server send out notification to the clients, like a Caller ID Alert. That article can be found here

How to monitor and capture data in a specific port in VB / 2005

Below I’ll show the code I use on the server side to actually open and send the information to the clients.

Like mentioned above I will use the example of a caller Id alert , so the program will open a port 81 and send the text ‘callerid’ to the clients (In this case You can use PC names if you have a home router like D-link etc.

Since I have a couple of clients I use VB ‘commandline’ feature to retrieve the IP, port and message that I am going to send.  My utility is called ‘BumpClients’.  For the example lets say this how its called

“Bumpclients.exe callerid 81”

—————— Setting up the imports, make sure you include System.Net and, the others may not be needed

Option Strict Off
Option Explicit On
Imports VB = Microsoft.VisualBasic
Imports System.Xml.XPath
Imports System.IO
Imports System.Net
Imports System.Net.Sockets
Imports System.Data
Imports System
Imports System.Drawing
Imports System.Windows.Forms

Public Class Form1

'------------------------------ Create the instance to of the TCP Client (Its the same as receiving)
    Public WithEvents OpenPort As TcpClient  

'------ I use the Form_load event to quickly send the message and exit the program, no user interaction is needed, we grab all paramters from the command line when called.
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.WindowState = FormWindowState.Minimized '- Go hidden
        Me.Hide() '- Go hidden

'------ Next using the Split command I grab the three parameters by looking for the space( This will give me the IP,the command,and port the program will use!)
'------ Data(0)=IP, Data(1)=command, Data(2)=port.

        Dim IP As String
        Dim datA_out
        Dim port As Integer

        data_out = Split(Command$(), " ")
        IP = data_out(0)
        port = data_out(2)

'------ Just a quick check to make I can ping the IP, if not just exit and dont even bother.
        If My.Computer.Network.Ping(IP) = False Then End

'---- The actualy opening of the port un a 'try' statement if it fails exit also
            OpenPort = New TcpClient(IP, port)
        End Try

'------ If all is good then go ahead and convert our text to bytes and send it out using the stream method!
       Dim data As [Byte]() = System.Text.Encoding.ASCII.GetBytes(Trim(data_out(1)))

        Dim stream As NetworkStream = OpenPort.GetStream()
        stream.Write(data, 0, data.Length)

'------ Close and exit!- That's it!
    End Sub
End Class

A important note, remember that on your client you need to open the port you use in the firewall or it will never see anything, but you dont need to open it on the server since it will be sending.  To test this you will need the two actual computers sine you cant monitor and send data thru the same port.

In my application I actually run a external program using the system.diagnostics,process.start command, to the IP of my PC’s this way, it will run each script and not wait.And each of time will exit accordingly.


System.Diagnostics.Process.Start(“C:\vb\Insteon_BumpClients\BumpClients\BumpClients\bin\Release\BumpClients.exe”, ” ” + data_out + ” ” + port) ‘ Laptop
System.Diagnostics.Process.Start(“C:\vb\Insteon_BumpClients\BumpClients\BumpClients\bin\Release\BumpClients.exe”, ” ” + data_out + ” ” + port) ‘
System.Diagnostics.Process.Start(“C:\vb\Insteon_BumpClients\BumpClients\BumpClients\bin\Release\BumpClients.exe”, ” ” + data_out + ” ” + port) ‘


Here are some images I just took of a SwitchLinc installation, the same applies for all others such as Keylincs, Icons Relays, Dimmers etc.

Like the manual you have to identify your Neutral, Hot or Line, and your Load.

The cables on the switchlinc are clearly identified. with labels and by color,

White = Neutral

Black = Line or HOT

Red = Load

Bare = Ground.

I ALWAYS turn off the breaker and make sure non of the switches im working on work. I’ve gotten many zaps as a kid and there not fun.

Before I start I make sure I write down the address, this way Im not looking for it and removing work already done.,

Also make sure the switch is setup the upwards, the address should be on the bottom left side (At least for the switchlincs and Icons). Icon switches will have their LED on the left side of the switch.

Below is a picture of the device connected

To Identify the cables I usually look for the big bundle of for Neutral and the Load.  If its the first Insteon device you plug in you will see that neutrals not connected to any switch.
For example you can see the Neutrals are all together in the white bundle with the Red Cap,  The load or Hot is usually another bundle of black cables (This is what provides power to all switches so usually all the blacks to/from the switches die here

And the load (Which is off to the light is usually alone or going out. is the one towards the light fixture. In this case its a black wire.

The ground is the bare cable ground, that’s a easy one.

Here is a image of the finished product, this is

2 ICON Dimmers, one regular Decora on/off switch and a Switchlinc, and a unfinished painted wall.

Here is another 4 gang which is 1 Icon, a Switchlinc Dimmer, regular switch and another SwitchLinc