# Svelte app

from datetime import datetime now = datetime.now() now.strftime("%m/%d/%Y, %H:%M:%S") from datetime import datetime import asyncio async def foo(): while True: await asyncio.sleep(1) now = datetime.now() output = now.strftime("%m/%d/%Y, %H:%M:%S") pyscript.write("outputDiv2", output) out3 = Element("outputDiv3") if output[-1] in ["0", "4", "8"]: out3.write("It's espresso time!") else: out3.clear() pyscript.run_until_complete(foo())