dracula / tmux

🧛🏻‍♂️ Dark theme for tmux
https://draculatheme.com/tmux
MIT License
664 stars 311 forks source link

feat: Added plugin to show CGM data from libeview api #275

Closed steinbrueckri closed 3 months ago

steinbrueckri commented 4 months ago

Add Script to Monitor Blood Glucose Levels

Motivation

I was recently diagnosed with Type 2 Diabetes, and I wanted a way to keep a close eye on my blood glucose levels while working. Since I am an avid user of tmux and have been using the dracula-tmux theme for a while, I thought it would be a great idea to integrate a script that displays my glucose levels directly in tmux. This script helps me manage my diabetes more effectively by keeping this vital information always visible.

Features

How It Works

  1. The script loads configuration settings from ~/.tmuxlibre.conf.
  2. If the configuration file does not exist, it creates a default one and exits, prompting the user to configure it.
  3. The script checks the cache for recent data.
  4. If the cache is outdated, it logs into the LibreView API and fetches new data.
  5. The script parses the data and determines the glucose trend.
  6. Finally, it outputs the glucose level and trend for display in the tmux status bar.

Dependencies

Note: This script uses an unofficial API to fetch glucose data from LibreView.

steinbrueckri commented 3 months ago

Bump: @danerwilliams @ethancedwards8 can you may be take a look at this PR?

ethancedwards8 commented 3 months ago

Wow. Let me just say, thank you for all your work into this PR. Thank you for bumping this.