Is this possible with Blynk?

do you mean with a timer that triggers every 30 seconds or so?

Exactly. If the accuracy of a day is enough to be workable, it’s better to leave the hardware as much alone as possible. After all, it’s a tiny MCU without much power. It is always a good idea to try and have different views and go through your program logic after it has been written. Maybe something can be better? Lower impact on resources? Keep asking yourself the questions :slight_smile:

1 Like

@gusgonnet for testing purposes the slider changes the day rather than have to wait a day to see if it works. The relevant part of the sketch is:

BLYNK_WRITE(V0)
{
  int pinValue = param.asInt(); // assigning incoming value from slider to a variable
  currentweekdaynumber = 2;
  adjtime = (pinValue * (60 * 60 * 24)) + (7 * (60 * 60 * 24)) - (currentweekdaynumber * (60 * 60 * 24)) ;
  adjustTime(adjtime); // advance by 1 to 7 days
  switch (pinValue)
  {
    case 1: { 
      DayOfWeekStr = "Sunday";
      break;
    }
  //etc 
}
  Blynk.virtualWrite(V3, DayOfWeekStr); 
  Blynk.virtualWrite(V6, weekday());
  adjustTime(-adjtime);  // reset back to today
}
1 Like