From 143385744cdba018542af50b12100aafb4aab6f2 Mon Sep 17 00:00:00 2001 From: Andreas Demmelbauer Date: Thu, 4 Jun 2020 23:57:41 +0200 Subject: [PATCH] move simple --- ir-remote-timer.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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)