Ifttt + 4 relay shield

hello
im looking for a library to use IFTTT with the 4 relay shield
is this library the one?

internet_Relays.cpp

thanks

Have you tried it? No reason it shouldn’t work.

No Sir
I needed previous confirmation before buying the boards.

1 Like

You don’t really need any library to have IFTTT talk to the Particle devices - it’s all in the stock APIs

1 Like

Sorry, I meant if its the correct library to control relays over internet

The library for the relay shield is here
https://build.particle.io/libs/RelayShield/0.0.6/tab/RelayShield.cpp

But for that too: No library actually needed.
The relays are connected to the following pins

#define relay1 D3
#define relay2 D4
#define relay3 D5
#define relay4 D6

And with that you just use pinMode() and digitalWrite() as you’d do with any other GPIO manipulation.

is any complete library ready to use ? im not (yet) a programming code guy !

Hmm, even using a library does also require some basic programming - or are you asking for a ready-to-use solution for your particular problem?

I normally use NCD boards with their standard library.
I just wanted to try particle shield board and be sure I can use internet relays for a standard online+ifttt use.

The Particle Relay Shield is a lot easier to control than the NCD’s.

void setup() {
  pinMode(D3, OUTPUT);
}

void loop() {
  digitalWrite(D3, !digitalRead(D3));
  delay(1000);
}

This is all you need to have Realay 1 toggle on/off every second.