Browse Source

move simple

master
Andreas Demmelbauer 4 years ago
parent
commit
143385744c
1 changed files with 4 additions and 5 deletions
  1. +4
    -5
      ir-remote-timer.py

+ 4
- 5
ir-remote-timer.py View File

@@ -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)


Loading…
Cancel
Save