[SOLVED] Time Input not trigger

@Costas ok, thank you. So my proposal for fix would be :

  1. Add offset to TimeInput message as it was before;
  2. Send start/stop time as local time and not in UTC, so you don’t need to adjust according to timezone.

Is that ok? Is 2 - necessary and will simplify things?

On app client.

@Dmitriy I didn’t think TimeInput had ever been based on local time and I mentioned the inconsistency between TimeInput and Timer in another thread, the latter of which worked on local time (with the offset handled at your side).

Your solution would work for me but I worry about others that may have already coded based on knowing the TZ offset.

I guess it makes things simpler with the solution you offer but are you not able to provide the TZ offset in case anyone needs it? I guess if everything works on local time then perhaps nobody needs to know their TZ offset.

I was trying time input widget but, it does not compile advancedtimeinput example.
I want to use it to activate some lights at the week, and watering my garden when there is no one at home. thanks.

Correct, so we gonna fix that.

We will provide offset too. + local time for start/stop.

@Francisco_Diaz please wait for new library release.

@Francisco_Diaz is version 1.5.8 the 2 year old IDE or a more recent version for none Windows machines?

If it is a very new version you might try rolling back to the equivalent of 1.6.9 for your OS.

What am I doing wrong here?
It doesn’t trigger.
Do I need RTC for this widget?

  TimeInputParam t(param);
  if (t.hasStartTime()) {
    alarmTrigger == HIGH;
    terminal.println("inputTimer HIGH");
    terminal.flush();
    if (alarmToggle == HIGH && alarmTrigger == HIGH) {
      varBrightness = (int)0;
      Blynk.virtualWrite(V2, varBrightness);
      wakeUpModeON = true;
      wakeUpMode();
    }
  }
  else
  {
    // Do nothing
  }
  if (t.hasStopTime()) {
    alarmTrigger == LOW;
    terminal.println("inputTimer LOW");
    terminal.flush();
    if (alarmTrigger == LOW || alarmToggle == LOW) {
      wakeUpFirstStart = true;
      wakeUpModeON = false;
      alarmTimer.deleteTimer(alarm1);
    }
  }
  else
  {
    // Do nothing
  }