A simple .NET weather API for SketchyBar that displays weather info in your macOS menu bar.
- Get a free API key from OpenWeatherMap
- Set the environment variable:
export API_KEY_WEATHER="your_api_key_here"
- Run with Docker:
docker-compose up -d
Or run locally:
dotnet runCopy 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 --reloadThe 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().