fetapi/test.py
2021-02-27 00:22:43 +01:00

19 lines
381 B
Python

from webinterface import FeTapWeb
import time
class StubController():
def __init__(self):
self.state = IdleState()
pass
class IdleState():
def __init__(self):
pass
controller = StubController()
webinterface = FeTapWeb({"host": "0.0.0.0", "port": 8080}, controller)
webinterface.start()
while True:
webinterface.publish_status()
time.sleep(1)