A forum for information about scripting with CastleOS. Get samples, suggestions, and other help here
Logitech Harmony Hub scripting
Michael Wallace Posts: 52
1/27/2016
|
I'd like to start this off with a huge thank you to the pyharmony, harmonyhubclient, harmony c# git users that laid the ground work.
That being said, below is how I implemented the harmony c# project code with CastleOS.
First download the attached Harmony.zip. It is the built version of this git repository:https://github.com/hdurdle/harmony
Second: My recommendation is to register HarmonyConsole in the registry. Go to run (Windows + R) and type regedit,. Hit Enter. Go to: HKLM (HKEY-LOCAL-MACHINE)\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths. Right click on App Paths and Add new Key. Name it HarmonyConsole.exe. In the right side of the registry editor, double click on Default. Type the path to HarmonyConsole.exe (e.g. C:\ProgramData\CastleOS\Harmony\HarmonyConsole.exe). Hit Enter. Close the registry editor.
Okay, now to learn the activity and device ids. Download HarmonyHubControl.exe1 and rename it to remove the 1. (Note, the other program may work for you instead of this one, but this one definitely worked for me). Run the command prompt (Windows + R then type cmd and hit enter). Navigate to where harmonyhubcontrol.exe is located. Type the following: Harmonyhubcontrol.exe myemail@domain.com my_password harmony.hub.ip.address get_config > C:\harmony.txt (Yes type the > and all).
The above command sends everything on your hub to that text file. In it are your activity and device ids, as well as potential commands to send to the hub (e.g. VolumeUp on the TV). You are now done with HarmonyHubControl.exe. You will have some sifting to do to determine which devices are which, but if you search by manufacturer or device name it is fairly straightforward.
Now, FINALLY time to link up with CastleOS. Attached is a script with 4 sample commands to the hub. Replace activity and device id with the NUMBER not the phrase (e.g. 12345678 not WatchTV). Load the script in as you would any other.
Edit: Steps 1 and 2 would need to be done on EACH computer that controls a Kinect that you wish to use to control a Harmony Hub in addition to loading the scripts on each computer. Sorry. I tried to use the RemoteAppLaunchClient, but it would not work correctly. edited by rpiwally on 1/28/2016
|
|
0
link
|