IFTTTWebhook
IFTTTWebhook copied to clipboard
Issues triggering IFTTT
Hi guys,
I think there might be an issue triggering IFTTT events with this library currently.
//Firing off the IFTTT event IFTTTWebhook hook(IFTTT_API_KEY, IFTTT_EVENT_NAME); hook.trigger();
This is my event to fire off the IFTTT event (I also note in your documentation, you call as IFTTTWeb, this doesn't work and should be IFTTTWebhook). Obviously initiating WiFi connection prior and confirming WiFi is operational before firing off IFTTTWebhook.
Not seeing the event being triggered in IFTTT, confirmed IFTTT_API_KEY and IFTTT_EVENT_NAME are correct.
@stephenmorton maybe the issue is the secure connection with IFTTT. The new IFTTT fingerprint is AA:75:CB:41:2E:D5:F9:97:FF:5D:A0:8B:7D:AC:12:21:08:4B:00:8C @romkey may change the examples to clarify this connection issue to less advanced users including e.g. a line such as: #define IFTTT_FINGERPRINT "AA:75:CB:41:2E:D5:F9:97:FF:5D:A0:8B:7D:AC:12:21:08:4B:00:8C" //Update this number with the one provided at e.g., https://www.grc.com/fingerprints.htm
I'm sure he is aware of this situation since he defined the IFTTTWebhook method with 2 or 3 parameters, being the latest one when 3 parameters are specified the fingerprint for SSL connections.
So, the connection could be something like this: #define IFTTT_API_KEY "your API key here" #define IFTTT_EVENT_NAME "your IFTTT event here" #define IFTTT_FINGERPRINT "AA:75:CB:41:2E:D5:F9:97:FF:5D:A0:8B:7D:AC:12:21:08:4B:00:8C" //Update this number with the one provided at e.g., https://www.grc.com/fingerprints.htm WiFiClientSecure client; IFTTTWebhook webhook(IFTTT_API_KEY, IFTTT_EVENT_NAME, IFTTT_FINGERPRINT);
By the way: is there @romkey a way to update this fingerprint without changing, recompiling an upload the code? (I didn't find a way to do it, no simple API to do it out there in my knowledge).
Best,
You can check [https://github.com/mlinaje/wemos/tree/master/WebCaptive_Portal_-_IFTTT_button] that is currently working
Thankyou @mlinaje mlinaje for your input, I will give that a try.
Hi,
I have the same issue...I've tried the solution and it seem that it didn't work...
I noticed that if I remove the lines that connects to network(so, not connected at all) the code runs exact the same way.
How can I get the response for the ifttl website? or add debug information?
Thanks,
Just try to change the fingerprint. It changes from time to time
The new fingerprint key works..... Thanks,