Plex Forums: Indigo/Insteon Plug In - Plex Forums

Jump to content

  • (5 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Indigo/Insteon Plug In

#1 User is online   cfriedberg Icon

  • Dedicated Member
  • PipPipPip
  • Group: Members
  • Posts: 330
  • Joined: 18-November 09
  • Gender:Male
  • Location:New York

Posted 07 January 2010 - 08:09 PM

Has anyone heard if someone is looking into an Indigo Plugin? Would be awesome if when sitting on the couch, in Plex, ready to watch a movie, i could turn off my lights and such from right within Plex...
Plex has changed how my family enjoys media entertainment...and we LOVE IT.
0

#2 User is online   cfriedberg Icon

  • Dedicated Member
  • PipPipPip
  • Group: Members
  • Posts: 330
  • Joined: 18-November 09
  • Gender:Male
  • Location:New York

Posted 08 January 2010 - 12:17 AM

my post over at the Indigo forums...

Indigo plug-in for Plex

Plex has changed how my family enjoys media entertainment...and we LOVE IT.
0

#3 User is offline   cdizzel99 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 18
  • Joined: 01-October 09

Posted 08 February 2010 - 05:15 PM

View Postcfriedberg, on 08 January 2010 - 12:17 AM, said:

my post over at the Indigo forums...

Indigo plug-in for Plex


I will be incorporating Indigo in my home within the next couple of weeks and this would make for a great plugin. As far as the plugin itself is concerned it really shouldn't be that difficult to write. Since the Indigo software is apple scriptable I imagine that the plugin should look something like the airfoil plugin, or at the very least this plugin would be a good place to start. Once I have set up Indigo I will look a little deeper into the API as well as the scriptable items to see how this plugin could be done (unless someone wants to start sooner of course).
0

#4 User is offline   Korey Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 52
  • Joined: 30-May 08
  • Gender:Male
  • Location:Great White North
  • Interests:Mac Mini 1.66 upgraded to 2.33 / 2 GB

Posted 19 February 2010 - 03:45 AM

View Postcdizzel99, on 08 February 2010 - 05:15 PM, said:

I will be incorporating Indigo in my home within the next couple of weeks and this would make for a great plugin. As far as the plugin itself is concerned it really shouldn't be that difficult to write. Since the Indigo software is apple scriptable I imagine that the plugin should look something like the airfoil plugin, or at the very least this plugin would be a good place to start. Once I have set up Indigo I will look a little deeper into the API as well as the scriptable items to see how this plugin could be done (unless someone wants to start sooner of course).



Any word on this? :)

I would love to be able to have Plex push it's status to Indigo.

IE: when you play a movie, Plex would notify Indigo to dim the lights (or whatever action you would want executed), When plex is paused the lights would brighten up (or whatever action you would want), when movie is stopped, lights could return to normal... ect..
0

#5 User is online   cfriedberg Icon

  • Dedicated Member
  • PipPipPip
  • Group: Members
  • Posts: 330
  • Joined: 18-November 09
  • Gender:Male
  • Location:New York

Posted 19 February 2010 - 11:35 AM

i started a similar thread over at the Indigo forums...see here.

Indigo Forum Thread

Plex has changed how my family enjoys media entertainment...and we LOVE IT.
0

#6 User is offline   cdizzel99 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 18
  • Joined: 01-October 09

Posted 19 February 2010 - 04:46 PM

View PostKorey, on 19 February 2010 - 03:45 AM, said:

Any word on this? :)

I would love to be able to have Plex push it's status to Indigo.

IE: when you play a movie, Plex would notify Indigo to dim the lights (or whatever action you would want executed), When plex is paused the lights would brighten up (or whatever action you would want), when movie is stopped, lights could return to normal... ect..


I have a developed a basic version of the plugin. Essentially the ability to control all of your devices from within plex. I am currently performing some last minute testing and expect to attach a version of the plugin when I get home this afternoon.
0

#7 User is online   cfriedberg Icon

  • Dedicated Member
  • PipPipPip
  • Group: Members
  • Posts: 330
  • Joined: 18-November 09
  • Gender:Male
  • Location:New York

Posted 19 February 2010 - 05:21 PM

View Postcdizzel99, on 19 February 2010 - 04:46 PM, said:

I have a developed a basic version of the plugin. Essentially the ability to control all of your devices from within plex. I am currently performing some last minute testing and expect to attach a version of the plugin when I get home this afternoon.


