Coder Social home page Coder Social logo

ios-weather-widget's Introduction

image

Weather Widget for Scriptable (iOS)

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.

Features

  • 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)

Requirements

  1. Scriptable App: Download and install the Scriptable app from the App Store.
  2. OpenWeatherMap API Key: Obtain your API key from OpenWeatherMap.
  3. Font: Install the Modern Dot Digital-7 font on your device.
  4. 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.

Installation

  1. Clone or Download this repository.
  2. Copy the Script: Copy the content of weather-widget.js to your clipboard.
  3. Open Scriptable: Open the Scriptable app on your iOS device.
  4. Create New Script: Tap the "+" button to create a new script and paste the copied content.
  5. API Key Configuration: Replace YOUR_API_KEY in the script with your OpenWeatherMap API key.
  6. Location Configuration (Optional): If you prefer not to use device location, set your latitude and longitude in the script.

ios-weather-widget's People

Contributors

vsprog avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.