Wrapper around Dux Soup remote control API
pip install duxwrap
Commands alowed bu Dux Soup remote contol:
"params": {
"profile": "PROFILE_URL",
}
"params": {
"profile": "PROFILE_URL",
"messagetext": "MESSAGE TEXT"
}
Please check documentation above for more info on messagetext format and additional options
"params": {
"messagetext": "MESSAGE TEXT"
}
Please check documentation above for more info on messagetext format and additional options
"params": {
"duration": DURATION_IN_SECONDS,
}
import json
from duxwrap import DuxWrap
"""create wrapper"""
dux = DuxWrap('API_KEY', 'USER_ID')
print('DuxSoup version:', dux.version)
"""get acount info"""
profile_data = dux.call("profile", {})
print('PROFILE DATA SET')
print(json.dumps(profile_data, indent=4, sort_keys=True))
print('-----------------------------\n\n')
"""pause the robot"""
print('PAUSE RESPONSE')
params = {
"params": {
"duration": 0
}
}
pause_data = dux.call("wait", params)
print(json.dumps(pause_data, indent=4, sort_keys=True))