aboutsummaryrefslogtreecommitdiff
path: root/src/bin/watcher
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/watcher')
-rwxr-xr-xsrc/bin/watcher27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/bin/watcher b/src/bin/watcher
new file mode 100755
index 0000000..9be5779
--- /dev/null
+++ b/src/bin/watcher
@@ -0,0 +1,27 @@
+#!/usr/bin/python
+
+## watcher --start == will starts the process of making csv
+# watcher --daily == will give you your day overview till that point
+# watcher --week == will gives user their week overview of screen time
+
+import os
+import sys
+sys.path.insert(0, "/usr/share/Watcher/")
+
+import log_files as x
+#import report_creation
+
+#
+arg = sys.argv[1]
+if arg == "-ds":
+ a = os.popen('''python3 /usr/share/Watcher/report_creation.py''').read()
+ print(a)
+
+#elif arg == "daily":
+# print("daily summary")
+#def main() -> None:
+ ...
+
+#if __name__ == "__main__":
+# main()
+