Quick IFTTT question

Just a quick question, can my Wemos running a Blynk relay project be operated over the web?

I go to my browser and type in:
http://139.59.206.133/TOKEN/update/pin/D6=1

replacing TOKEN with my token of course.

Nothing happens.

I’ve tried D6, GPIO12, 12 and other variations.

Any ideas, or does it only work with IFTTT webhooks?

Thanks

https://blynkapi.docs.apiary.io/#reference/0/write-pin-value-via-get/write-pin-value-via-get

http://blynk-cloud.com/auth_token/update/pin?value=value
thus:
(edited - thanks to @Toro_Blanco)
http://blynk-cloud.com/auth_token/update/D6?value=1

Thanks both! I’ll try it in the morning :+1:t2:

Note that “D” in D6 for the IFTTT/API refers to Digital Pin (GPIO) 6, of which doesn’t exist on a Wemos D1 Mini… If you want the silkscreened D6 then use Digital Pin (GPIO) 12 = D12

The correct syntax (with your proper AUTH TOKEN) will be…

http://139.59.206.133/TOKEN/update/D12?value=1 To switch GPIO12 pin HIGH
http://139.59.206.133/TOKEN/update/D12?value=0 To switch GPIO12 pin LOW

And while we are at it… to read the state of a digital pin it would be…

http://139.59.206.133/TOKEN/get/D12 Get the state of GPIO12 pin

Strangely, reading the value of analog pin A0 requires one to use either A17 or D17… go figure :thinking:

Virtual pins would use the V and corresponding number

http://139.59.206.133/TOKEN/update/V0?value=Hello Blynker To send V0 the string “Hello Blynker”
http://139.59.206.133/TOKEN/get/V2 Get the value of V2

And finally, to change a property of a widget using virtual pins you would replace ‘value’ with the desired property. For example…

http://139.59.206.133/TOKEN/update/V0?color=%23ED9D00 Change widget colour to Yellow. NOTE: %23 replaces the usual #

1 Like

close,
http://blynk-cloud.com/auth_token/update/D6?value=1

If you follow the link I posted, in the upper right hand corner there is a button that says “Switch to Console” If you click that you it will then allow you to input your auth token, the pin, and the value you want to change it to. It then shows you the correct syntax.

2 Likes

@Toro_Blanco thank you that’s very helpful :slight_smile:

@Gunner thanks very much!

I knew it was GPIO12 but was getting confused with the correct syntax.
I’ve tried it and it works! :smile:

Thanks for all the other hints too, much appreciated!!