Skip to content

Ahanka758/office_scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Wakatime Report PowerShell Script

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.

Features

  • Loads your WakaTime API key from a .env file
  • 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

Prerequisites

Setup

  1. Clone or download this repository.
  2. Create a .env file in the same directory as the script with the following content:
    WAKATIME_API_KEY=your_wakatime_api_key
    Replace your_wakatime_api_key with your actual WakaTime API key.

Usage

  1. Open PowerShell and navigate to the script directory.
  2. Run the script:
    .\Wakatime_report.ps1
  3. The script will display your daily and total coding times for the past week.

Troubleshooting

  • If you see an error about the .env file 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.

License

This project is provided as-is for personal use.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors