diff --git a/ir-remote-timer.py b/ir-remote-timer.py index 77c7220..2bc0df9 100644 --- a/ir-remote-timer.py +++ b/ir-remote-timer.py @@ -7,11 +7,6 @@ import time from twisted.web import server, resource from twisted.internet import reactor -site = server.Site(Simple()) -reactor.listenTCP(80, site) -reactor.startRunning(False) - - #print(irsend.list_remotes()) @@ -47,6 +42,10 @@ class Simple(resource.Resource): html = '%s' % statustext return html.encode('utf-8') +site = server.Site(Simple()) +reactor.listenTCP(80, site) +reactor.startRunning(False) + # Time definitions in UTC (Vienna is UTC+2)