Skip to content

Askath/sketchyweather

Repository files navigation

SketchyWeather 🌤️

A simple .NET weather API for SketchyBar that displays weather info in your macOS menu bar.

SketchyBar Weather Integration

Setup

  1. Get a free API key from OpenWeatherMap
  2. Set the environment variable:
    export API_KEY_WEATHER="your_api_key_here"
  3. Run with Docker:
    docker-compose up -d

Or run locally:

dotnet run

SketchyBar Integration

Copy the scripts to your SketchyBar config:

cp -r sketchy/items/* ~/.config/sketchybar/items/
cp -r sketchy/plugins/* ~/.config/sketchybar/plugins/
chmod +x ~/.config/sketchybar/items/weather.sh
chmod +x ~/.config/sketchybar/plugins/weather.sh
sketchybar --reload

Usage

The API runs on localhost:8080/weatherforecast and returns:

{
  "name": "Holzwickede",
  "temp": 15.3
}

To change the location, edit Program.cs and modify the city name in getLocation().

About

Small Sketchybar Weather Item

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors