Moti is a macOS menu bar application designed with SwiftUI, leveraging WeatherApi to provide real-time weather updates. This lightweight and user-friendly app displays the current temperature and weather conditions directly in your menu bar, with an intuitive icon for quick reference. When clicked, it opens a detailed 3-day weather forecast.
- Real-Time Weather Updates: Displays the current temperature and weather conditions directly in the menu bar.
- 3-Day Weather Forecast: View detailed weather predictions for the next 3 days, including high and low temperatures.
- Weather Icons: The menu bar icon changes based on the current weather (e.g., sun, cloud, rain, snow).
- Customizable Location: Automatically fetches weather based on your current location, or set a custom location.
- Lightweight and Efficient: Runs seamlessly in the background without interrupting your workflow.
- macOS 14 or later
- Xcode 14 or later
git clone https://github.com/peterdsp/moti-app.git
cd moti-app
- Open
Moti.xcodeproj
in Xcode. - Replace placeholders in the code with your WeatherApi API, go to WeatherManager.swift-> private let apiKey = HERE PUT YOUR API KEY.
- Set the
Signing & Capabilities
to your developer account.
- Build and run the project in Xcode.
- Enable Location Services for the app. This allows the app to fetch weather data based on your current location.
- The app will appear in the menu bar with the current weather conditions.
- Download the app from Gumroad.
- Move the app to your Applications folder.
- Open the app. It will appear in the menu bar.
- Enable Location Services for the app. This allows the app to fetch weather data based on your current location.
- Close the app and reopen it to ensure that all settings are applied.
- Optionally, you can add the app to your Login Items so that it starts automatically when you log in to your Mac.
- Menu Bar Icon: Click the temperature or weather icon in the menu bar to view the 5-day weather forecast.
- Refresh: Right-click on the menu bar icon and select “Refresh” to manually update the weather information immediately.
- About: Right-click on the menu bar icon to view information about the app.
Contributions are welcome! Please fork this repository, create a new branch, and submit a pull request with your changes.
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature
). - Push to the branch (
git push origin feature/YourFeature
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
- Inspired by the need for a clean, efficient way to check the weather without opening a full app.
- Thanks to Apple's WeatherKit for providing robust weather data.