comparison service/piNode/piNode.py @ 225:c5589f21d4a3

piNode sends hostname for page title Ignore-this: d317f012a73a98d287ba7834a1aafeb6
author drewp@bigasterisk.com
date Mon, 25 Jan 2016 00:24:34 -0800
parents 666e0e756ce6
children 1e8ef0daf0f8
comparison
equal deleted inserted replaced
224:596c645a1fc5 225:c5589f21d4a3
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("""