Remote Timer input/Reset timer/timer monitoring and switiching Relay

Hello,

I'm having an idea for setting value for countdown timer in arduino from web interface or mobile app.

with options like hours, mins & secs input and monitoring of timer current value like in the screen above.

Arduino side it should grasp the timer input value given through the app and it should start a relay for that period of time and bounce back after timer expiration.(i.e. like the timers in microwave ovens and coffer makers but without physical keyboard but with software input from app/web IoT)

I have Arduino UNO, Ethernet shield, ESP8266, Relay, RTC module

Please pour some techniques to do it and my project is to Turn an appliance ON for a defined Real time (i.e. from 8PM to 10PM - ON, rest OFF) and count down timer ON(i.e. For 20min ON, on expiring of timer OFF) two options.

Of course you can do it, but you have to think about all the use cases and how you represent commands/data between your remote user interface to the microprocessor hosting the relay.

Use cases:
Set time start
Set time End (same day as start)
Set Duration
Clear all settings and set relay off
set start time today, set end time next week.
Query current timer settings.
etc. etc.

Then you have to work out a command format for communication to timer
say


And maybe results returned by the timer:

etc.
etc. etc.