Missing "Notifications" tab in Custom build

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
iz8mbw
Normal user
Posts: 35
Joined: 14 Apr 2023, 08:43
Location: Napoli, Italy

Missing "Notifications" tab in Custom build

#1 Post by iz8mbw » 14 Oct 2023, 07:55

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.

User avatar
Ath
Normal user
Posts: 3522
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Missing "Notifications" tab in Custom build

#2 Post by Ath » 14 Oct 2023, 10:45

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)
/Ton (PayPal.me)

iz8mbw
Normal user
Posts: 35
Joined: 14 Apr 2023, 08:43
Location: Napoli, Italy

Re: Missing "Notifications" tab in Custom build

#3 Post by iz8mbw » 14 Oct 2023, 19:48

Thanks, it works!

damiak
New user
Posts: 7
Joined: 17 Mar 2024, 19:01

Re: Missing "Notifications" tab in Custom build

#4 Post by damiak » 03 Apr 2024, 15:42

How in my custom build do more items in notification because there are only 3?
What values to edit when creating custom build?
Last edited by damiak on 04 Apr 2024, 00:34, edited 1 time in total.

TD-er
Core team member
Posts: 8757
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Missing "Notifications" tab in Custom build

#5 Post by TD-er » 03 Apr 2024, 19:24

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.

damiak
New user
Posts: 7
Joined: 17 Mar 2024, 19:01

Re: Missing "Notifications" tab in Custom build

#6 Post by damiak » 04 Apr 2024, 00:36

Ok I'll check and let you know if the number of items has changed

User avatar
Ath
Normal user
Posts: 3522
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Missing "Notifications" tab in Custom build

#7 Post by Ath » 04 Apr 2024, 08:06

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?
/Ton (PayPal.me)

damiak
New user
Posts: 7
Joined: 17 Mar 2024, 19:01

Re: Missing "Notifications" tab in Custom build

#8 Post by damiak » 04 Apr 2024, 23:36

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.

User avatar
Ath
Normal user
Posts: 3522
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Missing "Notifications" tab in Custom build

#9 Post by Ath » 06 Apr 2024, 22:37

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 ;)
/Ton (PayPal.me)

damiak
New user
Posts: 7
Joined: 17 Mar 2024, 19:01

Re: Missing "Notifications" tab in Custom build

#10 Post by damiak » 07 Apr 2024, 15:04

Thank you for your help

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 31 guests