For anyone who has experience with integrating iRule and Indigo:
I am having a problem trying to get things to work from iRule on my iPad/iPhone to my Indigo on my MacMini via 2413U. Everything is working fine in terms of opening up Indigo on the MacMini, inputting the device (a switchlinc dimmer in my case) and then clicking the turn off or turn on buttons on the computer screen; everything works like a charm. I just can't seem to make iRule communicate with Indigo. I've read the through some of the posts on this forum and the RESTful Overview, but haven't been able to find success. I have no programming experience at all, so I'm sure I'm just missing something.
Here's a brief summary of what so far has not worked for me - I created a new device in the iRule builder, named it Indigo, and then added a new network code. So here's where things get a little confusing for me. I've tried entering all of the following (in separate groups) into the data field with no luck -
/devices/chandelier?toggle=1&_method=put
devices/chandelier?toggle=1&_method=put
127.0.0.1:8176/devices/chandelier?toggle=1&_method=put
http://127.0.0.1:8176/devices/chande...=1&_method=put
192.168.1.66:8176/devices/chandelier?toggle=1&_method=put
http://192.168.1.66:8176/devices/cha...=1&_method=put
The '127.0.0.1' is the number of the DNS Server on my Mac according to system preferences and '8176' is the port many on these forums reference. The '192.168.1.66' is the IP address according to system pref on the Mac, which is connected to an Airport Express using DHCP (I still don't understand the whole static IP thing). The connection is via ethernet, not WiFi.
Next (more of the iRule part), I set up a new HTTP gateway in the iRule app on my iPhone. I set HTTP method to GET and left the Wake-on-LAN to off. I added the new device (Indigo), which I had created in the iRule builder. I've tried using all of the addresses for the gateway as of now with no luck -
127.0.0.1:8176/
127.0.0.1:8176
127.0.0.1
192.168.1.66
192.168.1.66:8176
192.168.1.66:8176/
As you can see, I'm at the point now where I'm just grasping for anything. I don't know if I'm getting some things right or nothing at all. I think I'm pretty close, but can't get there with just the RESTful Overview. I think the overview requires a basic understanding I just don't have.
I would appreciate any help on where I'm off here.
Thank you.