Skip to content

feat: add weather widget with popup and hourly forecast#102

Open
bottlebrushes wants to merge 2 commits intomocki-toki:mainfrom
bottlebrushes:feature/weather-widget
Open

feat: add weather widget with popup and hourly forecast#102
bottlebrushes wants to merge 2 commits intomocki-toki:mainfrom
bottlebrushes:feature/weather-widget

Conversation

@bottlebrushes
Copy link
Copy Markdown

Summary

Add a weather widget using the Open-Meteo API with a detailed popup showing hourly forecast.

Features

Widget

  • Current temperature display with condition icon
  • Uses Open-Meteo free API (no API key required)
  • Automatic location detection via CoreLocation

Popup

  • Location name via reverse geocoding
  • Current temperature, condition, and high/low temps
  • Hourly forecast with temperature and precipitation %
  • "Open Weather" button to launch macOS Weather app
  • Matches Barik's dark theme style

Test plan

  • Verify weather widget shows current temperature
  • Click widget to open popup
  • Verify hourly forecast displays correctly
  • Verify location name shows correctly
  • Click "Open Weather" to verify it opens Weather.app

🤖 Generated with Claude Code

bottlebrushes and others added 2 commits January 3, 2026 14:03
…aying

Replace aggressive 0.3s AppleScript polling with DistributedNotificationCenter
observers for instant media updates.

Changes:
- Listen to Spotify (`com.spotify.client.PlaybackStateChanged`) and
  Apple Music (`com.apple.Music.playerInfo`) notifications
- Only poll every 1s for position updates (progress bar) when playing
- Fetch track info on-demand when notifications fire
- Add initial fetch on startup to populate current state

This significantly reduces CPU usage and provides instant UI updates
when track changes or playback state changes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add WeatherWidget displaying current temperature and weather icon
- Use Open-Meteo free API (no API key required)
- Dynamic SF Symbols based on weather conditions (sun, clouds, rain, snow, etc.)
- Location-based weather with CoreLocation
- Click to open macOS Weather dropdown
- Add SystemUIHelper for triggering system UI elements
- Add required entitlements for location and network access

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant