Changeset 373 in tmcsimulator


Ignore:
Timestamp:
04/16/2019 10:11:47 AM (7 years ago)
Author:
jdalbey
Message:

Update filenames in code to match dir reorg

Location:
trunk/webapps
Files:
1 added
1 deleted
6 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/webapps/cgi-bin/saveCMSmessage.py

    r327 r373  
    1111    
    1212# write message to file 
    13 text_file = open("cms_messages.json", "w") 
     13text_file = open("dynamicdata/cms_messages.json", "w") 
    1414text_file.write(outMessage) 
    1515text_file.close() 
  • trunk/webapps/cgi-bin/saveHARmessage.py

    r327 r373  
    1111    
    1212# write message to file 
    13 text_file = open("har_messages.json", "w") 
     13text_file = open("dynamicdata/har_messages.json", "w") 
    1414text_file.write(outMessage) 
    1515text_file.close() 
  • trunk/webapps/cptms/js/cmsLayer.js

    r372 r373  
    160160        console.log("outString = " + outString); 
    161161        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); 
    163163        xhttp.send(); 
     164        console.log("status code: " + xhttp.status); 
    164165        // Using POST might be a better idea ... haven't tried this yet 
    165166        //      var xhr = new XMLHttpRequest(); 
  • trunk/webapps/cptms/js/harLayer.js

    r372 r373  
    117117 
    118118        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); 
    120120        xhttp.send(); 
    121121        // 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  
    118118{ 
    119119    /** Load the sim time file and extract the seconds */ 
    120     loadJSON("../sim_elapsedtime.json", function(response) 
     120    loadJSON("../dynamicdata/sim_elapsedtime.json", function(response) 
    121121    { 
    122122        try { 
  • trunk/webapps/runTimer.py

    r348 r373  
    11#!/usr/bin/python 
    22# Run a timer and save it to a file 
     3# This allows for isolation testing of einotebook without 
     4# Sim Mgr having to run. 
    35import time 
    46from datetime import timedelta 
     7print "Starting elapsed timer ..." 
    58count = 0 
    69while True: 
     
    811    time.sleep(1) 
    912    count += 1 
    10     elapsedTime = timedelta(seconds=count) 
     13    # elapsedTime = timedelta(seconds=count) 
    1114    # convert integer into hh:mm:ss format 
    12     lineout =  "{\"clock\":\"" + str(elapsedTime) + "\"}" 
     15    lineout =  "{\"elapsedtime\":\"" + str(count) + "\"}" 
    1316     
    1417    # write message to file 
    15     text_file = open("sim_clock.json", "w") 
     18    text_file = open("dynamicdata/sim_elapsedtime.json", "w") 
    1619    text_file.write(lineout) 
    1720    text_file.close() 
    1821 
    19     print count 
     22    # print count 
    2023 
    2124 
Note: See TracChangeset for help on using the changeset viewer.