days = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] def default(): content = """

select item below

""" return content def config_datetime(rtc): dt = rtc.datetime() d = ("%04d-%02d-%02d" % (dt[0], dt[1], dt[2])) t = ("%02d-%02d-%02d" % (dt[4], dt[5], dt[6])) content = """

Date/Time (Only fill to update current date/time!)

current date: """ + d + """   current time: """ + t + """

new date:   new time:

 

""" return content def config_day(config, day): content = """

Power-on/off (hh-mm)

Selected: """ + days[day] + """

P1-On   P1-Off

P2-On   P2-Off

 

""" return content