Page 1 of 1

SentToHTTP - not always sending?

Posted: 14 Jun 2020, 12:34
by obod0002c
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

Re: SentToHTTP - not always sending?

Posted: 14 Jun 2020, 21:17
by TD-er
Have you also tried to set to wait for an acknowledgement?
Tools -> Advanced -> SendToHTTP wait for ack

Re: SentToHTTP - not always sending?

Posted: 15 Jun 2020, 12:13
by obod0002c
has this feature been implemented after mega-20191127 as I don't find a 'SendToHTTP' in Tools -> Advanced

Re: SentToHTTP - not always sending?

Posted: 15 Jun 2020, 13:16
by TD-er
Very likely as it has been added not too long ago because of reported issues with some online services like ThingSpeak (and others)

Re: SentToHTTP - not always sending?

Posted: 16 Jun 2020, 19:22
by obod0002c
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

Re: SentToHTTP - not always sending?

Posted: 16 Jun 2020, 19:32
by TD-er
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.

Re: SentToHTTP - not always sending?

Posted: 16 Jun 2020, 19:40
by obod0002c
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)

Re: SentToHTTP - not always sending?

Posted: 17 Jun 2020, 10:44
by obod0002c
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

Re: SentToHTTP - not always sending?

Posted: 17 Jun 2020, 12:28
by TD-er
Good to know.
So checking to wait for senttohttp acknowledgement is the solution here.

Re: SentToHTTP - not always sending?

Posted: 17 Jun 2020, 17:18
by obod0002c
I'll come back when some more reliable results are available

Re: SentToHTTP - not always sending?

Posted: 02 Jul 2020, 09:31
by obod0002c
all notifications during the last few days arrived reliably

Re: SentToHTTP - not always sending?

Posted: 02 Jul 2020, 09:56
by TD-er
Great!
Thanks for the feedback/update