BLYNK
BLYNK.IO       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Run script from Blynk server

Hi,

I have just discovered blynk and it looks almost perfect for what I want to do.

My question is can I do the following:

  1. On my phone define a simple UI with a single push button and a light indicating state.
  2. On pressing the button my Blynk server runs a script that I have written
  3. The output from the script controls the state of the indicator.

So, to be more concrete, I push the button on my phone, the server script commands a wemo switch to switch its output on, this script notifies the server of the state, and the indicator on my phone lights up.

If this can be done, reasonably easily, I’m sold :smile:

Regards,
Andrew

Hello. Yes you can do that. Blynk App -> Blynk Server -> Any Language Script you want. And same another direction. Here for instance example for javascript.

Hi,

That’s great ! Fast response too :slight_smile:

Regards,
Andrew