Mercurial > code > home > repos > homeauto
comparison service/arduinoNode/arduinoNode.py @ 222:e606f1d89d89
hostname in page title
Ignore-this: 84be0d921c173a4c2c154d6a65e15add
author | drewp@bigasterisk.com |
---|---|
date | Fri, 22 Jan 2016 00:39:35 -0800 |
parents | f8ffb9d8d982 |
children | 07ee72a042db |
comparison
equal
deleted
inserted
replaced
221:666e0e756ce6 | 222:e606f1d89d89 |
---|---|
398 class Boards(cyclone.web.RequestHandler): | 398 class Boards(cyclone.web.RequestHandler): |
399 def get(self): | 399 def get(self): |
400 | 400 |
401 self.set_header('Content-type', 'application/json') | 401 self.set_header('Content-type', 'application/json') |
402 self.write(json.dumps({ | 402 self.write(json.dumps({ |
403 'host': socket.gethostname(), | |
403 'boards': [b.description() for b in self.settings.boards] | 404 'boards': [b.description() for b in self.settings.boards] |
404 }, indent=2)) | 405 }, indent=2)) |
405 | 406 |
406 def currentSerialDevices(): | 407 def currentSerialDevices(): |
407 log.info('find connected boards') | 408 log.info('find connected boards') |