Thinger.io to Ifttt

Hi everyone,

I’m trying to implement a very simple sketch to store historical data to Google sheets using ifttt.

This is my sketch:

void setup()
{
pinMode(7, INPUT );
Serial.begin(9600);
thing[“water”] >> [](pson& out){ out = !digitalRead(7); };
};

void loop()
{
thing.handle();
monitorkw = digitalRead(7);
unsigned long currentMillis = millis();
if(minutes_interval>0 && currentMillis - previousMillis >= minutes_interval * 10000)
{
previousMillis = currentMillis;
Serial.println(monitorkw);

//add a row to the Google Sheet using IFTTT
pson txtMsg;
txtMsg[“value1”] = monitorkw;
thing.call_endpoint(“kw”, txtMsg);
}
}

In my thinger endpoint config I’ve created a new one called kw with ifttt maker channel trigger, If I try to test it It doesn’t work.

I’m not sure if it is due to bad sketch or bad config of endpoind or ifttt conf.

Is it this correct?

thanks

Solved!!!

I’ve written the ifttt event key at endpoints.!!!

1 Like

Nice it works!

HI,
i’m kind of stuck with the same problem.
What exactly was the think you changed?

Thanks

ok somehow it is working now.
my tipps:

in the IFTT, Webhook settings. press "Edit Connection"
Somehow the password updated. and with the new password all the stuff worked again.