changeset 995:f72068e9d9d8

serve ipv6 and use localhost's ipv6 name for getting updates Ignore-this: f44a03e61aa84e5db046ecacd7ec0dd6 darcs-hash:20150830081708-312f9-aba6b59dc6e6a866bfa2fe3b75147ff681932ba1
author drewp <drewp@bigasterisk.com>
date Sun, 30 Aug 2015 01:17:08 -0700
parents e7af84a10adc
children a34e008a8f95
files service/arduinoNode/arduinoNode.py
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/service/arduinoNode/arduinoNode.py	Sun Jul 12 02:56:07 2015 -0700
+++ b/service/arduinoNode/arduinoNode.py	Sun Aug 30 01:17:08 2015 -0700
@@ -80,6 +80,7 @@
             'dev': self.dev,
             'baudrate': self.baudrate,
             'devices': [d.description() for d in self._devs],
+            'graph': 'http://%s6:9059/graph' % socket.gethostname(), #todo
             }
         
     def open(self):
@@ -416,7 +417,8 @@
     for b in boards:
         b.startPolling()
 
-    reactor.listenTCP(9059, cyclone.web.Application([
+
+    app = cyclone.web.Application([
         (r"/()", cyclone.web.StaticFileHandler, {
             "path": "static", "default_filename": "index.html"}),
         (r'/static/(.*)', cyclone.web.StaticFileHandler, {"path": "static"}),
@@ -425,7 +427,8 @@
         (r'/output', OutputPage),
         (r'/arduinoCode', ArduinoCode),
         (r'/dot', Dot),
-        ], config=config, boards=boards))
+        ], config=config, boards=boards)
+    reactor.listenTCP(9059, app, interface='::')
     reactor.run()
 
 main()