Skip to content

Commit

Permalink
Updated README.md for example YAML config file.
Browse files Browse the repository at this point in the history
  • Loading branch information
sambostock committed Aug 5, 2014
1 parent 327c6d9 commit 49dbb22
Showing 1 changed file with 78 additions and 7 deletions.
85 changes: 78 additions & 7 deletions example-config/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,86 @@
# Example Config Folder
# Example Config

The config folder should hold the following configuration information for Yoorbell:
Yoorbell uses the *config.yaml* file to source the following configuration information.

## API Token

The API token or key, provided by YO to identify your API account, found in the file *api_token.txt*.
The API token or key, provided by YO to identify your API account.

## Authorized Users
```yaml
api-token: abcdefgh-ijkl-mnop-qrst-uvwxyz012345
```
The list of users authorized to use Yoorbell to enter. It is found in *authorized_users.txt*, and consists of a list of one username per line. YO usernames are in ALL CAPS.
## Users
## Notify Users
There are two types of users Yoorbell needs to know about: *authorized users* and *notify users*.
The list of users to notify (via YO) when a buzz is detected by Yoorbell. It is found in *notify_users.txt*, and consists of a list of one username per line. YO usernames are in ALL CAPS.
```yaml
users:
authorized:
- USER001
- USER002
- USER004
notify:
- USER001
- USER003
- USER004
```
**Note that all usernames are in ALL CAPS.**
### Authorized Users
These users are authorized to unlock the door via Yoorbell.
### Notify Users
These users will be notified when someone buzzes/rings the Yoorbell.
## Pins
Two pins are necessary to run Yoorbell: the *buzz* pin and the *door* pin.
```yaml
pins:
buzz: 24
door: 23
```
### Buzz Pin
The *buzz* pin is the pin which listens for a signal from the intercom buzzer.
### Door Pin
The *door* pin is the pin which will be signaled when the door must be unlocked.
## Port
Yoorbell runs an HTTP server to receive GET requests from the YO API servers, when a YO is sent to the API account. *port* identifies the port on which the server should listen.
```yaml
port: 8979
```
## Calibration
There are a few pieces of calibration information Yoorbell uses, relating to ensuring a buzz is properly detected.
```yaml
calibration:
bouncetime: 200
samples: 20
delay: 5
```
### Bouncetime
The *bouncetime* parameter is the time, in ms, which should be used to debounce the signal on the buzz pin.
### Samples
The *samples* parameter is the number of samples which should be taken of the value on the buzz pin, to determine whether the edge detected is a false positive.
### Delay
The *delay* parameter is the delay between samples, in ms.

0 comments on commit 49dbb22

Please sign in to comment.