Blynk.virtual_write python time input widget

Before creating the topic

  1. Search forum for similar topics
  2. Check and
  3. Add details :
    • Raspberry pi 3
    • Smartphone OS Android + last version
    • Blynk server on server
    • Blynk Library version 0.2.0

below you can find the example code in C, how do I write it in python. when I read from the time input widget in python then I get the data in six goes, so I just put the data into a buffer. but I could not figure out how to write to it in python

  int startAt = 5 * 60; //00:05

  //seconds from the start of a day. 0 - min, 86399 - max
  int stopAt = (60 + 5) * 60; //01:05

  //full list of supported timezones could be found here
  char tz[] = "Europe/Kiev";

  Blynk.virtualWrite(V1, startAt, stopAt, tz);

All of this is more a “How to python”, then a “How to Blynk” question. I would recommend Googling for some Python tutorial sites about how to handle various variables. Then use the good old “trial and error” method for learning something new.

I recommend lots of reading through the examples here and searching this forum for other python topics to get ideas on how it is written with Blynk stuff… But remember, Blynk python is probably still in Alpha as is it’s support.

This part will be very similar… just some syntax changes like lower case, the underscore, not using the V with the vPin, and of course no semicolon

blynk.virtual_write(1, startAt, stopAt, tz)

The python will not accept more than two variables, obviously I tried this option before submitting :wink:

Not obvious to us in anything you had posted.

If it will not work with the needed variables, then that function has not been implemented in the alpha stage of Blynk Python. If you in fact have python experience and wish to look into the library, then as the developer states, contributions are welcome.