Scripts & Links

This page contains useful scripts and links.

  • Calling Codes with Python
  • EventGhost Plugin

Calling Codes with Python

The following code can be used to execute stored codes with Python. This script can be used when running EventGhost.

BridgeURL="http://192.168.1.145:7474"
cmd="KitchenIsland40"
 
retries=3
for t in range(1,retries+1):
    try:
        r=urllib2.urlopen(BridgeURL + "/code/" + cmd,None,1)
        stat=r.read()
    except:
        stat="URL Openfail"
    print "RM Status: " + stat
    if "send data success" in stat:
        sys.exit(0)
    print "RM Retry: " + str(t)
print "RM Send Failed"
sys.exit(1)
        

EventGhost Plugin

An EventGhost plugin is available.
For more information visit the following post on the EventGhost forum: BroadLink RM2/RM Bridge Plugin