greenbreakfast 634b101c64 open sourcing oboo software packages repo | vor 4 Jahren | |
---|---|---|
.. | ||
device | vor 4 Jahren | |
duktape | vor 4 Jahren | |
js | vor 4 Jahren | |
lv_drivers | vor 4 Jahren | |
lvgl | vor 4 Jahren | |
oboo_gui | vor 4 Jahren | |
test | vor 4 Jahren | |
.gitignore | vor 4 Jahren | |
LICENSE | vor 4 Jahren | |
README.md | vor 4 Jahren | |
config.h | vor 4 Jahren | |
img_tiger.bin | vor 4 Jahren | |
img_tiger.c | vor 4 Jahren | |
lv_conf.h | vor 4 Jahren | |
lv_drv_conf.h | vor 4 Jahren | |
main.c | vor 4 Jahren | |
makefile | vor 4 Jahren | |
messageQueue.c | vor 4 Jahren | |
messageQueue.h | vor 4 Jahren | |
runtime.c | vor 4 Jahren | |
runtime.h | vor 4 Jahren |
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)