That's terrific! I'll gladly help beta test.
Plex has changed how my family enjoys media entertainment...and we LOVE IT.
0

#8 User is offline   cdizzel99 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 18
  • Joined: 01-October 09

Posted 20 February 2010 - 12:51 AM

View Postcfriedberg, on 19 February 2010 - 05:21 PM, said:

That's terrific! I'll gladly help beta test.


I have attached the beta version of the Indigo Plugin, just unzip the file and then move it into your media server plugins folder.

As I said earlier this version is a basic implementation which allows you to turn on and off your indigo devices. This can be done whether or not your Plex machine is the same that is running indigo. If your setup consists of a different mac than that which is running Plex then the first time you start the plugin enter your information into the settings page and make sure to select the toggle. If your Plex machine is also your indigo machine then you do not have to enter any settings and the plugin should work immediately. Please let me know of any issues you have with the plugin and I will try to work through them.

I am currently working on version 0.2 of this plugin which will allow for dimming of lights and in which you will have the ability to control any action groups. I will also try to incorporate HVAC control however this may come later. Please let me know if any devices or features that are missing and you would like to have.

Attached File  Indigo.bundle.version.0.1.zip (190.63K)
Number of downloads: 54
Attached Image
Attached Image
Attached Image
0

#9 User is online   cfriedberg Icon

  • Dedicated Member
  • PipPipPip
  • Group: Members
  • Posts: 330
  • Joined: 18-November 09
  • Gender:Male
  • Location:New York

Posted 20 February 2010 - 01:31 AM

Looks great, but i am having some trouble. Plex is not my Indigo Machine. So i toggled the remote client, what is the remote computer user name and password? is that the account? is the remote computer network address the internal IP? assumed yes for both. When i did that, it said "success, remote client info ok", but i still only get preferences in the menu?

FYI, i installed plex on my indigo machine and the plug in started up without a hitch...so i'm doing something wrong in the remote settings or its not working like you hoped...either way, really kudos to this, i love it already.

