In OpenUDS v4.0, there are notifiers, such as Telegram.
Tell me please how they should be used:
- It is necessary to add the code in the places where notifications are needed?
- This feature is needed for future versions?
- Do they work for very rare events?
Because I have a problem:
INFO 2025-11-02 17:40:36,365 uds.core.managers.notifications:_ensure_local_db_exists 72 Cannot create local notifications table right now. Will try later.
Although at the same time:
sqlite> .tables
uds_notification
sqlite> .schema uds_notification
CREATE TABLE IF NOT EXISTS "uds_notification" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "stamp" datetime NOT NULL, "group" varchar(128) NOT NULL, "identificator" varchar(128) NOT NULL, "level" integer unsigned NOT NULL CHECK ("level" >= 0), "message" text NOT NULL, "processed" bool NOT NULL);
CREATE INDEX "uds_notification_group_658c869c" ON "uds_notification" ("group");
CREATE INDEX "uds_notification_identificator_d4942d39" ON "uds_notification" ("identificator");
sqlite> SELECT * FROM uds_notification;
1|2025-11-02 17:12:45.878493|log|uds.log|40000|uds.core.ui.user_interface:__init__ 1501 Field TelegramNotifier.check_delay not found in values data, |0
2|2025-11-02 17:12:45.948628|log|uds.log|40000|uds.core.ui.user_interface:__init__ 1504 /usr/share/openuds/uds/core/module.py:156:__init__|0
3|2025-11-02 17:12:45.951753|log|uds.log|40000|uds.core.ui.user_interface:__init__ 1504 /usr/share/openuds/uds/core/messaging/provider.py:79:__init__|0
4|2025-11-02 17:12:45.955078|log|uds.log|40000|uds.core.ui.user_interface:__init__ 1504 <console>:1:<module>|0
5|2025-11-02 17:12:45.957378|log|uds.log|40000|uds.core.ui.user_interface:__init__ 1504 /usr/lib64/python3.12/code.py:90:runcode|0
6|2025-11-02 17:12:45.959989|log|uds.log|40000|uds.core.ui.user_interface:__init__ 1504 /usr/lib64/python3.12/code.py:74:runsource|0
7|2025-11-02 17:12:45.962240|log|uds.log|40000|uds.core.ui.user_interface:__init__ 1504 /usr/lib64/python3.12/code.py:267:push|0
8|2025-11-02 17:12:45.964228|log|uds.log|40000|uds.core.ui.user_interface:__init__ 1504 /usr/lib64/python3.12/code.py:241:interact|0
In OpenUDS v4.0, there are notifiers, such as Telegram.
Tell me please how they should be used:
Because I have a problem:
INFO 2025-11-02 17:40:36,365 uds.core.managers.notifications:_ensure_local_db_exists 72 Cannot create local notifications table right now. Will try later.Although at the same time: