update docs
This commit is contained in:
@@ -14,3 +14,6 @@
|
|||||||
- [Timer](timer.md)
|
- [Timer](timer.md)
|
||||||
- [Icons](icons.md)
|
- [Icons](icons.md)
|
||||||
- [Sounds](sounds.md)
|
- [Sounds](sounds.md)
|
||||||
|
|
||||||
|
- MQTT
|
||||||
|
- [Commands](mqtt.md)
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
# Custom Pages & Notifications
|
# Custom Pages & Notifications
|
||||||
|
|
||||||
With AWTRIX Light, you can create custom pages or notifications to display your own text and icons.
|
With AWTRIX Light, you can create custom pages or notifications to display your own text and icons.
|
||||||
Simply send a JSON object to the topic "awtrixlight/custom/[page]" where [page] is a number from 1-10.
|
Simply send a JSON object to the topic "awtrixlight/custom/[page]" where [page] is a the name of your page (without spaces).
|
||||||
|
|
||||||
## JSON Properties
|
## JSON Properties
|
||||||
|
|
||||||
|
|||||||
19
docs/mqtt.md
Normal file
19
docs/mqtt.md
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# MQTT Commands
|
||||||
|
|
||||||
|
### Switch to app
|
||||||
|
**Topic**
|
||||||
|
`[PREFIX]/switch`
|
||||||
|
**Payload**
|
||||||
|
`{"name":"time"}`
|
||||||
|
|
||||||
|
Build-in app names are
|
||||||
|
- `time`
|
||||||
|
- `date`
|
||||||
|
- `temp`
|
||||||
|
- `hum`
|
||||||
|
- `bat`
|
||||||
|
|
||||||
|
For custompages you need to call the name you set in the topic:
|
||||||
|
if
|
||||||
|
`[PREFIX]/custom/test` is your topic,
|
||||||
|
then `test` is the name
|
||||||
Reference in New Issue
Block a user