Invoke java program from Indigo

Want to create a client for Indigo - perhaps on a platform which we don't currently support? Or do you have an existing product from which you'd like to control Indigo? This forum is the place to ask questions about the various options for integrating with Indigo.
User avatar
rbdubz3
Posts: 232
Joined: Sun Sep 18, 2016 9:33 am
Location: San Diego, CA

Invoke java program from Indigo

Post by rbdubz3 »

I have written a standalone java program that manipulates Osram Lightify Bulb color temp and brightness. It is currently controlled via Mac OS 'LaunchAgent' which is similar to cron. LaunchAgent starts up every 5 minutes, and the java program only runs for a few seconds. I would like to control it from the Indigo server if possible. The color changing bulbs are in a few lamps in a larger great room. The room also has many recessed lights controlled by Insteon switches..

So my goal is to do the following:
1) If no Insteon switched recessed lighting is in use, run the color/dim changing java program to manipulate bulb temps.
2) if recessed lighting is in use, do NOT run the color/dim java program.. Instead I plan to manipulate color/dim levels in accordance with the Insteon switches

Any examples you can point me to that show how to invoke a java program from Indigo (on a scheduled basis)? At some point I may look to re-write this java program in python but I am not yet ready

thanks in advance!
I automate because I am lazy :D - My Plugins: viewforum.php?f=309
User avatar
jay (support)
Site Admin
Posts: 18420
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Invoke java program from Indigo

Post by jay (support) »

Check out Python's os.subprocess module.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Post Reply

Return to “Client APIs”