Page 1 of 1

Help with ntfy syntax

Posted: 13 Feb 2025, 07:29
by ThomasB
I'm using the ntfy.sh service to send messages from ESPEasy. It has been working well. But I want to add the priority command to the message.

This is the format I have been using, without priority:

Code: Select all

postToHTTP,ntfy.sh,80,/mydevice,'title:Motor Status','The motor is running fine'
But I want to add the priority command to it. Like this:

Code: Select all

postToHTTP,ntfy.sh,80,/mydevice,'title:Motor Status','priority:5','The motor is ON FIRE'
But it does not work correctly. The message becomes "priority:5" and the message's priority is unchanged.

I'm seeking help with the syntax.

- Thomas

Re: Help with ntfy syntax

Posted: 13 Feb 2025, 07:57
by ThomasB
I found my mistake. This is the correct syntax:

Code: Select all

postToHTTP,ntfy.sh,80,/mydevice,'title:Motor Status%LF%priority:5','The motor is ON FIRE'
- Thomas

Re: Help with ntfy syntax

Posted: 13 Feb 2025, 08:13
by Ath
ThomasB wrote: 13 Feb 2025, 07:29

Code: Select all

postToHTTP,ntfy.sh,80,/mydevice,'title:Motor Status','priority:5','The motor is ON FIRE'
But it does not work correctly. The message becomes "priority:5" and the message's priority is unchanged.
Multiple headers should be combined in the (single) header argument, new-line separated, like this:

Code: Select all

postToHTTP,ntfy.sh,80,/mydevice,'title:Motor Status%LF%priority:5','The motor is ON FIRE'
Edit: You beat me in the find :lol: (and I didn't refresh before posting)

Re: Help with ntfy syntax

Posted: 13 Feb 2025, 17:37
by ThomasB
Thanks Ton!