diff options
| author | spv <spv@spv.sh> | 2025-07-29 18:35:09 -0400 |
|---|---|---|
| committer | spv <spv@spv.sh> | 2025-07-29 18:35:09 -0400 |
| commit | 636632b1d03f14c45911c1051d39ff01bd6f118a (patch) | |
| tree | f889a18e83aa33f4f993aac87d0bfebf2d2f308c /src/log_shit.py | |
| parent | f9edc4b39a99df397007100e13ebaf7cf2e48373 (diff) | |
wait for gps fix, use file extensions, make the logging all professional-like
Diffstat (limited to 'src/log_shit.py')
| -rw-r--r-- | src/log_shit.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/log_shit.py b/src/log_shit.py index a60711f..7e5da43 100644 --- a/src/log_shit.py +++ b/src/log_shit.py @@ -16,20 +16,20 @@ except: print("fake file.") sys.exit(-1) -print("file: %s\n\ -how often: %f\n\ -how long: %f" % (log_file, how_often, time_to_do_it)) +print("[i] file: %s\n\ +[i] how often: %f\n\ +[i] how long: %f" % (log_file, how_often, time_to_do_it)) start = time.time() now = time.time -print("we out here, yo", flush=True) +print("[i] we out here, yo", flush=True) while (start + time_to_do_it) > now(): # print("we out here, yo", flush=True) - lat, lon, alt = [float(x) for x in subprocess.getoutput("src/dirty_hack").split(",")] + lat, lon, alt = [float(x) for x in subprocess.getoutput("src/dirty_hack.sh").split(",")] - print("%f: %f, %f, %f" % (time.time_ns() / (10**9), lat, lon, alt)) + print("[i] %f: %f, %f, %f" % (time.time_ns() / (10**9), lat, lon, alt)) f.write("%f: %f, %f, %f\n" % (time.time_ns() / (10**9), lat, lon, alt)) f.flush() |
