X10 Community Forum

🖥️ActiveHome Pro => SDK => Topic started by: Tuicemen on August 29, 2007, 10:32:28 AM

Title: SDK created Programs!
Post by: Tuicemen on August 29, 2007, 10:32:28 AM
Many users continue to ask questions about what they can do with the SDK!
Many Jump in and create some unquie programs many just to satisfy their own needs! Why not share them?
There are many small programs out there created with this tool it is a shame that many don't share their creations
 BIG Shame!
If anyone has a program they have created and would like to share it they can post the Program name here with a link to it!
If you don't have a server to host the program PM me and I'll try to set something up!
if you find a program that was created with the SDK and it isn't listed here please post a link to it ! Or Pm me and I'll add it to the following list!
Heres a small list of programs I've found or created Even if you never wish to improve your work, someone else may be able to use it!
If you plan on selling it down the road (not ready for release) heres a way to get some testers!  ;) :D ;D
Title: Re: SDK created Programs!
Post by: swatson on November 28, 2007, 05:16:50 PM
I have a project fully documented free to be had. It is a PHP interface.
check out http://www.iphonehomecontroller.com
Title: Re: SDK created Programs!
Post by: Rockhoppers on January 26, 2008, 09:32:20 AM
Hi guys, been getting a lot of advice and good info from this forum, there is certainly a good depth on knowledge about the X10 products.

I have been working on a program based around the CM15A system, which i am very new to, and while i have no idea what the end result is going to be, as i keep adding bits and pices to it i would be interested in what guys make of it.

Everything else i have looked at only does half of what i want at twice the price i want to pay !.

I am looking for a few people to help me develop it, test it, break it etc.... but they need to be patient as this is a hobby for me, not a business !

If anyone is interested in installing and running the software then drop me a mail, and i will send you a link to download it when i have a beta release ready.

For a preview goto www.rockhoppers.co.uk, remember it is a work in progress !

Andrew  :)

andrew@rockhoppers.co.uk
Title: Re: SDK created Programs!
Post by: Sirdude on July 17, 2008, 06:04:05 PM
I have a project fully documented free to be had. It is a PHP interface.
check out http://www.iphonehomecontroller.com

downloaded your code and implemented it right quick. i already had WAMP installed on my server, so it was perty much 15mins and up/running.

my 1st test was to play with the living room lights and that got me "in trouble" with my 'better half' :D

of course, since i'm a tinkerer i will be playing with things, but this is an excellent foundation for programmers/tinkerers !!

ie: i'm a prototype/scriptac kinda guy -- no biggie ..

thanks :)
Title: Re: SDK created Programs!
Post by: parag0n on August 25, 2008, 03:11:37 PM
Hi all.  Been frequenting this forum, but never actually registered until today. 

I've been developing a home automation system for personal use.  Attached are some screenshots I took from a remote machine. 

It's written in VB6 (I know I should get with the times and buy .NET, but all experience is with 6).

I wrote it to be modular.  I like this way, as I can develop bits and pieces as my time allows.

Feature list so far (and growing daily)...

GUI to turn lights on/off.  Icons are placed over a floorplan of my house. 
Interface Log.  Commands received by the ActiveHome interface are outputted to screen for troubleshooting/logging.
Telnet Service.  Can telnet to the application to get device status and toggle devices/send raw commands.  Also functions as a chat server. 
Web service.  Can connect to application with browser and get device status and toggle devices.
Watchdog service.  Monitors device activity at given timeframes and sends alerts to cellphone via email. 
Voice control.  Can turn devices on/off with voice commands.   
Macros.  Can execute scripts to perform actions (adjusting lights for movie time, bedtime, all on/off, outside on/off)
Standard control.  Can send raw commands, toggle, or dim devices with button controls. 

Right now many items are hard-coded to values specific to my setup.  Will be adding code to make all aspects of the project configurable.

My new subproject is a client modification of the voice control module that'll receive voice commands and send the appropriate commands back to the server via telnet.  This will enable voice controlled lighting away from the main server.  I could run the app on every computer in every room of the house and then have the server do the actual legwork, thus not requiring the SDK and a USB interface on every machine.  If someone is interested in colaborating, I'd be willing to compile a one-off telnet server only module and provide the speechrec source. 
Title: Re: SDK created Programs!
Post by: BaBaLou. on August 25, 2008, 05:32:17 PM
Hi and Welcome paragOn, let me be the first to say as many I am sure will follow  #:) on the development of the setup for your system. Looks good and takes and nice visual approach to the setup. Will be watching closely.  :)%
Title: Re: SDK created Programs!
Post by: Tuicemen on August 25, 2008, 05:37:52 PM
parag0n: welcome!
As soon as you have a distributable post a link!
 I'm sure many here would be interested in playing with it and perhaps help debug it! ;)
