Changeset 373 in tmcsimulator for trunk/webapps
- Timestamp:
- 04/16/2019 10:11:47 AM (7 years ago)
- Location:
- trunk/webapps
- Files:
-
- 1 added
- 1 deleted
- 6 edited
- 1 moved
-
cgi-bin/saveCMSmessage.py (modified) (1 diff)
-
cgi-bin/saveHARmessage.py (modified) (1 diff)
-
common/js/displayutils.js (added)
-
cptms/js/cmsLayer.js (modified) (1 diff)
-
cptms/js/harLayer.js (modified) (1 diff)
-
dynamicdata/sim_elapsedtime.json (modified) (1 diff)
-
dynamicdata/sim_scriptname.json (deleted)
-
einotebook/notebook.js (modified) (1 diff)
-
runTimer.py (moved) (moved from trunk/webapps/cptms/runTimer.py) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/webapps/cgi-bin/saveCMSmessage.py
r327 r373 11 11 12 12 # write message to file 13 text_file = open(" cms_messages.json", "w")13 text_file = open("dynamicdata/cms_messages.json", "w") 14 14 text_file.write(outMessage) 15 15 text_file.close() -
trunk/webapps/cgi-bin/saveHARmessage.py
r327 r373 11 11 12 12 # write message to file 13 text_file = open(" har_messages.json", "w")13 text_file = open("dynamicdata/har_messages.json", "w") 14 14 text_file.write(outMessage) 15 15 text_file.close() -
trunk/webapps/cptms/js/cmsLayer.js
r372 r373 160 160 console.log("outString = " + outString); 161 161 var xhttp = new XMLHttpRequest(); 162 xhttp.open("GET", " cgi-bin/saveCMSmessage.py?msg=" + outString, true);162 xhttp.open("GET", "../cgi-bin/saveCMSmessage.py?msg=" + outString, true); 163 163 xhttp.send(); 164 console.log("status code: " + xhttp.status); 164 165 // Using POST might be a better idea ... haven't tried this yet 165 166 // var xhr = new XMLHttpRequest(); -
trunk/webapps/cptms/js/harLayer.js
r372 r373 117 117 118 118 var xhttp = new XMLHttpRequest(); 119 xhttp.open("GET", " cgi-bin/saveHARmessage.py?msg=" + outString, true);119 xhttp.open("GET", "../cgi-bin/saveHARmessage.py?msg=" + outString, true); 120 120 xhttp.send(); 121 121 // Using POST might be a better idea ... haven't tried this yet -
trunk/webapps/dynamicdata/sim_elapsedtime.json
r372 r373 1 {"elapsedtime":" 24"}1 {"elapsedtime":"519"} -
trunk/webapps/einotebook/notebook.js
r363 r373 118 118 { 119 119 /** Load the sim time file and extract the seconds */ 120 loadJSON("../ sim_elapsedtime.json", function(response)120 loadJSON("../dynamicdata/sim_elapsedtime.json", function(response) 121 121 { 122 122 try { -
trunk/webapps/runTimer.py
r348 r373 1 1 #!/usr/bin/python 2 2 # Run a timer and save it to a file 3 # This allows for isolation testing of einotebook without 4 # Sim Mgr having to run. 3 5 import time 4 6 from datetime import timedelta 7 print "Starting elapsed timer ..." 5 8 count = 0 6 9 while True: … … 8 11 time.sleep(1) 9 12 count += 1 10 elapsedTime = timedelta(seconds=count)13 # elapsedTime = timedelta(seconds=count) 11 14 # convert integer into hh:mm:ss format 12 lineout = "{\" clock\":\"" + str(elapsedTime) + "\"}"15 lineout = "{\"elapsedtime\":\"" + str(count) + "\"}" 13 16 14 17 # write message to file 15 text_file = open(" sim_clock.json", "w")18 text_file = open("dynamicdata/sim_elapsedtime.json", "w") 16 19 text_file.write(lineout) 17 20 text_file.close() 18 21 19 print count22 # print count 20 23 21 24
Note: See TracChangeset
for help on using the changeset viewer.
