Skip to content

Commit

Permalink
back to stable version of vizmapper working minimally with webmapper …
Browse files Browse the repository at this point in the history
…backend
  • Loading branch information
vijayrudraraju committed May 9, 2011
1 parent 04d8289 commit aaa4cf9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Empty file removed data/live.json
Empty file.
5 changes: 4 additions & 1 deletion webmapper_http_server.py
Expand Up @@ -22,7 +22,7 @@
html_file = open(html_file_path,'r')

message_pipe = []
tracing = False
tracing = True

class ReuseTCPServer(SocketServer.ThreadingTCPServer):
allow_reuse_address = True
Expand Down Expand Up @@ -153,6 +153,9 @@ def handler_wait_command(out, args):
print >>out, json.dumps( {"id": int(args['id']),
"cmd": msg[0],
"args": msg[1]} )

if 'device_name' in msg[1]:
live_file_cache.append(msg[1])
live_file = open(file_path,'w')
live_file.write(json.dumps(live_file_cache,indent=4))

Expand Down

0 comments on commit aaa4cf9

Please sign in to comment.