Title: Re: SDK created Programs!
Post by: mvago on September 26, 2008, 01:52:45 PM
Hi,

I developed an application to control Windows Media Player using X10 commands.
The application will allow you to select the play list, play, stop, skip to the next music and previous one.
It is very simple to set up and use Text To Speech to talk the name of the play list. I have speakers in my house connected to the computer that runs my home automation software and this small app.
This way I can use the X10 remote to select the play list that I want to play without looking at the computer.

I wrote this app as a sample to use this funcionality on a bigger project that I'm doing. You can add this app to your start up programs, this way you will always be able to listen to music when you want.

Below is one screenshot of the application, like I said is very basic but do the work.

(http://letsdevelopit.com/images/MediaPlayerControl.JPG)

You can download this app from the link below:
www.letsdevelopit.com

This is my web page and I will be adding more apps there time to time.

Thanks,
MVago
Title: Re: SDK created Programs!
Post by: HA Dave on September 26, 2008, 08:08:58 PM

I developed an application to control Windows Media Player using X10 commands.............  This way I can use the X10 remote to select the play list that I want to play without looking at the computer.

You can get more info and download this app from the link below:
www.letsdevelopit.com


Pretty cool. I already use a SDK based third-party software (Bill's Voice Commander (http://www.davesdomainonline.com/bvc/bvc.htm)) with my X10 AHP setup. The BVC (http://www.davesdomainonline.com/bvc/bvc.htm) I use allows me to Voice Command my X10 devices. Do you think your app might be compatable with this?
Title: Re: SDK created Programs!
Post by: mvago on September 27, 2008, 02:01:41 AM
Sure, will work just fine.
I have on the same machine 3 different applications using X10 commands and this is one of them.
Title: Re: SDK created Programs!
Post by: parag0n on September 27, 2008, 03:05:27 PM
I've overcome the coding issues I had during my last post.  Instead of trying to write a client to communicate with my telnet daemon, I wrote a whole new TCP/IP service.  It's not extremely robust, but features keep getting added to it. 

Since this, I've written a client portion of the X10 server software.  This weekend I'm setting up a faster wireless network and deploying computers in every room of the house.  This software will accept voice commands on any PC in the house, and forward them via TCP to the X10 server, which in turn will control the lights.  In short, by the end of the night I hope to have voice controlled lighting throughout the house and not just in front of the X10 server.

I attached a screenshot of the new client software previously unannounced.  It's not exactly modular like the server application, but it has a light foot print and pretty slick code optimizations.  Just set it to the device you want to control with voice commands.  To the right of this setting are Off/Dim/Bright/On icons.  The control panel icon sets configurations as to which X10 server and ports to use.  The question baloon displays all available voice commands.  The axe cutting the line allows raw X10 commands to be sent to the PLC.  The network neighborhood icon lauches telnet to connect to the telnet service of the X10 server.  The globe browses out to the X10 server's HTTP daemon.

Speaking of which, I got a decent overhaul of the HTTP daemon.  I used some pretty nice imagemapping and javascript to now also serve up floorplans of the house on the web site in addition to the server application.  Since they're image maps, they are static.  You have to rely on the status listing to note if the lights are on or off, but you at least have a layout with clickable icons to control your devices.  I will have to post a screenshot of it sometime.

I'm very proud of my application.  I've bounced around the idea of selling it in conjunction with X10 installation sales and service, so for that reason I'd rather not distribute the source code.  I would however extend a personal invitation to any individuals interested in the code that could contribute a useful feature back to my project.  I could really use someone who is especially skilled in coding services with Winsock 6.  I'm willing to share with anyone seriously interested on the condition that the code is treated with privacy.

And by the way, adding Voice Commands to any VB6 (and .NET) application is not difficult.  There are plenty of examples out there on pscode.com and other sites.  It's really a fun coding experience, so I'd recommend it to any serious enthusiasts.
Title: Re: SDK created Programs!
Post by: Melloware on October 24, 2008, 10:36:24 AM
X10 Commander for the iPhone and iPod touch.....  Control up to 60 devices using your CM11, CM12, CM15, CM17 or CM19 X10 Controller.

http://melloware.com/products/x10commander/

(http://melloware.com/images/x10-main.jpg)

Title: Re: SDK created Programs!
Post by: HA Dave on October 24, 2008, 03:43:25 PM
X10 Commander for the iPhone and iPod touch.....  Control up to 60 devices using your CM11, CM12, CM15, CM17 or CM19 X10 Controller.

http://melloware.com/products/x10commander/


Pretty impressive (although shameless self-promotion of a commercial venture).
Title: Re: SDK created Programs!
Post by: Melloware on October 24, 2008, 05:32:33 PM
Pretty impressive (although shameless self-promotion of a commercial venture).

Dave,   Sorry about that, Tuicemen didn't say it couldn't be commercial. He just said any cool apps you have done with the SDK.  I saw this thread about what cool programs have you written using the SDK, and I used the SDK to write my server side piece.  Sorry if its shameless, I am just trying to spread the word.  I have gotten really positive feedback from X10 community so far!  But please accept my apology if I offended!
Title: Re: SDK created Programs!
Post by: HA Dave on October 24, 2008, 06:59:05 PM
Dave,   Sorry about that, ................. Sorry if its shameless, I am just trying to spread the word.  I have gotten really positive feedback from X10 community so far!  But please accept my apology if I offended!

Forgive me.. please... no apology required (I would be the last to complain about shamless product promotion). Your program(s) made me wish I had an iphone!
Title: Re: SDK created Programs!
Post by: Melloware on October 24, 2008, 07:14:22 PM
Forgive me.. please... no apology required (I would be the last to complain about shamless product promotion). Your program(s) made me wish I had an iphone!

HA! OK.  Well they work on the iPod Touch too...but even then they are still a little pricey even at the lowest model...but they are coming down in price everyday!
Title: Re: SDK created Programs!
Post by: parag0n on October 24, 2008, 07:42:11 PM
X10 Commander for the iPhone and iPod touch..... Control up to 60 devices using your CM11, CM12, CM15, CM17 or CM19 X10 Controller.

http://melloware.com/products/x10commander/

(http://melloware.com/images/x10-main.jpg)



I'd be interested in knowing more about the communications protocol for your backend.  Mine is pretty basic and basically accepts parameters to the sendplc then disconencts the socket.  I've not had a lot of time to brainstorm how it can be improved.

I've been considering buying one of those touches for a similar purpose.  My app serves up a website.  Anything that displays HTML can control it. 
Anyone else with a similar system might be interested to know that you can get an older iPaq and compact flash wireless card pretty cheap on eBay.. which is probably the route I'll end up going. 
Title: Re: SDK created Programs!
Post by: parag0n on October 24, 2008, 08:12:16 PM
This will be kind've off topic, but really not considering it's an SDK related program I wrote.. Let's call it a demonstration of this technology..

My daughter has a set time to be off the computer at night.  You can tell them to log off, but teenagers live in a completely different world.  If she doesn't say "bye ttyl" to each of seemingly endless IM conversations she has going, she will have a little tantrum to put it nicely.  So the solution to this was to write a quick batch file that locks the computer and set it to run daily with the task scheduler.

This worked wonderfully.  Now for the new problem.

Now that summer is gone and school is in full swing, we've been trying to eat dinner together at regular times.  Except, on days she's got no homework, she's glued to the computer as soon as she's home from school.  As you can imagine, telling everyone "brb/gotta eat" can take just as long as saying goodbye if you're a teenager.   :P

Anyhow, my solution is brilliant!   -:)

I wrote a quick VB6 app, independent of my other server app shown in previous posts.  Just something quick and dirty on a whim really..

It waits on input from the receiver and looks for a house/unit code combination that I'm not really using on any devices to be turned off.  That shells out and runs psexec to remote to her computer, log in, and execute the batch file that the task scheduler uses to lock the computer every night.  In short, I can now lock her computer with a button.

It's made dinner time prompt and made for interesting conversation about other things that could be applied to the remote.  I joked that if I had gotten them iPhones I could probably write something similar to turn off their cell phones with a button.   :)%

BTW: Sorry if I overused the smileys here... I don't post often enough and I wanted to try them out.

Title: Re: SDK created Programs!
Post by: Melloware on October 24, 2008, 09:46:41 PM
I'd be interested in knowing more about the communications protocol for your backend.  Mine is pretty basic and basically accepts parameters to the sendplc then disconencts the socket.  I've not had a lot of time to brainstorm how it can be improved.

I do the same thing.  It's a TCP Socket connection between the iPhone/iPod Touch and the PC Server EXE. 
Title: Re: SDK created Programs!
Post by: Tuicemen on December 24, 2008, 11:54:55 AM
The input so far here has been great! #:)
Thought I'd add another one  ::) :'
X10 Control Layout (XCL)
It was originally intended just to show locations and status of your modules but it is able to turn the devices on/off as well by clicking on the device!
This should work well with a touch screen ::) :'
If someone has one I'd love to hear how it works with it!
>!
Update:
Now included in PC Companion (http://www.angelfire.com/in2/ontkoi/X10AHP/PcCompanion.html)
Title: Re: SDK created Programs!
Post by: jsnone1 on January 21, 2009, 06:05:43 PM
OK , I download SDK from x10 website, then downloaded the Windows media player, try to launch it, and I get an error saying I need to download SDK, which I already did.......
Title: Re: SDK created Programs!
Post by: Tuicemen on January 21, 2009, 06:30:16 PM
OK , I download SDK from x10 website, then downloaded the Windows media player, try to launch it, and I get an error saying I need to download SDK, which I already did.......
I'm Not sure what your trying to do here ???
A little more info.
When you try to launch what?
From where?
Which SDK is it asking for?
Title: Re: SDK created Programs!
Post by: mvago on March 12, 2009, 04:04:38 AM
Hi,

Just want to give some update on my previous post about the Windows Media Player remote.
I added the VOLUME control and I did some improvements to solve some issues with the X10 remote that some times send more than one command.

If you have a PalmPad Remote Control you can download a template that I did to use on that remote. The template have the controls for the Media Player.

The web site still the same:  www.letsdevelopit.com (http://www.letsdevelopit.com)

(http://2.bp.blogspot.com/_t7E0-rzlJ8Y/SZUTx587INI/AAAAAAAAAAM/0ALGcnHD1Wk/s200/Remote.jpg)

Title: Re: SDK created Programs!
Post by: devedsmith on July 22, 2009, 04:05:06 AM
How do you open the help file? CHM's don't open on my computer.
Title: SensorSense
Post by: Videonut on August 17, 2009, 08:19:06 PM
I made a small program that checks if your DS10A sensors are "Checking IN"
Here's the link
http://forums.x10.com/index.php?topic=18609.0
Title: Re: SDK created Programs!
Post by: parag0n on November 07, 2009, 12:48:49 PM
Hi everyone!

I've developed some new stuff.  Not quite ready to show it yet, but it's pretty sweet.

What I have is an X10 to MySQL database engine.

It waits on commands from the X10 interface, and then submits them to the database.  This makes reporting awesome.  I've made some quick and dirty PHP pages that read the DB and report back the status of every device on a webpage.  It also keeps a transaction log of what is going on with the X10 system.  This is the beginning of the feature similar to that from the provided X10 software that will allow me to have other code examine what I turn on and off daily and have it make decisions on what to automatically schedule on and off.  That's fine and well, but it is also logging for me when doors are opened and closed, which believe it or not is invaluable data.

And speaking of scheduling, it has an event processing thread.  In addition to reading from the X10 interface and updating a database, it also does the reverse.  I can use other applications (a whole slew I've been writing actually) to put a simple message into a database events table.  The software will look at the events table on a timed basis and then send X10 commands out the interface if it's time for the scheduled item to be executed then remove the item from the events table when it is.

In short, I can read from a database to find out what's up with my house, and then write to the database to control something in it.  These reads and writes can come from anywhere.

Another awesome feature -- event routing.

Despite having a passive coupler installed to ensure the X10 signals go to both legs of my home's wiring, I still have problems with one device in the absolute further corner in the house away from the X10 interface.  I am able to control that device with a remote control, because I installed a transceiver in the same room and that is able to get the signals to the outlet.  Still, the commands coming from the X10 interface don't reach up to that room of that floor.  My solution, is to route that command to another computer.

I took the event processing module that looks in the database and sends out commands via the X10 interface and modded it to work with a firecracker interface.  I set it up to use a different table.  Now when my X10 server wants to send a command that I know will lose signal before it gets to the device, it has been coded to instead redirect that command into a different table.  Another computer, closer to the transceiver upstairs and equipped with a firecracker interface, reads the second table and sends its command through the firecracker.

In short, when the server cannot control a device, it is smart enough to tell another computer to control it for it.

Right now I'm rewriting my application that uses TCP to connect to the server and control things to instead do what it would do through the database.  It's a much thinner version of the server console.  I runs in the system tray.  I right click it, choose which floor of the house I want to control, and a floor plan pops up on the screen.  It queries the DB and updates the screen with which lights are on or off and if I click one, a command to do the opposite of its current state is added to the events table.  Again, if the X10 server knows it cannot control that device, it forwards the command to another table, where a device that can control it picks it up and takes care of it.

I'm very excited -- database control is about the best thing I've ever done for my system.

Title: Re: SDK created Programs!
Post by: dbemowsk on January 04, 2010, 01:42:31 AM
I am working on a PHP application that gives me a web based layout of my house and the status of my x10 devices (mainly lighting).  What I have so far is a MySQL database which holds the information for my house. 

The tables consist of the floorplans, the object types (module types), and the individual objects (addressed modules).

The floorplans are just images that I created a while back using an online demo version of a home remodeling design program.  From there I was able to save them as images and do the final manipulation in gimp graphics editor. 

The object types too are images (icon size).  For example, a relay light module would use 2 object type images.  One of a light bulb on, and another of that light bulb off.  Another example I have is one for my ceiling fans.  I have a plain image of a small fan for the fan being off.  I then have an animated image of the fan rotating for the fan being on. The reason for the object type definitions is so I can define multiple types for a certain kind of module.  For example, I can have a lamp module that controls a table top lamp in one part of the house, and a hanging light in another part of the house, both of which I may want to be represented by different icons. 

The last table is for the objects.  Each object is defined by the floorplan it is to be represented on, two object type ids (an on and an off object type), the center x and y position of the object in relation to the floorplan image, and it's house and unit codes.

The script heavily uses CSS positioning to place the objects on the floorplan layout.  So far I have the script using the queryplc command to check the state of each of the modules and display it's on or off icon.  Here is my current working example http://66.190.8.188:8088/index.php (http://66.190.8.188:8088/index.php).  Not all the objects in my example are actually installed, but I plan to install them in the near future.  Some are activated in AHP for demonstration purposes.

Plans I have for the future of this:

 - Create other object types for possible non-x10 integration for things such as my RCS TR-40 thermostat to show and control temperature
 - Create a login page to be able to run extended features.  For example, view only when not logged in, and full system control when logged in.
 - Give the ability to turn objects (modules) on or off.
 - Keep a database log of x10 and other object/module actions executed by the system.
 - Create informational graphs of data logged by the system.

This project is in it's infancy, but if anyone is interested in any of the code I currently have, shoot me a PM and I'll get you a copy.  I will provide you with all of my object images, but you will need to provide your own floorplan images.  My floorplan images are 1015px X 442px to give you an idea of the size of my layout. 

Happy coding...

Dan B.
Title: Re: SDK created Programs!
Post by: RamEliC on April 13, 2010, 11:02:34 AM
All of these programs are great.  I am currently using the X10 Commander for my iphone and i have tried some of the other programs mentioned in this thread.  My only problem is that i cant get any of them to work!  It appears that they are all designed for Windows XP (or a 32bit OS).  I have Windows 7 64bit and cannot get X10Dispatcher or PC Companion to work.  AHP and X10Commander work fine.

X10Dispatcher: I REALLY need this one to work.  It installs fine and loads but cant detect the SDK/Scripts.  I tried contacting the Administrator for X10Dispatcher using the email address on the webpage but it got bounced back.

PC Companion
:  Installs fine but crashes as soon as I launch it. 

Windows Compatibility mode didn't make any difference for either.    Are there any plans to have a Windows 7 (32/64bit) compatible version of these programs??

All I am looking for is a program that will launch custom scripts/executables when PLC commands are detected. 

SOMEONE PLEASE HELP!

Title: Re: SDK created Programs!
Post by: Tuicemen on April 26, 2010, 10:00:08 AM
X10dispatcher most likely will not be updated :'( , but anything is possible ::)

Currently PC Companion does work on Win 7 (32 bit) at least on my machine  ::) :'
It will get updated to work on 64 bit. Unfortunately it may be a while before the next update as I have a lot of stuff on my plate with the warmer weather. :-[
 >!
Title: Re: SDK created Programs!
Post by: dave w on April 26, 2010, 11:52:18 AM
All I am looking for is a program that will launch custom scripts/executables when PLC commands are detected. 
SOMEONE PLEASE HELP!
Well I don't know how desparate you are, but Homeseer is a program which will. It does a lot and is expensive. At least it can use the CM15A as a powerline interface.

http://www.homeseer.com/
Title: Re: SDK created Programs!
Post by: Tuicemen on April 26, 2010, 04:07:04 PM
All I am looking for is a program that will launch custom scripts/executables when PLC commands are detected. 

SOMEONE PLEASE HELP!


Actualy AHP will do this !
The trick is creating a batch file that opens the executable.
Have AHP start the batch file with a macro.
In order to have AHP reliably fire the windows command from a macro you need to do this work arround (http://forums.x10.com/index.php?topic=15010.msg83769#msg83769)
 >!
Title: Re: SDK created Programs!
Post by: xluthor on April 22, 2011, 08:09:13 PM
Hello,

I am really interested in your web interface.  I would love to have a html page showing device status (lights, occupancy etc) and also be able to view logs from doors, motion sensors, etc.

Would you be willing to share some of your work?

Thank you in advance for any assistance you can provide.


Hi everyone!

I've developed some new stuff.  Not quite ready to show it yet, but it's pretty sweet.

What I have is an X10 to MySQL database engine.

It waits on commands from the X10 interface, and then submits them to the database.  This makes reporting awesome.  I've made some quick and dirty PHP pages that read the DB and report back the status of every device on a webpage.  It also keeps a transaction log of what is going on with the X10 system.  This is the beginning of the feature similar to that from the provided X10 software that will allow me to have other code examine what I turn on and off daily and have it make decisions on what to automatically schedule on and off.  That's fine and well, but it is also logging for me when doors are opened and closed, which believe it or not is invaluable data.

And speaking of scheduling, it has an event processing thread.  In addition to reading from the X10 interface and updating a database, it also does the reverse.  I can use other applications (a whole slew I've been writing actually) to put a simple message into a database events table.  The software will look at the events table on a timed basis and then send X10 commands out the interface if it's time for the scheduled item to be executed then remove the item from the events table when it is.

In short, I can read from a database to find out what's up with my house, and then write to the database to control something in it.  These reads and writes can come from anywhere.

Another awesome feature -- event routing.

Despite having a passive coupler installed to ensure the X10 signals go to both legs of my home's wiring, I still have problems with one device in the absolute further corner in the house away from the X10 interface.  I am able to control that device with a remote control, because I installed a transceiver in the same room and that is able to get the signals to the outlet.  Still, the commands coming from the X10 interface don't reach up to that room of that floor.  My solution, is to route that command to another computer.

I took the event processing module that looks in the database and sends out commands via the X10 interface and modded it to work with a firecracker interface.  I set it up to use a different table.  Now when my X10 server wants to send a command that I know will lose signal before it gets to the device, it has been coded to instead redirect that command into a different table.  Another computer, closer to the transceiver upstairs and equipped with a firecracker interface, reads the second table and sends its command through the firecracker.

In short, when the server cannot control a device, it is smart enough to tell another computer to control it for it.

Right now I'm rewriting my application that uses TCP to connect to the server and control things to instead do what it would do through the database.  It's a much thinner version of the server console.  I runs in the system tray.  I right click it, choose which floor of the house I want to control, and a floor plan pops up on the screen.  It queries the DB and updates the screen with which lights are on or off and if I click one, a command to do the opposite of its current state is added to the events table.  Again, if the X10 server knows it cannot control that device, it forwards the command to another table, where a device that can control it picks it up and takes care of it.

I'm very excited -- database control is about the best thing I've ever done for my system.


Title: Re: SDK created Programs!
Post by: jl609 on May 13, 2011, 04:24:06 PM
I have made an example that allows users to manipulate values on a publicly accessible MySQL database that is read by a PC on my private network which then sends an X10 command based on those state values. This keeps control of the X10 interface inside my private network while giving public access only to the state values that I allow.
I put a streaming video on it so you can see a lamp turn on and off as you click the button. I'll probably keep the stream up for a few weeks.

http://html5.litten.com/x10-lamp-control-over-the-internet-with-live-streaming-video-example/

All the source code and an explanation is there. Let me know if you have any questions.
James
Title: Re: SDK created Programs!
Post by: EL34 on May 23, 2011, 02:19:25 PM
Hey James, that is pretty cool.
I already have several VB.net programs that I have written to access several MySql databases on 3 of my servers.

I was thinking that instead of creating a server and a local web page I would write a tiny VB.net program that runs as a service on startup.
The service program would check the database at an interval and send the proper x10 commands to the devices that have changed since it last database scan.

Each device in the database would have a single digit field that indicates that the device state has been changed since the last scan.
The field can contain a 0 for no change or a 1 for change

The data base service program scans the database and looks all devices that have a 1 in the indicator field.
Then carry out the on/off commnd
Then Reset the device indicator field in the database to 0

Two ideas here for the main device controller program:
I can write a Vb.net program that can run on any of my PC's or Notebook computers
It os just a button interface that has the ability to change the device on/off state in the database.

Or I supposed I could write a .php program that resides on my server and then I could use a browser to access and change devices from anywhere.

Pretty simple stuff, but I never thought of it till I saw your post.
Title: Re: SDK created Programs!
Post by: Buman on October 08, 2011, 11:30:05 AM
The following program I made using Delphi. It uses the SDK to control the CM15 interface. The other interfaces are controlled directly. I would like to do this for the CM15 as well, however the protocol is not yet revealed as far as I know of.

There's also an Android client available.

You can find the program here: http://www.freewarefiles.com/Active-Home-Vista_program_44203.html.

Title: Re: SDK created Programs!
Post by: gilboash on December 28, 2011, 04:00:27 PM
Hey there

I see it has been a while since someone published an SDK based app in here.

So I have developed an automation tool that manage Active Home X10 devices, combined with some really sexy features.
---
1. The tool allows you to control all X10 devices, along with UIRT devices, set macros and all the mandatory stuff, with a nice "design your house" wpf gui.

2. Actions - let you control which trigger device and action will cause which device to do something else (for example - motion sensor MS13 will result in sending you a mail, or voice command "Lights on" will cause livingroom lights to turn on).

3. Aggregated actions -meaning you can program amount of notifications that will cause trigger and not a single notifications (for example when no motion in room for 10 minutes turn off lights, or the opposite).

3. Voice controlled

4. IR devices control

5. Mail notifications

6. Server - Client to allow control over the tool from other PC's (Under Construction).

7. Power consumption statistic to minimize power usage (Under Construction).

obviously it is all free..

I strongly recommend to visit my website at www.gilboash.co.cc, it also has a do-it-yourself section with some explanations on the devices, and manual of how to activate the program.

So I would love to have some more overseas users- enjoy and contact me for any issues

gilboa

www.gilboash.co.cc
Title: Re: SDK created Programs!
Post by: peec on July 02, 2012, 01:20:16 AM
For PHP developers, a new project I launched:

PHP API: http://code.google.com/p/x10php/

I am also working on a complete website ( same url ), with focus on technology, design and ease of use.
Title: Re: SDK created Programs!
Post by: Noam on July 05, 2012, 01:26:59 PM
For PHP developers, a new project I launched:

PHP API: http://code.google.com/p/x10php/

I am also working on a complete website ( same url ), with focus on technology, design and ease of use.

This looks really cool!
I didn't see any documentation yet, but from the looks of the code, I probably could figure a lot of it out myself.
I didn't see any examples that used Extended Codes. Are thy supported by this API?
Title: Re: SDK created Programs!
Post by: kenrad on October 03, 2012, 10:47:17 PM
I have been working on a program similar to BVC. It is a work in progress. It works very well on my Win 7 64 bit pc. No speech recognition box will pop up at the top of the screen. The voice recognition in the program will only listen for commands that meet the criteria as defined in a xml file. There will be no other forms popping up at random because windows 7 was listening in. There is a security monitor window where the gui objects can be set by you to resemble your individual floor plan. A rf sensor or power flash module will report to each gui object. The object will blink on and off until a "off" code is received. I have some screen shots here and you can download the program here: http://www.riverwalk-hoa.com/MVC.zip  (make sure you read the readme.txt file). You will need to install the latest .Net 4.5 Framework for Win 7/8. Just ask questions here.

screenshot1:  http://www.riverwalk-hoa.com/Capture3.PNG
screenshot2:  http://www.riverwalk-hoa.com/Capture1.PNG
screenshot3:  http://www.riverwalk-hoa.com/Capture.PNG
screenshot4:  http://www.riverwalk-hoa.com/Capture4.PNG
screenshot6:  http://www.riverwalk-hoa.com/Capture6.PNG
screenshot7:  http://www.riverwalk-hoa.com/Capture7.PNG
screenshot8:  http://www.riverwalk-hoa.com/Capture8.PNG
screenshot9:  http://www.riverwalk-hoa.com/Capture9.PNG
screenshot10:  http://www.riverwalk-hoa.com/Capture12.PNG




Your program looks very interesting.  Are you running this as a addon to AHP or does it run on its own.  I am curious how you are pulling the addresses for the security sensors ds10a or ds12a.  I have been looking for a way to add these to my setup with out running AHP 

Cheers Ken
Title: Re: SDK created Programs!
Post by: hawk1 on October 04, 2012, 11:07:12 AM
SPVAL; does this program work on windows xp 32 bit?
Title: Re: SDK created Programs!
Post by: Tuicemen on October 07, 2012, 08:03:14 AM
Hi Ken. The program runs by itself. It requires you to have the AH SDK installed. When you plug batteries into a DS10A, their normal output when reporting "on" or "off" is the format "M1 SOCIALITE", followed by something like "09,7E,8F,06,81 -1", as reported by the CM15A, CM19A being processed through the SDK script. Each DS10A has a unique code for on or off. I haven't used AHP for several years, but I remember that you have to set up a DS10A through a special process to work through AHP. With this program (while running), you put the batteries in the DS10A, trigger the sensor and watch for the M1 SOCIALITE code to appear in "received events". Just copy the code from the events window for on or off and paste the codes in the security monitor setup form for that particular sensor. No more dreading the AHP setup when you have to replace batteries. I hope my explanation helps.

- spval

Using this method to detect security devices doesn't always work.  :(
I had started to implement this in PCC when I discovered the issue.
I'm told this is a bug in the X10 code and it isn't intended to work that way.
At some point X10 will disable this making any program that relies on it inoperable :(

You may get all your devices set up this way and may have one that just won't.
Replacing batteries in a DS10A will cause it in most cases to change the transmitted code some times the SDK won't see the new code.
 >!
Title: Re: SDK created Programs!
Post by: Tuicemen on October 07, 2012, 03:28:12 PM
The M1 SOCIALITE commands are an unintended receive. this is listed in the bugs report thread.
X10 developers on the payroll at the time stated this would be removed
However with the list of bugs it got moved to the back of the list.
since those programmers no longer work for x10 it may stay  in the bug list for some time longer. But I have been told it will be remove (fixed) at some point.
If you always get a M1 SOCIALITE command your lucky, not all my security sensors will send these. Also I've had sensors stop sending a M1 SOCIALITE once I changed the batteries.
However you may wish to add a disclaimer in your software that that detection may be removed from the SDK at some point and if/when that happens it is beyond your control.
 >!
Title: Re: SDK created Programs!
Post by: Tuicemen on October 07, 2012, 03:54:42 PM
I have 2 or 3 that always report the M1 SOCIALITE signal, even after several battery replacements
2 never ever sent those commands
And 3 stopped sending after a battery replacement.
So the M1 SOCIALITE commands are inconsistent in my setup.
When I asked that this inconsistency be fixed I was informed it was a bug and the M1 SOCIALITE signals would be removed altogether at some point as I shouldn't be seeing them.

This is why I never added the options to my programs, infact I programed them to ignore those signals.
Hopefully X10 changes their mind and doesn't remove the fact that these signals are seen and fixes the inconsistencies instead.
 >!
Title: Re: SDK created Programs!
Post by: Mustang65 on November 16, 2012, 10:35:51 AM
Hi,
The link to the PC Companion nolonger is a valid page.  Can someone correct that.
Thanks
Don
Title: Re: SDK created Programs!
Post by: Tuicemen on November 21, 2012, 08:56:20 AM
Fixed
 >!
Title: Re: SDK created Programs!
Post by: desliem on July 15, 2013, 06:29:35 PM
Hi

Go to ActiveHome Pro SDK (ahsdk) with Delphi at sigmdel.ca/michel/program/delphi/ahsdk/ahsdk-intro_en.html for an example application done with Delphi (tested in Delphi 7 and Delphi 2010).

Nothing new, just gathered information found in this forum.
Thank you to all who have helped me and hope this helps others

Title: Re: SDK created Programs!
Post by: Brian H on July 15, 2013, 06:36:20 PM
Thank you for taking the time to document this data and share it with others.