mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 00:04:28 +01:00
[GH-ISSUE #372] Feature request: websocket sys message additional infos #2983
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @micklafisch on GitHub (Sep 25, 2024).
Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/372
Originally assigned to: @nlimper on GitHub.
Is your feature request related to a problem? Please describe.
the sys message on websocket connection tells unfortunately not if are there offline/pending or low-bat devices only the total count
Describe the solution you'd like
maybe add the counter for offline/pending and lowbat devices, with these informations iobroker can send i.e. an alarm with telegram adapter
@nlimper commented on GitHub (Oct 28, 2024):
in commit
0cd76eebf0I added the number of timed out tags to the 'sys' websocket message. The timeoutcount key/value is only present once a minute.
{"sys":{"currtime":1730133055,"heap":194124,"recordcount":27,"dbsize":5488,"littlefsfree":5246976,"psfree":8350371,"apstate":1,"runstate":2,"rssi":-70,"wifistatus":3,"wifissid":"sensors","uptime":72,"timeoutcount":0}}For the pending/lowbatt: you can find those already in the individual tag messages in the websocket stream. Note that having a pending image is a normal state, so no need for a notification.
@micklafisch commented on GitHub (Oct 29, 2024):
Thanks Nic for implementation.
Perhaps it is possible after all to add the lowbatt information to "sys", Otherwise i have to watch all incoming tag messages and with more than 20 tags there is lot of data only for the lowbatt counter.
@nlimper commented on GitHub (Nov 2, 2024):
added the lowbatt count in
a57c797542It will report back the amount of lowbatt tags at the same time as the timeoutcount, so once a minute.