EmilPi/watch-yourself
A tool to watch and analyse your PC activity.
watch-yourself
A tool to watch and analyse your PC activity.
New contributors are most welcome! Anyone intersted in the topics below, please PM.
This is solely open-source project. The purpose is to make people better reflect on how they spend time of their lives and raise self-awareness.
Want to see your daily computer usage reports? This tool is intended right for this!
This tool currently
- Regularly makes photos with your webcam
- Regularly stores your currently opened window in the text file
DEPENDENCIES AND REQUIREMENTS:
Python 3 should be installed on system and python.exe should be added to your PATH.
COMMON:
- opencv-python
WINDOWS 10:
- pywin
TBD
- Make reports of your daily PC usage
- Make pruductivity predictions (concentration, sleepiness, bad habits etc.) and recommendations using machine learning on
- the sequence of your windows and
- the webcam photos.
- Make windowed/tray icon app with user-friendly interface
INSTALLATION:
- cd into this directory
- run
pip install -r requirements_linux.txtfor Linuxpip install -r requirements_windows.txtfor Windowspip install -r requirements_mac.txtfor Mac
- Done
USAGE
Windows:
- Right-click on
blocker.pyfile - choose 'Open with...'
- Select Python (find it in the programs list or locate python.exe binary)
- Choose 'Always use this program to open .py files
- Press
Win + Rkeyboard shortcut - Type
shell:startupin the appearing dialog and pressENTER - Drag
blocker.pyfile onto this folder with right mouse/touchpad button, selectCreate shortcutfrom appearing menu
Now blocker.py will autostart each time you log in!
Antivirus configuration
- Kaspersky Internet Security (KIS)
- on the first run of the script, KIS should prompt you to allow webcamera and other accesses. Unless you think differently, you should mark the flag to remember the decision for this application and click "Allow".
Small details
If you change the code of the script of code manually, KIS will re-ask you about script permissions.
Linux
Make this script autostart.
On Ubuntu 20.04 LTS, Gnome:
- Make the script executable:
chmod +x blocker.py - Press
Superkey - Start typing 'Startup Applications'
- Press
Add - Put some command title, and type
gnome-terminal --working-directory=<FULL_PATH_TO_REPO_FOLDER> ./blocker.pyintocommandfield. - Press
Add - Press
Close
Now blocker.py will autostart each time you log in!
Settings
You can provide command-line parameters when running blocker.py or use profile.json file.
Copy profile_example.json as profile.json and set parameters according to your needs (their names speak for themselves). By default, active window title and screenhost are saved when you close a window.
If your webcamera does not return good photo, try setting use_v4l2_backend to true.
CHANGELOG
Version 0.1:
Version 0.2:
Added blocker script - only for Linux.
Version 0.2.1:
Added blocker script for MacOS too.
2021-07-08:
Multiple Windows implementation fixes, updated README.