Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ $ vc set-environment -e escapepod -h 10.0.2.42 -k ~/.ssh/vector.key
### Arguments
| flag | description| notes |
|--|--|--|
| -e | environment | `escapepod `and `production` are the supported environments|
| -e | environment | `escapepod` and `production` are the supported environments|
| -h | hostname or IP of your robot | |
| -k | The location of the SSH key for your robot | |

## upload-cloud-binaries
This allows you to easily upload the cloud binaries built from the [vector-cloud](https://github.com/digital-dream-labs/vector-cloud) repository
This allows you to easily upload the cloud binaries built from the [vector-cloud](https://github.com/digital-dream-labs/vector-cloud) repository - though this step is only necessary if your robot is on 1.7.0 firmware- above that, the binaries are built in.

An example command would be...
```
Expand All @@ -62,5 +62,5 @@ $ vc upload-cloud-binaries -b ~/vector-cloud/build/ -h 10.0.2.42 -k ~/.ssh/vecto
| flag | description| notes |
|--|--|--|
| -b | binary directory | The directory containing the vic-cloud and vic-gateway files |
| -h | hostname or IP of your robot | |
| -k | The location of the SSH key for your robot | |
| -h | hostname or IP of your robot | Internal IP Address; found in [CCIS](https://support.digitaldreamlabs.com/article/531-vector-ccis) |
| -k | The location of the SSH key for your robot | The SSH key can be found inside a log package in the "ssh" directory. |
13 changes: 6 additions & 7 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ func main() {

// set environment arguments
setenv := flag.NewFlagSet("set-environment", flag.ExitOnError)
shost := setenv.String("h", "", "the ip of the vector robot")
skey := setenv.String("k", "", "the location of the ssh key")
shost := setenv.String("h", "", "The internal IP address of the Vector robot")
skey := setenv.String("k", "", "The location of the SSH key")
senv := setenv.String("e", "", "environment")

cloudbin := flag.NewFlagSet("upload-cloud-binaries", flag.ExitOnError)
chost := cloudbin.String("h", "", "the ip of the vector robot")
ckey := cloudbin.String("k", "", "the location of the ssh key")
cbindir := cloudbin.String("b", "", "path to vic-cloud and vic-gateway binaries")
chost := cloudbin.String("h", "", "The internal IP address of the Vector robot")
ckey := cloudbin.String("k", "", "The location of the SSH key")
cbindir := cloudbin.String("b", "", "Location of / path to vic-cloud and vic-gateway binaries")

flag.Parse()

Expand All @@ -29,8 +29,7 @@ This tool will allow you to do the following things:
set-environment - change the environment that
your bot is pointed at
upload-cloud-binaries - upload and set permissions
for the vector-cloud binaries
`)
for the vector-cloud binaries`)
os.Exit(0)
}

Expand Down
8 changes: 4 additions & 4 deletions pkg/configurator/set-environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
const (
escapepod = `
{
"jdocs": "escapepod.local:8084",
"tms": "escapepod.local:8084",
"chipper": "escapepod.local:8084",
"check": "escapepod.local/ok",
"jdocs": "escapepod.local:443",
"tms": "escapepod.local:443",
"chipper": "escapepod.local:443",
"check": "escapepod.local/ok:80",
"logfiles": "s3://anki-device-logs-prod/victor",
"appkey": "oDoa0quieSeir6goowai7f"
}`
Expand Down