Source

puma / mdc-server.py

Trammell Hudson 8dd8d34 








Trammell Hudson e3a8f7a 

Trammell Hudson 8dd8d34 



Trammell Hudson e3a8f7a 
Trammell Hudson 8dd8d34 


#!/usr/bin/python
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 'Position: ' + ','.join(MDC.get_counts())

if __name__ == "__main__":
	app.run()