SentToHTTP - not always sending?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
obod0002c
Normal user
Posts: 119
Joined: 10 Aug 2019, 20:31

SentToHTTP - not always sending?

#1 Post by obod0002c » 14 Jun 2020, 12:34

Hi,
I've added an IFTTT notification when my irrigation process has finished:

Code: Select all

On Rules#Timer=1 do // left OFF
 gpio,12,0 // channel OFF
 gpio,4,1 // LED OFF
 SendToHTTP maker.ifttt.com,80,/trigger/xyz/with/key/rhubarb
  timerSet,3,10 // Timer 10 seconds
endOn

On Rules#Timer=3 do
endOn
When using UI everything seems to work fine, i.e. IFTTT notifications arrive reliable
So I thought the device might be too fast in deepsleep when running without UI, hence added timer3. But no change. No notification, 'never'.

Do you know what I'm doing wrong or any workaround available?

Cheers

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

Re: SentToHTTP - not always sending?

#2 Post by TD-er » 14 Jun 2020, 21:17

Have you also tried to set to wait for an acknowledgement?
Tools -> Advanced -> SendToHTTP wait for ack

obod0002c
Normal user
Posts: 119
Joined: 10 Aug 2019, 20:31

Re: SentToHTTP - not always sending?

#3 Post by obod0002c » 15 Jun 2020, 12:13

has this feature been implemented after mega-20191127 as I don't find a 'SendToHTTP' in Tools -> Advanced

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

Re: SentToHTTP - not always sending?

#4 Post by TD-er » 15 Jun 2020, 13:16

Very likely as it has been added not too long ago because of reported issues with some online services like ThingSpeak (and others)

obod0002c
Normal user
Posts: 119
Joined: 10 Aug 2019, 20:31

Re: SentToHTTP - not always sending?

#5 Post by obod0002c » 16 Jun 2020, 19:22

had it working - ONCE, 'cause saving rules seems to have changed. 'Submitted' is missing pretty often and Rules Set 1 is empty afterwards. Anything which has changed here? Now running ESP_Easy_mega_20200608_normal_ESP8285_1M. Same hardware

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

Re: SentToHTTP - not always sending?

#6 Post by TD-er » 16 Jun 2020, 19:32

The bug with clearing the rules at save should have been fixed a few months ago.

If the "submitted" is missing, then please check if the node may have been rebooted when you submit the rules.
Also check the amount of free memory (RAM) to see if this is rather low or not.

obod0002c
Normal user
Posts: 119
Joined: 10 Aug 2019, 20:31

Re: SentToHTTP - not always sending?

#7 Post by obod0002c » 16 Jun 2020, 19:40

not sure if this is what you need:
changing rules -> save -> no reply
but uptime increases
Free Mem: 19224 (34144 - )
Free Stack: 3632 (3824 - )
Heap Max Free Block: 13448

Rules Set 1: Current size: 0 characters (Max 2048)

obod0002c
Normal user
Posts: 119
Joined: 10 Aug 2019, 20:31

Re: SentToHTTP - not always sending?

#8 Post by obod0002c » 17 Jun 2020, 10:44

maybe I did not follow the workflow to upload a new firmware (if there's one or maybe there're small hurdles when rules are in place).
I factory reset the device, swapped between old and new firmware a few times (now I'm back in state 'fit for flash' :P ) and - bingo - everything seems to work: updating rules as well as this morning's IFTTT notification. Impressive

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

Re: SentToHTTP - not always sending?

#9 Post by TD-er » 17 Jun 2020, 12:28

Good to know.
So checking to wait for senttohttp acknowledgement is the solution here.

obod0002c
Normal user
Posts: 119
Joined: 10 Aug 2019, 20:31

Re: SentToHTTP - not always sending?

#10 Post by obod0002c » 17 Jun 2020, 17:18

I'll come back when some more reliable results are available

obod0002c
Normal user
Posts: 119
Joined: 10 Aug 2019, 20:31

Re: SentToHTTP - not always sending?

#11 Post by obod0002c » 02 Jul 2020, 09:31

all notifications during the last few days arrived reliably

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

Re: SentToHTTP - not always sending?

#12 Post by TD-er » 02 Jul 2020, 09:56

Great!
Thanks for the feedback/update

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests