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: 4331
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
Normal user
Posts: 17
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: 9895
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
Normal user
Posts: 17
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: 4331
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
Normal user
Posts: 17
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: 4331
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
Normal user
Posts: 17
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

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

Re: Missing "Notifications" tab in Custom build

#11 Post by Ath » 01 May 2024, 23:20

@damiak The PR has been merged, and will be in the next ESPEasy release.
/Ton (PayPal.me)

damiak
Normal user
Posts: 17
Joined: 17 Mar 2024, 19:01

Re: Missing "Notifications" tab in Custom build

#12 Post by damiak » 13 Feb 2025, 17:46

I recently bought an esp32c3, I have a project in which I send email notifications when I have the appropriate status on GPIO to my own server in the local network on synology and I do it without ssl, I wanted to transfer it to esp32 but the notifications do not come there because there is probably only ssl and I cannot set the synology mail station to go over ssl.

The question is, can I disable ssl mail when compiling custom firmware and how?

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

Re: Missing "Notifications" tab in Custom build

#13 Post by TD-er » 13 Feb 2025, 18:01

That issue has recently been solved: https://github.com/letscontrolit/ESPEasy/pull/5238

You could fetch one of the latest builds from the GitHub Actions build, like this one here: https://github.com/letscontrolit/ESPEas ... 3229648014

Or if you need your own custom build, the fixes for sending mail without SSL are already merged, so you could use the latest code from the 'mega' branch.

damiak
Normal user
Posts: 17
Joined: 17 Mar 2024, 19:01

Re: Missing "Notifications" tab in Custom build

#14 Post by damiak » 13 Feb 2025, 18:10

Thank you,
I will use the ready one because compilation is not always successful for me.
Do I have to set something differently or is it like it used to be on 8266 without ssl? I use port 25

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

Re: Missing "Notifications" tab in Custom build

#15 Post by TD-er » 13 Feb 2025, 18:21

It should be as simple as just setting the port to 25.
Please let us know if it is working as it should.

damiak
Normal user
Posts: 17
Joined: 17 Mar 2024, 19:01

Re: Missing "Notifications" tab in Custom build

#16 Post by damiak » 13 Feb 2025, 23:52

Now everything is ok, thank you.

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

Re: Missing "Notifications" tab in Custom build

#17 Post by TD-er » 14 Feb 2025, 01:11

Great!
Thanks for the feedback.

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests