This commit is contained in:
j 2020-12-05 12:56:56 +01:00
parent b408a89c1d
commit ef0f8bf22f

View File

@ -103,6 +103,7 @@ class API(object):
def setPreset(self, **data):
result = {}
print('setPreset', data)
ctl.camera.set_preset(data['id'], data['name'])
return result
@ -137,6 +138,7 @@ class API(object):
speed = int(data.get('speed', 1))
for key in direction:
direction[key] *= speed
print('move', direction)
ctl.camera.momentary(direction, float(data.get('duration', 1)))
return result