Source

puma / mdc-server.py

Diff from to

mdc-server.py

 import web
 import MDC
 
-
 urls = (
 	'/(.*)', 'hello'
 )
 app = web.application(urls, globals())
 
+controller = MDC.MDC("/dev/ttys005")
+
 class hello:        
 	def GET(self, name):
 		if not name: 
 			name = 'World'
-		return 'Hello, ' + name + '=' + web.ctx.query
+		return 'Position: ' + ','.join(MDC.get_counts())
 
 if __name__ == "__main__":
 	app.run()