|
18 | 18 | ```
|
19 | 19 | ./blink1-tiny-server -p 8000
|
20 | 20 | ```
|
21 |
| -Or to serve the blink(1) URL API examples: |
| 21 | +By default the HTML API examples are built-in and served. To try them out, |
| 22 | +open a browser to: http://localhost:8000/ |
| 23 | + |
| 24 | +To disable the HTML examples, use: |
22 | 25 | ```
|
23 |
| -./blink1-tiny-server -p 8000 -d ./server/html |
| 26 | +./blink1-tiny-server -p 8000 -no-html |
24 | 27 | ```
|
25 |
| -And then in a browser visit: http://localhost:8000/ |
26 |
| - |
27 |
| -Static HTML serving is disabled by default, you must specific `-d docroot` to enable it. |
28 | 28 |
|
29 | 29 | Usage:
|
30 | 30 | ```
|
31 |
| -./blink1-tiny-server --help |
| 31 | +% ./blink1-tiny-server --help |
32 | 32 | Usage:
|
33 | 33 | blink1-tiny-server [options]
|
34 | 34 | where [options] can be:
|
35 | 35 | --port port, -p port port to listen on (default 8000)
|
36 |
| - --document_root path, -d path path to serve static HTML files |
| 36 | + --baseurl url, -U url set baseurl to listen in (default http://localhost:8000) |
| 37 | + --no-html do not serve static HTML help |
37 | 38 | --version version of this program
|
38 | 39 | --help, -h this help page
|
39 | 40 |
|
40 | 41 | Supported URIs:
|
41 | 42 | /blink1/ -- simple status page
|
42 | 43 | /blink1/id -- get blink1 serial number
|
43 | 44 | /blink1/on -- turn blink(1) full bright white
|
| 45 | + /blink1/off -- turn blink(1) dark |
44 | 46 | /blink1/red -- turn blink(1) solid red
|
45 | 47 | /blink1/green -- turn blink(1) solid green
|
46 | 48 | /blink1/blue -- turn blink(1) solid blue
|
47 |
| - /blink1/fadeToRGB -- turn blink(1) specified RGB color |
| 49 | + /blink1/cyan -- turn blink(1) solid cyan |
| 50 | + /blink1/yellow -- turn blink(1) solid yellow |
| 51 | + /blink1/magenta -- turn blink(1) solid magenta |
| 52 | + /blink1/fadeToRGB -- turn blink(1) specified RGB color by 'rgb' arg |
48 | 53 | /blink1/blink -- blink the blink(1) the specified RGB color
|
49 | 54 | /blink1/pattern/play -- play color pattern specified by 'pattern' arg
|
50 | 55 | /blink1/random -- turn the blink(1) a random color
|
|
0 commit comments