This project collects ActivityWatch data from all your systems and imports it into a central server so you can see activity for every machine in one place.
- Export: The export script reads all data from ActivityWatch via its API, saves it to a JSON file, and uploads that file to OneDrive.
- Import: The import script deletes every existing bucket from the previous run, then imports and updates all buckets from the JSON files stored in OneDrive back into ActivityWatch.
- in github repositorie click green button "Code"
- from menu click "download zip" to download start
- extract it from zip and copy "export" folder and paste it in "C:" drive root
Download Link: ActivityWatch
- download and Install ActivityWatch with the default settings on all computers that you want to track.
Install OneDrive (most Windows machines include it by default; if not, download and install it).
- open OneDrive application on your computer
- Sign in OneDrive account on all computers.
- All clients and the server must use a single shared OneDrive account to access the same sync folder.
To avoid the black command prompt window appearing every time the script runs, convert the .bat file to an .exe using a "bat to exe" tool.
- Tool: Bat To Exe Converter
- Install and open the app and load your run.bat file(import or export bat file) from "c:\export"
- In the Options tab, set the EXE format to: "64-bit Windows | Screen (Invisible)".
- Click Convert (choose 64-bit or 32-bit depending on your machines).
- make sure exe file we create it placed in "c:\export" path
Use Windows Task Scheduler to automate export/import so it runs every 30 minutes (or any schedule you prefer).
- from "start" menu search "Task scheduler" and open it.
- from right window click on "create basic task".
- choose a name for it and click next
- Set "Trigger" to "One time" and click next
- in "Action" select "Start a program" and click next
- in "Start a program" browse the exe file that you create it in Step 3 and click next
- click finish
- in left menu click on "Task Scheduler Library"
- from list find your Task you create, and duble click on task to edit window appear.
- in "Trigger" tab click edit
- Set Checked "Repeat task every" and set time for it (minutes or hours).
- Set "For a duration of" to "Indefinitely".
- click green button "Code"
- from menu click "download zip" to download start
- extract it and copy "import" folder and paste it in "C:" drive root
Download Link: ActivityWatch
download and Install ActivityWatch with the default settings on all computers that you want to track.
Install OneDrive (most Windows machines include it by default; if not, download and install it).
- open OneDrive application on your computer
- Sign in OneDrive account on all computers.
- All clients and the server must use a single shared OneDrive account to access the same sync folder.
To avoid the black command prompt window appearing every time the script runs, convert the .bat file to an .exe using a "bat to exe" tool. Tool: Bat To Exe Converter
- Install and open the app and load your run.bat file(import or export bat file) from "c:\import"
- In the Options tab, set the EXE format to: "64-bit Windows | Screen (Invisible)".
- Click Convert (choose 64-bit or 32-bit depending on your machines).
- make sure exe file we create it placed in "c:\import" path
- download and install Python Python
- in install window checked the "add python.exe to path"
- open command prompt from start menu
- copy and psate these commands to create environment and install lib:
python -m venv c:\import\myenv cd c:\import\myenv Scripts\activate pip install aw_client --no-cache-dir pip install requests --no-cache-dir
Use Windows Task Scheduler to automate export/import so it runs every 30 minutes (or any schedule you prefer).
- from "start" menu search "Task scheduler" and open it.
- from right window click on "create basic task".
- choose a name for it and click next
- Set "Trigger" to "One time" and click next
- in "Action" select "Start a program" and click next
- in "Start a program" browse the exe file that you create it in Step 4 and click next
- click finish
- in left menu click on "Task Scheduler Library"
- from list find your Task you create, and duble click on task to edit window appear.
- in "Trigger" tab click edit
- Set Checked "Repeat task every" and set time for it (minutes or hours).
- Set "For a duration of" to "Indefinitely"
Important
- Use OneDrive if you do not already have a cloud storage service (reliable and pre-installed on most Windows machines).
- To use another cloud provider, update the paths in the scripts to point to that service's sync folder
- All paths in this project are configured for OneDrive. If you want to use another cloud service, update the paths in the scripts accordingly.