fetapi/test.py

19 lines
381 B
Python
Raw Permalink Normal View History

2021-02-25 17:19:59 +01:00
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)