From ec046b10789acf8dc46392bcb06f133359f22034 Mon Sep 17 00:00:00 2001
From: ygao <ygao355@wisc.edu>
Date: Fri, 7 Mar 2025 18:02:49 +0000
Subject: [PATCH] update on assets folder

---
 assets/js/scripts.js |  6 +++---
 latency_viewer.log   | 12 ++++++++++++
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/assets/js/scripts.js b/assets/js/scripts.js
index 8d5ef8b..cba6eeb 100644
--- a/assets/js/scripts.js
+++ b/assets/js/scripts.js
@@ -163,7 +163,7 @@ function fetchMetadata(dateObj) {
     showLoading();
     
     $.ajax({
-        url: 'cgi-bin/metadata.py', 
+        url: 'assets/python/metadata.py', 
         method: 'GET',
         dataType: 'json',
         success: function(response) {
@@ -406,7 +406,7 @@ function fetchDataForDay(dateObj){
     
     // Use low-level XHR for better memory control
     window.currentAjaxRequest = $.ajax({
-        url: '/cgi-bin/data.py?' + query,
+        url: 'assets/python/data.py?' + query,
         method: 'GET',
         dataType: 'json',
         success: function(response) {
@@ -559,7 +559,7 @@ function fetchSatellitesForDay(dateObj) {
     let dateStr = `${year}-${month}-${day}`;
     
     $.ajax({
-        url: 'cgi-bin/satellites.py?date=' + dateStr,
+        url: 'assets/python/satellites.py?date=' + dateStr,
         method: 'GET',
         dataType: 'json',
         success: function(response) {
diff --git a/latency_viewer.log b/latency_viewer.log
index 0949f3a..7ef0593 100644
--- a/latency_viewer.log
+++ b/latency_viewer.log
@@ -182,3 +182,15 @@ ValueError: Must pass schema, or at least one RecordBatch
   File "pyarrow/table.pxi", line 4760, in pyarrow.lib.Table.from_batches
 ValueError: Must pass schema, or at least one RecordBatch
 
+2025-03-07 17:41:18,389 - INFO - Expanded satellite ID 4B to variants: ['4B']
+2025-03-07 17:41:18,389 - INFO - Data request - Period: 2025-03-07T00:00:00 to 2025-03-07T23:59:59, Filters: {'satellite-id': ['4B'], 'instrument': 'GIIRS'}
+2025-03-07 17:41:18,389 - INFO - Running command: module load miniconda/3.6-base && source activate ~/.mdrexler_conda && sat_latency_interface -d /data/sat_latency --from '2025-03-07T00:00:00' --until '2025-03-07T23:59:59' --output-type json --satellite-id "4B" --instrument "GIIRS"
+2025-03-07 17:41:18,389 - INFO - Executing: sudo -u oper -i /tmp/run_sat_latency.sh
+2025-03-07 17:41:21,503 - INFO - Command output (first 200 chars): [{"satellite_ID": "4B", "band": null, "coverage": null, "ingest_source": null, "instrument": "GIIRS", "section": null, "start_time": "2025-03-07T00:03:28+00:00", "latency": 776.71}, {"satellite_ID": "...
+2025-03-07 17:41:21,503 - INFO - Successfully parsed JSON data: 77 records found
+2025-03-07 17:41:21,522 - INFO - Expanded satellite ID 4B to variants: ['4B']
+2025-03-07 17:41:21,522 - INFO - Data request - Period: 2025-03-07T00:00:00 to 2025-03-07T23:59:59, Filters: {'satellite-id': ['4B'], 'instrument': 'GIIRS'}
+2025-03-07 17:41:21,522 - INFO - Running command: module load miniconda/3.6-base && source activate ~/.mdrexler_conda && sat_latency_interface -d /data/sat_latency --from '2025-03-07T00:00:00' --until '2025-03-07T23:59:59' --output-type json --satellite-id "4B" --instrument "GIIRS"
+2025-03-07 17:41:21,522 - INFO - Executing: sudo -u oper -i /tmp/run_sat_latency.sh
+2025-03-07 17:41:24,440 - INFO - Command output (first 200 chars): [{"satellite_ID": "4B", "band": null, "coverage": null, "ingest_source": null, "instrument": "GIIRS", "section": null, "start_time": "2025-03-07T00:03:28+00:00", "latency": 776.71}, {"satellite_ID": "...
+2025-03-07 17:41:24,441 - INFO - Successfully parsed JSON data: 77 records found
-- 
GitLab