Blynk 2.0 webhook problem

Hello

I’m currently trying to make an iron man helmet and attached the helmet to blynk. I also want to add voice command to the helmet as an additional feature thanks to google assistant. I saw on the internet that I could do this thanks to iftttt, but these examples were working in the previous version of blynk, I couldn’t find how to do it in this version. and I tried a few times, connected google assistant to ifttt, set the commands, but the output data does not go to blynke. and i found out that i need to open webhook in blynk. I couldn’t do the rest. can you help.

I would appreciate it if you could tell me what I need to do in order.

nodemcu codes



#define BLYNK_PRINT Serial
#define BLYNK_TEMPLATE_ID   "************"


#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <Servo.h>


char auth[] = "************************";
char ssid[] = "**************";
char pass[] = "**********";

Servo servo;

BLYNK_WRITE(V2){
     
    digitalWrite(4, param.asInt());
  }

BLYNK_WRITE(V4){
 servo.write(param.asInt());
}


void setup()
{
  pinMode(4,OUTPUT);
  servo.write(180);
  servo.attach(2);
  Serial.begin(9600);

  Blynk.begin(auth, ssid, pass);
}

void loop()
{
  Blynk.run();
}

Check the new blynk HTTPs rest API
https://docs.blynk.io/en/blynk.cloud/https-api-overview

I didn’t understand what to do :confused:

The url that you are trying to use belongs to the old blynk. You should replace it with the new Blynk url. Something like this

1 Like

That seems very unlikely. The Webhook in Blynk IoT is very similar to the Webhook Widget in Blynk Legacy and is primarily intended to pull or push data from/two a 3rd part system.
You don’t need to do that if you are simply trying to change a virtual pin value in Blynk with a voice command via IFTTT.

Pete.

thank you it helped me a lot :blush:

1 Like