# HG changeset patch # User drewp@bigasterisk.com # Date 1440922628 25200 # Node ID ad20e5cb4febd000d7f31dbc7db21f1d118db5cb # Parent fc184ea1416d48d397ad9efd19818047f55b9cc9 serve ipv6 and use localhost's ipv6 name for getting updates Ignore-this: f44a03e61aa84e5db046ecacd7ec0dd6 diff -r fc184ea1416d -r ad20e5cb4feb service/arduinoNode/arduinoNode.py --- 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()