Hi all,
Sorry for the long delay in putting up the code I said I would in my last post. Unfortunately, my Redeye Pro conked out on me, and as such I have had my hands full replacing it!
In any event, here is the Python code that will automatically generate the Roomie plist file from the Redeye directly. To use it, do the following:
1) Edit the __main__ invocation in the python program to make the Redye function call with the IP address or DNS name of the Redeye in your local network (both in string form i.e an IP would be '192.168.1.10' for example). The program will take care of the rest.
2) The Roomie plist file you generate will be based on JUST the Redeye pro unit's devices and configuration. So, if you want to replace your Rooomie file, remember ALL your custom devices etc WILL be lost unless you manually edit the Redeye generated plist file and add in the appropriate devices you added into Roomie. I would suggest therefore STARTING with the Roomie plist file this Python program generates. This will give you the Redeye devices in Roomie. Then work with this in Roomie and add any other devices etc. That way, you won't screw up your Roomie devices.
3) The Python code will set up a "Redeye" device (in addition to the devices set up in the Redeye) whose commands are just START and STOP routines for every activity in the Redeye. Thus, you can treat the Redeye itself as a controllable remote device and allow it to manage state while you use the Roomie as a launcher for the activities.
4) I would suggest you START and STOP all activities through the Redeye using the commands generated by (3) above. Do not use device commands directly to start/stop activities. This will allow the Redeye to track state and it does that very well indeed.
This code comes with NO WARRANTY OF ANY KIND NOR WITH ANY SUPPORT. It is meant to help those who are quite skilled at using Python and understand the Redeye and Roomie interfaces well. USE IT AT YOUR OWN RISK. If you do not use it correctly, you can easily ruin your Roomie configuration by screwing up your plist files.
My only request is that anyone who uses the code and makes modifications/improvements to it post it back here for everyone's collective benefit. I hope some of you at least find this code helpful.
Best,
Nandu
PS: Updated now with zip file for python code.