NodeMCU + RAIN + IFTTT

Good morning,

My Garden System is running ok. I can control manually all the system but now I wanted to control virtual pin (V50) which on/off all the system in case of rain in my area. For this reason I was checking all the messages in this and another forums and this is what I found:

Using these sentences I’m able to ON or OFF the Blynk Virtual PIN (V50) and I see the change in the iOS App (I change AUTH_TOKEN by my token):

ON
http://139.59.206.133:8080/AUTH_TOKEN/update/V50?value=1
or
http://blynk-cloud.com/AUTH_TOKEN/update/V50?value=1

OFF
http://139.59.206.133:8080/AUTH_TOKEN/update/V50?value=0
or
http://blynk-cloud.com/AUTH_TOKEN/update/V50?value=0

Means the sentences are correct.

Then I go to IFTTT app and I try to use Weather Underground applet using:

“WU Current condition changes to”

or

and it do nothing.

Same to activate ON when weather clear:

or

Maybe I’m doing something wrong or I’m using the wrong weather service. If someone was able to connect and can help me I will appreciate.

Thks in advance.

You should always use the IP address of the Blynk server where your project lives, rather than blynk-cloud.com because of GeoDNS issues when using the API.

Both options work from your home PC, because the blynk-cloud URL resolves to the same IP address from your home location. The IFTTT servers may be on the other side of the world, and blynk-cloud.com will resolve to a differentserver, and as your project cant be found on that server iot will return an “invalid token” error.

Also, this:

http://blynk-cloud.com/AUTH_TOKEN/update/V50?value=0

is the GET syntax for the API query.

Pete.

I am trying also

Same to activate ON when weather clear:

But nothing, maybe it takes time to update the virtual pin.

The update will be virtually instantaneous, probably measured in milliseconds.

Maybe you should simplify your IFTTT recipe to give some other type of feedback (email maybe) based on the WU changes to ensure that this part is working as expected.

Pete.

Hi Pete, thks for your reply. I did and the service is working at least to generate a next day forecast at a time and send it to my email. What I did now is to generate 2 IFTTT recipe to send notifications instead of changed Virtual PIN, one of them if weather changes to CLEAR and another one if it changes to RAIN.

I keep waiting if it works with notifications and then I will try again changing PINS on my Arduino.

Hello.

Finally WU services is not working anymore. Then in order to check which sentence works for my watering system, I linked my netatmo heating system and it worked. When I changed temperature to manual I setup to OFF V50 with

http://139.59.206.133/token/update/V50?value=0
Method : GET
Content : text plain
Body : nothing

When I fixed that auto temperature I did ON with

http://139.59.206.133/token/update/V50?value=1
Method : GET
Content : text plain
Body : nothing

Means I need to buy weather system hahahaha.

Maybe adopt this approach instead of using IFTTT,

Pete.

Thks for your reply. I will wait next holidays to study it.

Another option could be to connect Rain Bird RSD-BEx with my NodeMCU. I have it already at home and maybe adding some code can help me to stop watering when raining.

https://www.rainbird.eu/products/accessories/rsd-bex

Finally I bought a Netatmo Weather. So easy to connect it via IFTTT. I was able to automatically stop watering when start to rain. I also send an event to my iOS Calendar asking to switch on again watering after 5 days.

Now my task is to make some IFTTT rule to switch on automatic the watering. If I use the Netatmo one when stop raining is too soon.

Any idea?