NUI comma api intergration (#1186)
* Prototyping comma api call
* Adding nui command
* Fixing hard coded vals
* Adding generalized nui changes
* Added both public and private api support
* Removing debug statement
* Chaning private api tag to use env variables
* FrameReader change for string parsing
old-commit-hash: 763493e988
commatwo_master
parent
af2a48f249
commit
1cae066cda
7 changed files with 86 additions and 13 deletions
@ -1,8 +1,9 @@ |
||||
Makefile |
||||
.*.swp |
||||
*.o |
||||
nui |
||||
_nui |
||||
moc_* |
||||
.qmake.stash |
||||
nui.app/* |
||||
routes.json |
||||
|
||||
|
@ -0,0 +1,14 @@ |
||||
import json |
||||
import os |
||||
import sys |
||||
|
||||
from tools.lib.route import Route |
||||
|
||||
route_name = sys.argv[1] |
||||
routes = Route(route_name) |
||||
data_dump = { |
||||
"camera":routes.camera_paths(), |
||||
"logs":routes.log_paths() |
||||
} |
||||
|
||||
json.dump(data_dump, open("routes.json", "w")) |
@ -0,0 +1,12 @@ |
||||
#!/bin/sh |
||||
|
||||
if [ $# -gt 0 ]; then |
||||
if [ "$INTERNAL" = 1 ]; then |
||||
./_nui "$1" |
||||
else |
||||
python get_files_comma_api.py $1 && ./_nui use_api |
||||
fi |
||||
else |
||||
echo "Please Enter a Route" |
||||
fi |
||||
|
@ -1,3 +1,3 @@ |
||||
version https://git-lfs.github.com/spec/v1 |
||||
oid sha256:69b914687867cabc35e1ba333479fd2f1d976d813e6d97fad48b94e5b470b57b |
||||
size 1105 |
||||
oid sha256:6da22e2e4503c7db82c6632d552a5e3914e7b5fdefc50118683a1b2e816be317 |
||||
size 1106 |
||||
|
Loading…
Reference in new issue