Development clone of https://git.blinkenbunt.org/LUG-Saar/fetapi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
381 B
19 lines
381 B
2 years ago
|
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)
|