DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Go to the source code of this file.
Namespaces | |
namespace | send-restcmd |
Variables | |
send-restcmd.parser = argparse.ArgumentParser(description='POST command object from file to commanded endpoint.') | |
send-restcmd.type | |
send-restcmd.str | |
send-restcmd.default | |
send-restcmd.help | |
send-restcmd.int | |
send-restcmd.required | |
send-restcmd.True | |
send-restcmd.dest | |
send-restcmd.action | |
send-restcmd.interactive | |
send-restcmd.args = parser.parse_args() | |
str | send-restcmd.url = 'http://'+args.host+':'+str(args.port)+'/'+args.route |
dict | send-restcmd.headers = {'content-type': 'application/json', 'X-Answer-Port': str(args.answer_port)} |
send-restcmd.cmdstr = None | |
send-restcmd.response = requests.post(url, data=json.dumps(cmdstr), headers=headers) | |
list | send-restcmd.avacmds = [cdict['id'] for cdict in cmdstr if cdict["id"]] |
send-restcmd.nextcmd = input('Press enter a command to send next: ') | |
list | send-restcmd.cmdobj = [cdict for cdict in cmdstr if cdict["id"] == nextcmd] |