Added utils and updated unity version

This commit is contained in:
Chris Midkiff
2020-05-15 14:06:34 -04:00
parent 5d099a9db5
commit 7ccb087ecd
21 changed files with 715 additions and 246 deletions

14
utils/console.py Normal file
View File

@@ -0,0 +1,14 @@
import requests
base = input('Enter URL of server instance (http://example.com): ')
device = input('Which input method are we managing?: ')
while True:
choice = input('Enter Participant ID (or quit): ')
if choice == 'quit':
break
r = requests.post(base + '/' + device + 'Post',data={'id':choice})
if r.status_code is 200:
print('Updated')
else:
print('Error occured')
print(r.status_code)
print(r.text)