aboutsummaryrefslogtreecommitdiffstats
path: root/Web/PI/Uploads
diff options
context:
space:
mode:
authorRaspberry Pi <raspberrypi@umn.edu>2019-11-21 16:15:35 -0600
committerRaspberry Pi <raspberrypi@umn.edu>2019-11-21 16:15:35 -0600
commit85b09cd608f0c0a4c7e7c84555f8d053d324e64c (patch)
tree15ea472af07615c756e53582958e54ae37ff8b2b /Web/PI/Uploads
parentRework directory structure. Modify result file printing to match requirements... (diff)
parentrequirements (diff)
downloadee4511w-85b09cd608f0c0a4c7e7c84555f8d053d324e64c.tar
ee4511w-85b09cd608f0c0a4c7e7c84555f8d053d324e64c.tar.gz
ee4511w-85b09cd608f0c0a4c7e7c84555f8d053d324e64c.tar.bz2
ee4511w-85b09cd608f0c0a4c7e7c84555f8d053d324e64c.tar.lz
ee4511w-85b09cd608f0c0a4c7e7c84555f8d053d324e64c.tar.xz
ee4511w-85b09cd608f0c0a4c7e7c84555f8d053d324e64c.tar.zst
ee4511w-85b09cd608f0c0a4c7e7c84555f8d053d324e64c.zip
Merge branch 'master' of https://github.umn.edu/damic014/ee4950-inverted-pendulum
Diffstat (limited to '')
-rw-r--r--Web/PI/Uploads/PLACEHOLDER0
-rw-r--r--Web/PI/Uploads/test.py17
2 files changed, 17 insertions, 0 deletions
diff --git a/Web/PI/Uploads/PLACEHOLDER b/Web/PI/Uploads/PLACEHOLDER
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Web/PI/Uploads/PLACEHOLDER
diff --git a/Web/PI/Uploads/test.py b/Web/PI/Uploads/test.py
new file mode 100644
index 0000000..5091e89
--- /dev/null
+++ b/Web/PI/Uploads/test.py
@@ -0,0 +1,17 @@
+import time, os, sys
+from datetime import datetime
+
+file_name = os.path.basename(sys.argv[0])
+
+file_name = file_name.split(".")[0]
+
+now = datetime.now()
+current_time = now.strftime("%H:%M:%S")
+print("Current Time = " + current_time)
+
+f = open("Results/" + file_name + "_results", "w+")
+f.write("THIS IS RESULTS TEXT\n")
+f.write("Current Time = " + current_time)
+f.close()
+print("Running test.py for ~ 5 seconds.")
+time.sleep(5)