greenbreakfast 634b101c64 open sourcing oboo software packages repo | 4 年 前 | |
---|---|---|
.. | ||
device | 4 年 前 | |
duktape | 4 年 前 | |
js | 4 年 前 | |
lv_drivers | 4 年 前 | |
lvgl | 4 年 前 | |
oboo_gui | 4 年 前 | |
test | 4 年 前 | |
.gitignore | 4 年 前 | |
LICENSE | 4 年 前 | |
README.md | 4 年 前 | |
config.h | 4 年 前 | |
img_tiger.bin | 4 年 前 | |
img_tiger.c | 4 年 前 | |
lv_conf.h | 4 年 前 | |
lv_drv_conf.h | 4 年 前 | |
main.c | 4 年 前 | |
makefile | 4 年 前 | |
messageQueue.c | 4 年 前 | |
messageQueue.h | 4 年 前 | |
runtime.c | 4 年 前 | |
runtime.h | 4 年 前 |
Display and Card manager for the Oboo Clock running on the Omega2
Display Manager listens to /notification
topic.
To set a notification, send a message to /notification
with the following syntax:
{
"cmd": "set",
"text": "<NOTIFICATION TEXT>",
"size": <FONT SIZE> // OPTIONAL: default is 20
}
To clear a notification, send a message to /notification
like the following:
{
"cmd": "clear"
}
Display manager listens to the /status
topic
To configure a status icon, publish a message to /status
like the following:
{
"cmd":"update",
"elements": [
{
"type": "<STATUS TYPE>", // string
"value": <STATUS VALUE> // integer representing the status
}
]
}
On and off icons, can be set to 0
for off, or 1
for on:
wifi
bluetooth
alarm
Range icons:
battery
0
(empty battery) to 4
(full battery)