Skip to content

Commit

Permalink
Update README for new API security features
Browse files Browse the repository at this point in the history
  • Loading branch information
deadprogram committed Apr 19, 2014
1 parent 38174ba commit 469dc51
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Want to use Ruby or Javascript on robots? Check out our sister projects Artoo (h

### Basic

#### Go with a Sphero
#### Gobot on Sphero

```go
package main
Expand Down Expand Up @@ -48,7 +48,7 @@ func main() {
robot.Start()
}
```
#### Go with a Blink
#### Gobot on Arduino

```go
package main
Expand Down Expand Up @@ -138,9 +138,14 @@ To activate the API, use the `Api` command like this:
master := gobot.GobotMaster()
gobot.Api(master)
```
To specify the api port run your Gobot program with the `PORT` environment variable
```
$ PORT=8080 go run gobotProgram.go

You can also specify the api host and port, and turn on authentication:
```go
master := gobot.GobotMaster()
api := gobot.Api(master)
api.Port = "4000"
api.Username = "Gort"
api.Password = "klaatu"
```

In order to use the [robeaux](https://github.com/hybridgroup/robeaux) AngularJS interface with Gobot you simply clone the robeaux repo and place it in the directory of your Gobot program. The robeaux assets must be in a folder called `robeaux`.
Expand Down

0 comments on commit 469dc51

Please sign in to comment.