Page 1 of 1

Missing "Notifications" tab in Custom build

Posted: 14 Oct 2023, 07:55
by iz8mbw
Hello.
I have created some Custom build by edit "Custom.h" in order to have a bin with all Plugins I need but I was not able to have the "Notifications" tab in the Web interface.
Both

Code: Select all

#define USES_N001   // Email
#define USES_N002   // Buzzer
are enabled.

What I miss?

Thanks.

Re: Missing "Notifications" tab in Custom build

Posted: 14 Oct 2023, 10:45
by Ath
You will have to disable the line with '#define NOTIFIER_SET_NONE', or possibly replace with '#define NOTIFIER_SET_STABLE' (test first with commenting the define, if that doesn't work as intended, add the other define)

Re: Missing "Notifications" tab in Custom build

Posted: 14 Oct 2023, 19:48
by iz8mbw
Thanks, it works!

Re: Missing "Notifications" tab in Custom build

Posted: 03 Apr 2024, 15:42
by damiak
How in my custom build do more items in notification because there are only 3?
What values to edit when creating custom build?

Re: Missing "Notifications" tab in Custom build

Posted: 03 Apr 2024, 19:24
by TD-er
Problem with increasing the max number of notifications is that it can render your settings files incompatible with other builds.

See the NOTIFICATION_MAX in src/CustomBuild/ESPEasyLimits.h file

N.B. increasing this has never been tested, so not sure if you may run in other issues.

Re: Missing "Notifications" tab in Custom build

Posted: 04 Apr 2024, 00:36
by damiak
Ok I'll check and let you know if the number of items has changed

Re: Missing "Notifications" tab in Custom build

Posted: 04 Apr 2024, 08:06
by Ath
Well, the tech limit, without completely breaking the settings file out of its boundaries, is 4 notifiers, but changing it from 3 to 4 will already fail compilation, because of compile-time checks that really need investigation before changing and thorough testing afterwards.

Maybe you can explain why you need more than 3 Notification plugins?

Re: Missing "Notifications" tab in Custom build

Posted: 04 Apr 2024, 23:36
by damiak
I have a mail server in the local network on Synology and I would like to send different notifications depending on which button I press or which GPIO is activated and then I check it when I get home. I'm just learning.

Re: Missing "Notifications" tab in Custom build

Posted: 06 Apr 2024, 22:37
by Ath
Hi @damiak

I've opened PR #5026 to add support for a user-defined subject when using the Notify command, like:

Code: Select all

Notify,1,'Custom message content','My own subject'
Downloads available from this GH Actions run (A free Github account is required to be able to download)

This should resolve the need for multiple Notifications configured.

NB: I only added the subject part, as the user defined message content was already available, but not documented :shock: so I also updated the documentation ;)

Re: Missing "Notifications" tab in Custom build

Posted: 07 Apr 2024, 15:04
by damiak
Thank you for your help

Re: Missing "Notifications" tab in Custom build

Posted: 01 May 2024, 23:20
by Ath
@damiak The PR has been merged, and will be in the next ESPEasy release.