This repository contains a PowerShell script (Wakatime_report.ps1) for generating a summary report of your WakaTime coding activity over the past 7 days. The script fetches data from the WakaTime API and displays daily and total coding times in the terminal.
- Loads your WakaTime API key from a
.envfile - Fetches coding activity summaries for the last 7 days
- Displays daily coding times and the total time spent
- Handles errors and provides helpful tips if the API key is missing or incorrect
- Windows PowerShell
- A valid WakaTime API key (find yours here)
- Clone or download this repository.
- Create a
.envfile in the same directory as the script with the following content:ReplaceWAKATIME_API_KEY=your_wakatime_api_key
your_wakatime_api_keywith your actual WakaTime API key.
- Open PowerShell and navigate to the script directory.
- Run the script:
.\Wakatime_report.ps1
- The script will display your daily and total coding times for the past week.
- If you see an error about the
.envfile not being found, make sure it exists in the script directory. - If you get an "Unauthorized" error, check that your API key is correct and has the necessary permissions.
This project is provided as-is for personal use.