def pixelConv(pixels): return pixels * 0.0375 # in meters def meterToPixel(meters): return int(meters / 0.0375) # in pixels # Beacon format: # BeaconNumber, LocalName, x, y, UDID, Major, Minor, Measured Power (from spec), x in px, y in px # BeaconNumber is incremental from 0 up. Don't skip a number BeaconList=[] BeaconCount = 0 Beacon = [BeaconCount,"Estimote #0 Beacon", pixelConv(314), pixelConv(507), "b9407f30f5f8466eaff925556b57fe6d", 64507, 5414, -64, 314, 507] BeaconList.append(Beacon) BeaconCount += 1 #list of lights #Light Format # LightNumber, LocalName, x, y, pixel x, pixel y, light on/off (1/0), huelightnumber LightList=[] LightCount = 0 Light = [LightCount, "Lab Left", pixelConv(330), pixelConv(435),330, 435,0, 2] LightList.append(Light) LightCount += 1