New Blynk: Time input widget

I have just downloaded the new Blynk app onto my iPhone.

I have built an existing project using the old Blynk app and I want to port it to the new Blynk.

However, I could not find the Time Input Widget nor the Table Widget on the new Blynk app.

Are both these widget going to be added at some point or have they been discontinued in the new Blynk?

Keen to try the new Blynk but cannot do so without these widgets.

Regards,
Anand.

Time Input and Timer widgets are no longer necessary. They could be fully replaced with automations - Automations - Blynk Documentation.

The table widget will be reworked and implemented on web and mobile.

I set up a Time Widget on the Phone App, however it only set to trigger an event at a specific time. Is there an option for a START TIME and END TIME?

I am not sure how this will reflect back into the code, is it similar to how one would handle a timer input in the past?

//...........................................................................................................................
//AM_Schedule time decode 
//...........................................................................................................................
BLYNK_WRITE(V4){ 
TimeInputParam t(param);
long startTimeInSecs;
long stopTimeInSecs;
long nowseconds;
        
        startTimeInSecs = param[0].asLong();
        nowseconds = ((hour() * 3600) + (minute() * 60) + second());    //time right now
        stopTimeInSecs = param[1].asLong();

Is there an option for a START TIME and END TIME?

You need to create 2 automations, one, let’s say starts at 11:00 and sends 1, another starts at 12:00 and sends 0. So it would correspond to the timer widget setup with start/end times.

You don’t need the time management code on the device in case. If I understood you correctly.

Thanks, however I want to read the start/stop time to do a bunch of things in my software that can’t be managed just on the phone. I want to convert my project ( Time Scheduler and Power Energy Monitor) to 2.0 but this looks like it will not be possible

There is no link to be able to a virtual pin and I don’t want notifications. The setup does not look like your application notes

This is what I see

This is what your notes say (There is no Set Device to option in my screen)
WhatsApp Image 2021-06-03 at 14.51.31

@Badge Foi possivel o uso do Time Widget ?

Yes it’s possible.

@John93 , Do you have an example to share?
Well, I’m a little lost.

@John93 . Are these examples still compatible with blynk 2.0?

Because the test that was done did not work for Wi-Fi

What hardware are you using?

What do you see in your serial monitor?

Are you testing these with a 2.4GHz WiFi connection or 5GHz ?

Pete.

Not all of them. Some examples, like bridge, email, notify, Twitter, eventor, GPS stream, and timer, don’t work with the new Blynk.
Bridge and timer widgets have been replaced with automation. Blynk.email and Blynk.notify have been replaced with Blynk.logEvent, etc.

@PeteKnight .I’m gonna explain. My connection is working, because I’m using the Arduino example (Blynk example inside the Arduino).
In this way my doubt would be with other information.

See if you can help me.

I’m using Time Input Settings, to send data like (day of the week) + (seconds ON) + (seconds OFF), through the Datastream (V2). OK
My ESP32 board receives the data, to read the time.
I read seconds ON (long startTimeInSecs = param[0].asLong(); )
I read seconds OFF (long endTimeInSecs = param[1].asLong(); )

read of the day ( ??? )

Look at the example that @John93 linked to, it uses a different method.

But why say…

when you actually mean that you don’t know how to read the days of the week from the datastream?

Pete.

because not all old examples work for Blynk 2.0

Due to this I mentioned this WiFi glitch as I used the old example for the new Blynk 2.0

But my real difficulty is in carrying out the reading of the day.
Sorry for mentioning unnecessary data (wifi)

// Process weekdays (1. Mon, 2. Tue, 3. Wed, ...)

  for (int i = 1; i <= 7; i++) {
    if (t.isWeekdaySelected(i)) {
      Serial.println(String("Day ") + i + " is selected");
    }

Este codigo consegue ler os dados enviados do Blynk 2.0
atraves do BLYNK_WRITE(V2) ?
"

Desta forma ?

BLYNK_WRITE(V2){
    long startTimeInSecs = param[0].asLong();  // dados da hora inicio
    Serial.println(startTimeInSecs);
    long endTimeInSecs = param[1].asLong();   // dadod hora fim 
    Serial.println(endTimeInSecs);

   for (int i = 1; i <= 7; i++) {
    if (t.isWeekdaySelected(i)) {
      Serial.println(String("Day ") + i + " is selected");
    }
}

Have you actually looked at the code example that @John93 posted a link to?
If you had then I doubt that you’d be asking this question.

Pete.

sorry @pete
I am seeing yes, I am analyzing the example but I am having difficulties in understanding

BLYNK_WRITE(V1) {
  TimeInputParam t(param);

  // Process start time

  if (t.hasStartTime())
  {
    Serial.println(String("Start: ") +
                   t.getStartHour() + ":" +
                   t.getStartMinute() + ":" +
                   t.getStartSecond());
  }
  else if (t.isStartSunrise())
  {
    Serial.println("Start at sunrise");
  }
  else if (t.isStartSunset())
  {
    Serial.println("Start at sunset");
  }
  else
  {
    // Do nothing
  }

  // Process stop time

  if (t.hasStopTime())
  {
    Serial.println(String("Stop: ") +
                   t.getStopHour() + ":" +
                   t.getStopMinute() + ":" +
                   t.getStopSecond());
  }
  else if (t.isStopSunrise())
  {
    Serial.println("Stop at sunrise");
  }
  else if (t.isStopSunset())
  {
    Serial.println("Stop at sunset");
  }
  else
  {
    // Do nothing: no stop time was set
  }

  // Process timezone
  // Timezone is already added to start/stop time

  Serial.println(String("Time zone: ") + t.getTZ());

  // Get timezone offset (in seconds)
  Serial.println(String("Time zone offset: ") + t.getTZ_Offset());

  // Process weekdays (1. Mon, 2. Tue, 3. Wed, ...)

  for (int i = 1; i <= 7; i++) {
    if (t.isWeekdaySelected(i)) {
      Serial.println(String("Day ") + i + " is selected");
    }
  }

  Serial.println();
}

´´´