Code: Select all
https://docs.ntfy.sh/
Happy New Year to all!!
Moderators: grovkillen, Stuntteam, TD-er
Code: Select all
https://docs.ntfy.sh/
Code: Select all
SendToHTTP,api.thingspeak.com,80,/update?api_key=********************&field7=[RelayXX#btnState]
That's usually 'caused' by your browser, as they insist on using https, but the (external) website is most likely only HTTPS enabled (with redirect from HTTP), while the self-hosted software can be configured to accept HTTPchromo23 wrote: ↑02 Jan 2023, 14:04 It seems, that GET requests are beeing redirected to https:
https://docs.ntfy.sh/config/#nginxapache2caddy
Bildschirmfoto 2023-01-02 um 14.02.43.png
Of course, if you host your own ntfy server you can remove the GET redirect in the config as described here:
This works fine by the way but is maybe not the right choice since you cannot put custom text messages in the body?!
In an ideal world that would be the best way to be able to use it. Hint, hint, nudge, nudge.The main issue is more, that you can not use it in rules like SendToHTTP and therefore can not choose which text is send.
seems like somebody made it happen and needs people to test it.budman1758 wrote: ↑03 Jan 2023, 01:16 In an ideal world that would be the best way to be able to use it
Code: Select all
PostToHTTP ntfy.sh,80,test?title=%sysname%,,%eventvalue%
Great! Will give it a go. Need a day or 3 to actually get some time to set up a unit and test.seems like somebody made it happen and needs people to test it.
Tested and from what I can see, seems to be working fine!seems like somebody made it happen and needs people to test it.
Code: Select all
PostToHTTP 192.168.1.58,80,meds?title=%sysname%,,'Its %sysweekday_s% @ %systm_hm_am% Did you take your meds yet?. If not then get off your butt and take them!!'
Code: Select all
On Clock#Time=all,10:50 Do
PostToHTTP 192.168.1.58,80,meds?title=%sysname%,,'Its %sysweekday_s% @ %systm_hm_am% Did you take your meds yet?. If not then get off your butt and take them!!'
Endon
Code: Select all
On Clock#Time=all,10:50 Do
PostToHTTP 192.168.1.58,80,meds,title:%sysname%,'Its %sysweekday_s% @ %systm_hm_am% Did you take your meds yet?. If not then get off your butt and take them!!'
Endon
Still no workie. Nothing in the log except the standard "Event clock#time=bla blachromo23 wrote: ↑27 Jan 2023, 20:42 can you try:
it is the more correct syntax… as provided in the documentation.Code: Select all
On Clock#Time=all,10:50 Do PostToHTTP 192.168.1.58,80,meds,title:%sysname%,'Its %sysweekday_s% @ %systm_hm_am% Did you take your meds yet?. If not then get off your butt and take them!!' Endon
System name is ESP_Easy_ntfy
Like this? This command gets the same thing. No workie.
Code: Select all
PostToHTTP 192.168.1.58,80,meds,"title:%sysname%","Its %sysweekday_s% %systm_hm_am% Did you take your meds yet. If not then get off your butt and take them!!"
You nailed it! Took the "if" out of the statement and it works.
Nope, time to start testing as he already made a pull request for it....budman1758 wrote: ↑27 Jan 2023, 22:00You nailed it! Took the "if" out of the statement and it works.
Time to start investigating.....![]()
![]()
Yessir!! Getting right on it!!TD-er wrote: ↑27 Jan 2023, 22:35 Nope, time to start testing as he already made a pull request for it....
https://github.com/letscontrolit/ESPEasy/pull/4486
Code: Select all
On what#ever do
Postohttp bla bla bla "message 2"
endon
Code: Select all
On what#ever do
asyncevent,message=1
endon
On foo#bar=1 do
asyncevent,message=%eventvalue1%
endon
On message do
if %eventvalue1%=1
Postohttp bla bla bla "message 1"
elseif %eventvalue1%=2
Postohttp bla bla bla "message 2"
endif
endon
Code: Select all
PostToHTTP,<ip>,<port>,<url>,[<header:value>],@<filename>
Cool. Sounds good. Meanwhile I will try to wrap my brain around those rule examples.Ath wrote: ↑31 Jan 2023, 08:32 Not really a wild thought, I'm thinking in the line of:in the good old tradition of referencing a file via the @ characterCode: Select all
PostToHTTP,<ip>,<port>,<url>,[<header:value>],@<filename>
![]()
I'll see if that's doable within reasonable code size
Users browsing this forum: Ahrefs [Bot] and 12 guests