|
@@ -7,11 +7,6 @@ import time |
|
|
from twisted.web import server, resource |
|
|
from twisted.web import server, resource |
|
|
from twisted.internet import reactor |
|
|
from twisted.internet import reactor |
|
|
|
|
|
|
|
|
site = server.Site(Simple()) |
|
|
|
|
|
reactor.listenTCP(80, site) |
|
|
|
|
|
reactor.startRunning(False) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#print(irsend.list_remotes()) |
|
|
#print(irsend.list_remotes()) |
|
|
|
|
|
|
|
@@ -47,6 +42,10 @@ class Simple(resource.Resource): |
|
|
html = '<b>%s</b>' % statustext |
|
|
html = '<b>%s</b>' % statustext |
|
|
return html.encode('utf-8') |
|
|
return html.encode('utf-8') |
|
|
|
|
|
|
|
|
|
|
|
site = server.Site(Simple()) |
|
|
|
|
|
reactor.listenTCP(80, site) |
|
|
|
|
|
reactor.startRunning(False) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Time definitions in UTC (Vienna is UTC+2) |
|
|
# Time definitions in UTC (Vienna is UTC+2) |
|
|