-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GlobalCache IP2IR node issues #7
Comments
Hi Science World, This node discovers the actual unit a bit differently than just providing an IP address. For convenience, the IP2IR node makes use of the AMX discovery beacon to automatically discover the device regardless of IP address. All you need to do is run one instance of the AMX Beacon Receiver node on your nodel network. You can then update the remote bindings in the IP2IR node by MAC address instead of IP address which can sometimes make network configuration easier in some situations. Remember, I've altered the recipe to allow you to override the IP address if that's more convenient for you. You then need the client node that uses the IP2IR node. See this example which I've just added: Hope that makes sense. Remember to contribute any new Global Cache IR controls recipes in the same way I've done the Yamaha Blu-ray player. |
Thanks, it does now. I have modified our global ip2ir recipe to work the “traditional” way and be per device. Added ir command parameters, power on/off buttons and remote actions and uncommented out the ip address parameter. So far I have working communication, just working on learning/replicating ir codes for our device. Will submit my franken recipe when done. ☺ From: Justin Parker [mailto:[email protected]] Hi Science World, This node discovers the actual unit a bit differently than just providing an IP address. For convenience, the IP2IR node makes use of the AMX discovery beacon to automatically discover the device regardless of IP address. All you need to do is run one instance of the AMX Beacon Receiver nodehttps://github.com/museumvictoria/nodel-recipes/tree/master/AMX%20beacon%20receiver on your nodel network. You can then update the remote bindings in the IP2IR node by MAC address instead of IP address which can sometimes make network configuration easier in some situations. Remember, I've altered the recipe to allow you to override the IP address if that's more convenient for you. You then need the client node that uses the IP2IR node. See this example which I've just added: Hope that makes sense. Remember to contribute any new Global Cache IR controls recipes in the same way I've done the Yamaha Blu-ray player. — |
this is my modification of the IR recipe to be device agnostic and not require amx discovery. so now works more like an iboot, pjlink,adamio recipe. specificy ip address as parameter, specific the on and off ir codes as parameters. `# coding=utf-8 "Global Caché iTachIP2IR"Handy reference:* http://www.globalcache.com/products/itach/ip2irspecs/* http://www.globalcache.com/files/docs/API-iTach.pdfimport time param_ipAddress = Parameter({"title":"IP address", "group":"Comms", "schema":{"type":"string", "description":"The IP description.", "desc":"The IP address to connect to.", "hint":"192.168.100.1"}}) ITACH_TCPCONTROL = 4998 def local_action_RequestVersion(arg = None): def local_action_TurnOn(arg = None): def local_action_TurnOff(arg = None): Comms related events for diagnosticslocal_event_Connected = LocalEvent({'group': 'Comms', 'order': 1}) local_event_IRport1 = LocalEvent({'title': 'IR port 1', 'group': 'IR port activity', 'order': 0}) local_event_Version = LocalEvent({'group': 'Device info', 'order': 0, 'schema': {'type':'string'}}) def main(arg = None): def remote_event_BeaconReceiver(arg):
def connected():
def received(data):
def sent(data): def disconnected(): def timeout(): tcp = TCP(connected=connected, received=received, sent=sent, disconnected=disconnected, sendDelimiters='\r', receiveDelimiters='\r\n', timeout=timeout) 'ping' every 60sping_timer = Timer(lambda: local_action_RequestVersion(), 60, stopped=True) def local_action_SendIRport1(arg): def local_action_SendIRport2(arg): def local_action_SendIRport3(arg): sendir,1:1,14,37878,1,1,171,171,21,64,21,64,21,64,21,22,21,22,21,22,21,22,21,22,21,64,21,64,21,64,21,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,21,64,21,64,21,22,21,22,21,64,21,64,21,64,21,64,21,22,21,22,21,64,21,64,21,22,21,1778def sendIR(portAddress, data):
def bindLEDPortControls(port): group = 'LED control (PWM)' def handler(arg=None): Event('LEDPort%s' % port, {"title": "Port %s Intensity" % port, "group": group, "schema": {"type": "integer"}}) Action('LEDPort%s' % port, handler, { "title": "Set", "group": group, "schema": { "type": "object", "title": "Port %s" % port, "properties": { bindLEDPortControls(1) def parseMessage(data):
e.g. LED_LIGHTING,1:1,27,100def parseLEDLightingResponse(data):
Parses an error message, e.g.ERR_1:1,008def parseErrorMessage(data):
ERROR_CODES = { seqNum = [0L] |
Hi there
We just bought two IP2IR units and was hoping to get this node working.
Is this node finished?
The text was updated successfully, but these errors were encountered: