Update Twitter profile with a meter showing how close you are to code burnout.

Overview

WakaTime Code Burnout Meter in Twitter Profile

tests last run

Inspired by trash's Twitter profile, this repo adds a burnout meter to your Twitter profile. It uses WakaTime to get your coding activity and calculates the burnout percentage based on the number of hours you've coded in the last 30 days. It then creates a meter with emoji and updates your Twitter profile location with the meter.

Here's how it will look at the different stages of burnout:

🟩 🟩 ⬜️ ⬜️ ⬜️ ⬜️ ⬜️ ⬜️ to burnout

🟨 🟨 🟨 🟨 ⬜️ ⬜️ ⬜️ ⬜️ to burnout

🟧 🟧 🟧 🟧 🟧 🟧 ⬜️ ⬜️ to burnout

🟥 🟥 🟥 🟥 🟥 🟥 🟥 🟥 to burnout

It uses cron with GitHub Actions to run every 6 hours, but can also be run manually.

Usage

  1. Fork or Clone this repository
  2. Get your WakaTime API key
  3. Create a Twitter app and get your API keys
  4. Create a GitHub secret for each of the following:
    • WAKATIME_API_KEY - Your WakaTime API key
    • TWITTER_ACCESS_TOKEN - Access token for your Twitter app
    • TWITTER_ACCESS_TOKEN_SECRET - Access token secret for your Twitter app
    • TWITTER_CONSUMER_KEY - Consumer API key for your Twitter app
    • TWITTER_CONSUMER_SECRET - Consumer API secret key for your Twitter app
  5. You can also optionaly set the following secrets to customize the meter:
    • BURNOUT_DAYS - The number of days to use for calculating burnout (default: 30)
    • BURNOUT_LIMIT - The number of hours you want to be considered "burned out" (default: 180)
    • METER_LENGTH - The number of emoji to use for the meter (default: 8)

License

MIT

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.


Created with 💜 and 🦀 by Travis Aaron Wagner

You might also like...
Simple CLI to (add, delete, update, create) i18n translation file 🔤 🦀
Simple CLI to (add, delete, update, create) i18n translation file 🔤 🦀

, Inrs Simple CLI to (add, delete, update, create) i18n translation file Copyright (C) 2020-2022 TheAwiteb https://github.com/TheAwiteb/inrs This pr

Plex webhook service to automatically update your Anilist watching list.

anifunnel Plex webhook service to automatically update your Anilist watching list. Description anifunnel is a web server that will consume incoming Pl

fas stand for Find all stuff and it's a go app that simplify the find command and allow you to easily search everything you nedd
fas stand for Find all stuff and it's a go app that simplify the find command and allow you to easily search everything you nedd

fas fas stands for Find all stuff and it's a rust app that simplify the find command and allow you to easily search everything you need. Note: current

Shellfirm - Intercept any risky patterns (default or defined by you) and prompt you a small challenge for double verification
Shellfirm - Intercept any risky patterns (default or defined by you) and prompt you a small challenge for double verification

shellfirm Opppppsss you did it again? 😱 😱 😰 Protect yourself from yourself! rm -rf * git reset --hard before saving? kubectl delete ns which going

Dura - You shouldn't ever lose your work if you're using Git

Dura Dura is a background process that watches your Git repositories and commits your uncommitted changes without impacting HEAD, the current branch,

zigfi is an open-source stocks, commodities and cryptocurrencies price monitoring CLI app, written fully in Rust, where you can organize assets you're watching easily into watchlists for easy access on your terminal.
zigfi is an open-source stocks, commodities and cryptocurrencies price monitoring CLI app, written fully in Rust, where you can organize assets you're watching easily into watchlists for easy access on your terminal.

zigfi zigfi is an open-source stocks, commodities and cryptocurrencies price monitoring CLI app, written fully in Rust, where you can organize assets

This automatically patches the RoPro extension for you, allowing you to have pro_tier for free.

RoPro Patcher This automatically patches the RoPro extension for you, allowing you to have pro_tier for free. NOTE Chrome, Brave (and possibly other b

Sero is a web server that allows you to easily host your static sites without pain. The idea was inspired by surge.sh but gives you full control.

sero Lightning-fast, static web publishing with zero configuration and full control 📖 Table Of Contents 📖 Table Of Contents 🔧 Tools ❓ About The Pro

Warp is a blazingly fast, Rust-based terminal that makes you and your team more productive at running, debugging, and deploying code and infrastructure.
Warp is a blazingly fast, Rust-based terminal that makes you and your team more productive at running, debugging, and deploying code and infrastructure.

Warp is a blazingly fast, Rust-based terminal that makes you and your team more productive at running, debugging, and deploying code and infrastructure.

Owner
Travis A. Wagner
full stack developer, designer, digital marketer, music producer.
Travis A. Wagner
Demo app duplicated in 5 languages (Go/JavaScript/Python/Ruby/Rust) showing how to go from source code to container image using melange+apko

hello-melange-apko ?? This repo contains an example app duplicated across 5 languages showing how to: Package source code into APKs using melange Buil

Chainguard 16 Jan 23, 2023
Real-time CLI level meter built in Rust.

Meter This is a very simple command line utility written in Rust for measuring the gain of a microphone. It displays the values in dBFS. This is usefu

Chris Burgess 16 Sep 8, 2022
This tool will profile official instances of OpenSUSE mirrorcache to determine the fastest repositories for your system

Mirror Magic tool to Magically make OpenSUSE Mirrors Magic-er This tool will profile official instances of OpenSUSE mirrorcache to determine the faste

Firstyear 30 Dec 22, 2022
Attempt to make a git profile switcher to switch profiles.

Git Profile Switcher █▀▀ █ ▀█▀   █▀ █░█░█ █ ▀█▀ █▀▀ █░█ █▀▀ █▀█ █▄█ █ ░█░   ▄█ ▀▄▀▄▀ █ ░█░ █▄▄ █▀█

Srikanth K 2 Sep 23, 2022
Overlay DPS Meter for Granblue Fantasy: Relink

gbfr-logs Experimental overlay DPS meter for Granblue Fantasy: Relink, based on the reverse engineering work from naoouo/GBFR-ACT. Screenshots DPS Ove

null 44 Mar 12, 2024
a chess engine written in rust. not even close to being done

Goals improve at the rust programming language. my first major project tought me how to do things in rust. I hope for this project to teach me how to

null 6 Apr 2, 2024
A few demos showing how to estimate projects using Monte Carlo simulations.

Agile Monte Carlo Simulations Demos This is the repository which accompanies the blog post "How to replace estimations and guesses with a Monte Carlo

Lucas F. da Costa 14 Jun 18, 2022
Custom module for showing the weather in Waybar, using the great wttr.io

wttrbar a simple but detailed weather indicator for Waybar using wttr.in. Installation Compile yourself using cargo build --release, or download the p

Yo'av Moshe 10 Apr 23, 2023
Nazuna - 🐦 Download Twitter videos using your terminal!

Nazuna ?? Download Twitter videos using your terminal! Installation Binary Download the desired file for your OS (Windows, Mac, Linux) from https://gi

Felipe Garcia 27 Nov 22, 2022
Update informer for CLI applications written in Rust 🦀

Update-informer Update informer for CLI applications written in Rust ?? Usage Add to Cargo.toml: [dependencies] update-notifier = "0.1.0" To check the

Grachev Mikhail 166 Dec 18, 2022