Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeboer committed Feb 14, 2017
1 parent 705c5f9 commit 0b26407
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ Usage
Following the [Twelve-factor principles](https://12factor.net), nfc-scanner is
configured using environment variables:

| Variable | Explanation | Example |
| --------------- | --------------------------------------------- | ------------------- |
| `API_URL` | URL to the Tagger API | "https://ginger.nl" |
| `CLIENT_ID` | your Tagger API client id | "you" |
| `CLIENT_SECRET` | your Tagger API client secret | "007secret" |
| `PANEL_ID` | the scanned object, e.g. panel or activity id | 516 |
| Variable | Explanation | Example |
| --------------- | ----------------------------------------------------- | ------------------- |
| `API_URL` | URL to your Ginger site running the Tagger API | `https://ginger.nl` |
| `CLIENT_ID` | your Tagger API client id | `some_id` |
| `CLIENT_SECRET` | your Tagger API client secret | `super_secret` |
| `OBJECT_ID` | resource id of the scanned object (panel or activity) | `516 |

Download the binary (replace 0.1.0 with the [latest release version](https://github.com/driebit/nfc-scanner/releases)):

Expand All @@ -41,5 +41,6 @@ Then start nfc-scanner (don’t forget to plug in the NFC reader):
$ ./nfc-scanner
```

When started, nfc-scanner will listen in an infinite loop for NFC tags. When a
tag is scanned, its UID is sent to the Tagger API.
When started, nfc-scanner will listen continuously for NFC tags. When a tag is
scanned, its UID is sent to the Tagger API. Debug information is written to the
syslog.

0 comments on commit 0b26407

Please sign in to comment.