Difficulty Using Webhook Get Functionality

I attempted to follow the Webhook example in the blynk docs folder and found that it wasn’t behaving as I had expected. I created a webhook identical to this one http://docs.blynk.cc/images/webhook_settings.png using “http://api.sunrise-sunset.org/json?lat=33.3823&lng=35.1856&date=2016-10-01” as the URL. My arduino code contained the example,

BLYNK_WRITE(V0){
String webhookdata = param.asStr();
terminal.println(webhookdata);
terminal.flush();
}

The problem is whenever I tried to call the Blynk,virtualWrite(V0,1) function the BLYNK_WRITE(V0) function wouldn’t actually run. I then tried to assign a blynk button to V0 to trigger it but instead of running the webhook it simply put the buttonstate (1,0) into the param.asStr() function.

What do I have to do differently to initiate the acquisition of data using the webhook widget?

Try adding the following to the top of your sketch before the Blynk libraries:

#define BLYNK_MAX_READBYTES 720

You don’t need to &date=2016-10-01 in the url if you want the current days sunrise and sunset times.

Be sure to change my longitude and latitude settings to your own.

I have a maxbytes definition, my issue is that no matter what I do the BLYNK_WRITE(V0) function isn’t being called. I have attempted to remove everything and just have

BLYNK_WRITE(V0){
Serial.println(“TEST”);
}

So when I trigger BLYNK_WRITE(V0) it wont print to the serial port.

Do you use local server or blynk cloud? Please tell me also your login name.