Mercurial > code > home > repos > homeauto
comparison service/piNode/piNode.py @ 1030:01e443398336
piNode sends hostname for page title
Ignore-this: d317f012a73a98d287ba7834a1aafeb6
darcs-hash:fe2fd418a9e8ff2d0e5c966d06f45edb5e57ba35
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Mon, 25 Jan 2016 00:24:34 -0800 |
parents | 8e075449ba0a |
children | 1e8ef0daf0f8 |
comparison
equal
deleted
inserted
replaced
1029:4d36cae32a4c | 1030:01e443398336 |
---|---|
154 | 154 |
155 class Boards(cyclone.web.RequestHandler): | 155 class Boards(cyclone.web.RequestHandler): |
156 def get(self): | 156 def get(self): |
157 self.set_header('Content-type', 'application/json') | 157 self.set_header('Content-type', 'application/json') |
158 self.write(json.dumps({ | 158 self.write(json.dumps({ |
159 'host': socket.gethostname(), | |
159 'boards': [self.settings.board.description()] | 160 'boards': [self.settings.board.description()] |
160 }, indent=2)) | 161 }, indent=2)) |
161 | 162 |
162 def main(): | 163 def main(): |
163 arg = docopt(""" | 164 arg = docopt(""" |