update docs

This commit is contained in:
Stephan Mühl
2023-03-23 14:27:06 +01:00
parent 7b5a4d3aba
commit 4ef505fde8
3 changed files with 24 additions and 2 deletions

View File

@@ -13,4 +13,7 @@
- [Alarm clock](alarm.md)
- [Timer](timer.md)
- [Icons](icons.md)
- [Sounds](sounds.md)
- [Sounds](sounds.md)
- MQTT
- [Commands](mqtt.md)

View File

@@ -1,7 +1,7 @@
# Custom Pages & Notifications
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

19
docs/mqtt.md Normal file
View 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