I’m running a Raspberry PI local server and client, my Blynk app connects to my local server. The oddball here is an ESP8266 connected to Blynk cloud server. Is it possible to control a pin on that ESP8266 through the Blynk app that is connected to to my local server?
Hopefully I explained that correctly.
Hello. Yes. This is possible. You can use a webhook widget on your local server and call http api in blynk-cloud server for your device.
Ok I have setup a webhook with IFTTT and got to execute succesfully via Goolge assistant but now I’m confused as to how to do it in Blynk app. I tried setting up the widget but nothing happens.
Do I do something in the way of code on the ESP8266 side? All I want to do is set output pin on ESP8266 to high or low.
The complete URL looks like this http://45.55.96.146:/xxxxxxxxxxxxxxxxxxxxxxxxxx/update/D4?value=0
Any help will be appreciated.
Did you set pin mode? Does that url works from browser? Was hardware online?
URL works perfect. Pin mode is set to output and the hardware is online. I have tried many combinations of the settings in the widget and no luck. When I press the Webhook widget in app it should just send a command to Blynk cloud, which is essentially the same thing as putting the the URL in a browser right?
Thank you for the help so far Dmitry.
Yes. If your url has all required credentials.
Are you sure you trigger webhook? Do you trigger it from the app?