Skip to content

Commit

Permalink
updated bottom/top sensor
Browse files Browse the repository at this point in the history
bottomsensor and topsensor were incorrect: bottom-sensor / top-sensor according to API
  • Loading branch information
zoide authored Apr 9, 2021
1 parent 48c0360 commit ad8e614
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions usermods/Animated_Staircase/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ or remove them and put everything on one line.
| segment-delay-ms | Delay (milliseconds) between switching on/off each step | 150 |
| on-time-s | Time (seconds) the stairs stay lit after last detection | 5 |
| bottom-echo-us | Detection range of ultrasonic sensor | 1749 |
| bottomsensor | Manually trigger a down to up animation via API | false |
| topsensor | Manually trigger an up to down animation via API | false |
| bottom-sensor | Manually trigger a down to up animation via API | false |
| top-sensor | Manually trigger an up to down animation via API | false |


To read the current settings, open a browser to `http://xxx.xxx.xxx.xxx/json/state` (use your WLED
Expand All @@ -108,8 +108,8 @@ The staircase settings and sensor states are inside the WLED status element:
"enabled": true,
"segment-delay-ms": 150,
"on-time-s": 5,
"bottomsensor": false,
"topsensor": false
"bottom-sensor": false,
"tops-ensor": false
},
}
```
Expand Down Expand Up @@ -187,15 +187,15 @@ the API. To simulate triggering the bottom sensor, use:

```bash
curl -X POST -H "Content-Type: application/json" \
-d '{"staircase":{"bottomsensor":true}}' \
-d '{"staircase":{"bottom-sensor":true}}' \
xxx.xxx.xxx.xxx/json/state
```

Likewise, to trigger the top sensor, use:

```bash
curl -X POST -H "Content-Type: application/json" \
-d '{"staircase":{"topsensor":true}}' \
-d '{"staircase":{"top-sensor":true}}' \
xxx.xxx.xxx.xxx/json/state
```

Expand Down

0 comments on commit ad8e614

Please sign in to comment.