This is a simple JavaScript widget designed for the Scriptable app on iOS. The widget displays weather information. It uses the OpenWeatherMap API to fetch weather data.
- Displays current temperature
- Shows atmospheric pressure
- Displays wind speed and direction
- Shows sunrise and sunset times
- Provides a weather description (e.g., clear, rainy, stormy)
- Scriptable App: Download and install the Scriptable app from the App Store.
- OpenWeatherMap API Key: Obtain your API key from OpenWeatherMap.
- Font: Install the
Modern Dot Digital-7
font on your device. - Location Access: Allow the Scriptable app to access your location while the app is running and in widgets, or provide your latitude and longitude directly in the script.
- Clone or Download this repository.
- Copy the Script: Copy the content of
weather-widget.js
to your clipboard. - Open Scriptable: Open the Scriptable app on your iOS device.
- Create New Script: Tap the "+" button to create a new script and paste the copied content.
- API Key Configuration: Replace
YOUR_API_KEY
in the script with your OpenWeatherMap API key. - Location Configuration (Optional): If you prefer not to use device location, set your latitude and longitude in the script.