Close

IFTTT Integration

A project log for RainBuddy

Turns your existing sprinkler controller into a Wifi connected controller that saves water when its going to rain.

alecAlec 06/13/2017 at 03:420 Comments

This project uses both IFTTT and IFTTT's DO Button App as its interface. This makes it easy for anyone to set up without any coding. If someone is unfamiliar with IFTTT, the functions that are available will show up in your IFTTT account after you have flashed the code (under Files section) to your Particle Photon, and linked Particle to your IFTTT acccount. Also, download the "DO Button" App by IFTTT.

Then set up the following Do Button - this will allow you to manually turn the RainBuddy On or Off.

1) DO App
Set up a New Recipe, under the Particle Channel choose:

A) Create a new Recipe
B) Give it a new title such as "Let sprinklers run" or "Sprinklers on normal" or "RainBuddy On"
C) Under "Then call a function", a list of functions will appear
D) Choose Sprinkonoff from the list
E) Under "with input (Function input)" - clear out any text in the box and enter [On] - (Copying the uppercase "O" but using no brackets ! - just the word On.
F) Hit the "Add" Button and you're done.

Repeat all of the above exactly, except enter the Title "Rainbuddy Off" or "Turn off sprinklers", and, in step E, enter the word Off (Capital "O").

Voila - you will have 2 buttons on your phone that can manually turn the RainBuddy On - meaning let the Sprinklers turn on their normal schedule, or RainBuddy Off - meaning don't let the Sprinklers run until you turn them back on.

2) IFTTT
I have created a custom function in IFTTT called RainBuddy, which gets tomorrow's weather forecast from IFTTT's Weather Underground channel, and then calls the right function on the RainBuddy when it is going to rain.

Discussions