Just tried actually turning something off (using Plex on the machine with Indigo running on it, still can't get the remote machine to work, even after putting in the Indigo remote server userid/password). So the plug in turned off the light, but a) it didn't update the state of the light to <off> after it turned off, nor did it change the state within Indigo, indigo still showed it as On.
Plex has changed how my family enjoys media entertainment...and we LOVE IT.
0

#10 User is offline   cdizzel99 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 18
  • Joined: 01-October 09

Posted 20 February 2010 - 04:36 AM

View Postcfriedberg, on 20 February 2010 - 01:31 AM, said:

Looks great, but i am having some trouble. Plex is not my Indigo Machine. So i toggled the remote client, what is the remote computer user name and password? is that the account? is the remote computer network address the internal IP? assumed yes for both. When i did that, it said "success, remote client info ok", but i still only get preferences in the menu?

FYI, i installed plex on my indigo machine and the plug in started up without a hitch...so i'm doing something wrong in the remote settings or its not working like you hoped...either way, really kudos to this, i love it already.

Just tried actually turning something off (using Plex on the machine with Indigo running on it, still can't get the remote machine to work, even after putting in the Indigo remote server userid/password). So the plug in turned off the light, but a) it didn't update the state of the light to <off> after it turned off, nor did it change the state within Indigo, indigo still showed it as On.


I found a couple of errors in my script, specifically when dealing with the login name. I have attached an updated version of the plugin which should fix these issues. Also sorry for not detailing what the preferences are actually looking for (got ahead of myself) but here is that information:

Remote Computer User Name - this is the username that you would use to sign into the computer (this is not the username set up for indigo)
Remote Computer Password - this is the password that you would use to sign into the computer (this is not the password set up for indigo)
Remote Computer Network Address - Is the network IP, this is the address found in the About This Mac Network tab.

As far as the status not being updated in Indigo or the plugin, I am not quite sure. I have set this up on both my computers and have not no issues however I am trying to duplicate the response that your getting. Thanks for testing this plugin and again please let me know if you have any issues. Thanks.

Attached File  Indigo.bundle.version.0.11.zip (365.13K)
Number of downloads: 54
0

#11 User is offline   kalisphoenix Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 19-February 10

Posted 20 February 2010 - 08:39 AM

Hi! Thanks for your message.

You and I are taking somewhat different tactics... you're working with remote AppleScript execution, and I was working with the RESTful API.

I didn't have any luck with your approach (with .11, with support for remote Apple events, etc). I didn't have any luck with mine either.

Here's what I found out on the RESTful side. IndigoServer uses digest authentication. It provides "Indigo Control Server" as the authentication realm. I'm not sure if I'm doing it correctly, because I cannot seem to authenticate to IndigoServer with Python.

With <curl>, however, I can. It's just <curl -u "username:password" http://10.0.1.2:8176/ --digest>. Very simple. So I just had a little function that does that (if the

OH GOD DAMMIT, I JUST REALIZED WHY AUTHENTICATION WASN'T WORKING.

Alright, I really need a cigarette now. I think I'm going to head off to bed and cry myself to sleep. I'll be back tomorrow.
0

#12 User is online   cfriedberg Icon

  • Dedicated Member
  • PipPipPip
  • Group: Members
  • Posts: 330
  • Joined: 18-November 09
  • Gender:Male
  • Location:New York

Posted 20 February 2010 - 11:10 AM

So I installed 0.11, here are my results:

1. When Plex and Indigo are on same machine works great. New version updates status in both Plex and Indigo...AWESOME. one question though is that my devices don't seem to be in any order and i can't sort them by name even when i select from the slide out menu on the right...any chance you can look into that?
2. When Indigo is running on a different machine than Plex, the authentication doesn't seem to work. Screen doesn't update with devices when i put in the information.

Terrific effort thus far. BTW, given that i started the same thread over at the Indigo forums, and Kalisphoenix had taken up the torch over there, i just pointed him over here...
Plex has changed how my family enjoys media entertainment...and we LOVE IT.
0

#13 User is online   cfriedberg Icon

  • Dedicated Member
  • PipPipPip
  • Group: Members
  • Posts: 330
  • Joined: 18-November 09
  • Gender:Male
  • Location:New York

Posted 20 February 2010 - 12:51 PM

How can i 'open' the bundle so i can see your programming? I'm interested a) in learning and B) on the off chance i learn something actually contribute...
Plex has changed how my family enjoys media entertainment...and we LOVE IT.
0

#14 User is offline   cdizzel99 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 18
  • Joined: 01-October 09

Posted 20 February 2010 - 03:26 PM

View Postcfriedberg, on 20 February 2010 - 11:10 AM, said:

So I installed 0.11, here are my results:

1. When Plex and Indigo are on same machine works great. New version updates status in both Plex and Indigo...AWESOME. one question though is that my devices don't seem to be in any order and i can't sort them by name even when i select from the slide out menu on the right...any chance you can look into that?
2. When Indigo is running on a different machine than Plex, the authentication doesn't seem to work. Screen doesn't update with devices when i put in the information.

Terrific effort thus far. BTW, given that i started the same thread over at the Indigo forums, and Kalisphoenix had taken up the torch over there, i just pointed him over here...



I believe that I have determined why it will not access your IndigoServer from a remote machine, the Remote Apple Events setting in the Sharing tab needs to be selected on the machine that is running indigo. This will enable the plugin to send the commands to your remote machine. Please give this a try and let me know if it works. Thanks.

Attached Image
0

#15 User is offline   cdizzel99 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 18
  • Joined: 01-October 09

Posted 20 February 2010 - 03:28 PM

View Postcfriedberg, on 20 February 2010 - 12:51 PM, said:

How can i 'open' the bundle so i can see your programming? I'm interested a) in learning and B) on the off chance i learn something actually contribute...


In order to open the bundle right click then select show package contents.
0

#16 User is online   cfriedberg Icon

  • Dedicated Member
  • PipPipPip
  • Group: Members
  • Posts: 330
  • Joined: 18-November 09
  • Gender:Male
  • Location:New York

Posted 20 February 2010 - 03:55 PM

View Postcdizzel99, on 20 February 2010 - 03:26 PM, said:

I believe that I have determined why it will not access your IndigoServer from a remote machine, the Remote Apple Events setting in the Sharing tab needs to be selected on the machine that is running indigo. This will enable the plugin to send the commands to your remote machine. Please give this a try and let me know if it works. Thanks.

Attachment Remote Apple Events.png


sorry but no. I turned it first on the machine running Indigo and tried the remote machine running Plex, no dice. Then also turned it on the machine running Plex (so no both macs have it turned on), and still no dice.



Plex has changed how my family enjoys media entertainment...and we LOVE IT.
0

#17 User is online   cfriedberg Icon

  • Dedicated Member
  • PipPipPip
  • Group: Members
  • Posts: 330
  • Joined: 18-November 09
  • Gender:Male
  • Location:New York

Posted 20 February 2010 - 04:32 PM

some more info: when i use Plex on the machine on which Indigo is installed (iMac), when I first go into Indigo Server the "Plex Media Center, Waiting for response" pop up comes up, and then all my devices, on the Mac Mini media center when I open Plex that pop up never comes up, just goes straight to the list which only has Preferences.
Plex has changed how my family enjoys media entertainment...and we LOVE IT.
0

#18 User is offline   cdizzel99 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 18
  • Joined: 01-October 09

Posted 20 February 2010 - 06:35 PM

View Postcfriedberg, on 20 February 2010 - 04:32 PM, said:

some more info: when i use Plex on the machine on which Indigo is installed (iMac), when I first go into Indigo Server the "Plex Media Center, Waiting for response" pop up comes up, and then all my devices, on the Mac Mini media center when I open Plex that pop up never comes up, just goes straight to the list which only has Preferences.


This is a really strange issue, I have both a mac mini and macbook pro which I have installed the plugin on and they can access my indigo machine without any problems.

A couple of things to help me with troubleshooting this:

1. Try running the plugin with the preferences entered on your indigo machine and see if that works.

2. Try running the following line in applescript: (running this line may ask you to input your USERNAME and PASSWORD again)

tell application "IndigoServer" of machine "eppc://USERNAME:PASSWORD@NETWORKADDRESS" to return name of every device

substitute your information for USERNAME, PASSWORD and NETWORKADDRESS,

Try first on your indigo machine (if this doesn't work then recheck your info) and then if that works try again on your plex machine.
0

#19 User is online   cfriedberg Icon

  • Dedicated Member
  • PipPipPip
  • Group: Members
  • Posts: 330
  • Joined: 18-November 09
  • Gender:Male
  • Location:New York

Posted 20 February 2010 - 06:40 PM

View Postcdizzel99, on 20 February 2010 - 06:35 PM, said:

This is a really strange issue, I have both a mac mini and macbook pro which I have installed the plugin on and they can access my indigo machine without any problems.

A couple of things to help me with troubleshooting this:

1. Try running the plugin with the preferences entered on your indigo machine and see if that works.

2. Try running the following line in applescript: (running this line may ask you to input your USERNAME and PASSWORD again)

tell application "IndigoServer" of machine "eppc://USERNAME:PASSWORD@NETWORKADDRESS" to return name of every device

substitute your information for USERNAME, PASSWORD and NETWORKADDRESS,

Try first on your indigo machine (if this doesn't work then recheck your info) and then if that works try again on your plex machine.


Ok, I tried #1 on my indigo machine and as soon as i did, all my devices disappeared...

The user name is : Karen Friedberg (my wife's Mac)
Password is password for her 'account' on the iMac
Network Address is 10.0.1.198 (which I made static).

Tried #2 in Applescript Editor on my Indigo machine

tell application "IndigoServer" of machine "eppc://Karen Friedberg:xxxxxxx@10.0.1.198" to return name of every device



I replace xxxxxxx with the right password and got the following error when i hit compile:



Can’t get application "IndigoServer" of machine "eppc://Karen Friedberg:xxxxxxx@10.0.1.198".
Plex has changed how my family enjoys media entertainment...and we LOVE IT.
0

#20 User is online   cfriedberg Icon

  • Dedicated Member
  • PipPipPip
  • Group: Members
  • Posts: 330
  • Joined: 18-November 09
  • Gender:Male
  • Location:New York

Posted 20 February 2010 - 07:00 PM

FIGURED IT OUT.

So the problem was the computer name, I am guess the space mixed it up. When I deleted the "Friedberg" from the name everything worked on the remote machine.

ITS AWESOME! Terrific work.

So since i'm greedy, here are some feature requests:

1. Control Pages - This would be amazing
2. Thermostat control
3. Scripting - (for example, the ability such that when a movie starts certain lights automatically dim/turn off).

But seriously, this is wicked cool. Amazing job!

BTW, i opened the bundle, but how do i actually open the python file to see the code?
Plex has changed how my family enjoys media entertainment...and we LOVE IT.
0

  • (5 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users