Yesterday I showed how you can use Node RED to set up notifications that the device has not communicated for some time
.
Today I want to show you another example of telegram notifications that the flespi device storage is full to a certain volume. This time, in addition to user subscriptions, we will also store the current state of the storage of each device.
Open flow on the Node-Red
Also, in the subscribe command, you must now specify the size, when exceeding which you want to receive a notification in the telegram messenger:
/subscribe messages_size 1024
(1024 in this example is the storage size in bytes)
As before, you can change the flow as you wish. I'm just showing you the options and how you can implement them with Node RED.