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

Automatic scheduler. ESP-01 with 4 Time Input Widgets


#144

How can I change the timezone ?


#145

For Time Input the procedure is normally to simply click on the widget whilst the project is running and you should see TZ. If it’s not there stop the project, click the widget and scroll to the bottom of the options and add TZ feature.


#146

YES, I saw that and took few minutes to get synced.
Thanks for the reply.


#147

Two problems I faced

  1. When the display/buttons show “Device is ON”, the relay will be OFF.
    If it shows “Device is off”, the relay will be on…
    How to fix this ?

  2. If the board gets restarted (due to power failure), the relay stays in ON position, how to fix this ? I will have to use the app to turn it off . It happens even if an active timer is running. For example, if the timer is set to turn off the relay now, if the board gets restarted, the relay will stay ON!!


#148

The code will need to be modified by you.

What is your level of experience with C++?


#149

NO experience!!! :neutral_face: I will try…
I dont need this much functions.
Can you suggest me any alternative method to set timer (which works even after restarting) ?


#150

There are lots of free online resources to help you learn C++
There are also lots of freelance C++ coders available if you don’t want to learn the language.

Time Input is the most powerful scheduler available, but it does require the Blynk project developer to have an understanding of C++.


#151

if your relay has three connectors you can simply swap the wiring and it will work as intended. If it has two connectors you need to go into the code, but its not that hard. HIGH is used to send a signal and is usually associated with ON (e.g. connect an LED and it wil turn on) however relays work the other way round and are thus OFF. so swap the HIGH and LOWs in the code where it concerns the relays and your golden.


#152

@wolph42 That question was 5 months ago :wink:


#153

:joy::joy::joy::joy::joy::joy:


#154

…well…better late then never…:grimacing:


#155

@Costas
I got it.
The timer wil not run right way because the line code, it’s mistake.
nowseconds = ((hour() * 3600) + (minute() * 60) + second());
It mus be changed like the right one:

nowseconds = long(hour() * 3600L) + long(minute() * 60L) + long(second());

Timer using Time Input Widgets will be awesome!


#156

Thank you for useful application on Blynk.


#157

Dear all, where I can find the last version of code ?
The one in the first post includes all corrections ?
Thanks


#158

Hi mate,
Can you summarise the corrections you are taking about?