Giter Site home page Giter Site logo

emilpi / watch-yourself Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 1.0 246 KB

A tool to watch and analyse your PC activity.

License: GNU General Public License v3.0

Python 87.80% PowerShell 0.05% Java 8.30% HTML 3.61% Shell 0.24%
reporting productivity monitoring-tool monitoring-scripts monitoring python webcam-capture system-monitoring spying productivity-timer productivity-tool productivity-tools

watch-yourself's Introduction

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

  1. Make reports of your daily PC usage
  2. Make pruductivity predictions (concentration, sleepiness, bad habits etc.) and recommendations using machine learning on
    1. the sequence of your windows and
    2. the webcam photos.
  3. Make windowed/tray icon app with user-friendly interface

INSTALLATION:

  1. cd into this directory
  2. run
    1. pip install -r requirements_linux.txt for Linux
    2. pip install -r requirements_windows.txt for Windows
    3. pip install -r requirements_mac.txt for Mac
  3. Done

USAGE

Windows:

  1. Right-click on blocker.py file
  2. choose 'Open with...'
  3. Select Python (find it in the programs list or locate python.exe binary)
  4. Choose 'Always use this program to open .py files
  5. Press Win + R keyboard shortcut
  6. Type shell:startup in the appearing dialog and press ENTER
  7. Drag blocker.py file onto this folder with right mouse/touchpad button, select Create shortcut from 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:

  1. Make the script executable: chmod +x blocker.py
  2. Press Super key
  3. Start typing 'Startup Applications'
  4. Press Add
  5. Put some command title, and type gnome-terminal --working-directory=<FULL_PATH_TO_REPO_FOLDER> ./blocker.py into command field.
  6. Press Add
  7. 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.

watch-yourself's People

Contributors

emilpi avatar

Stargazers

 avatar  avatar

watch-yourself's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.