Skip to content

Shows Weather Datas in Widgets on the iOS Lockscreen via Scriptable-App

Notifications You must be signed in to change notification settings

iamrbn/Inline-Weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inline-Weather

Script which shows weather datas from the openweathermap-api in Scriptable for iOS in the lockscreen-widgets.

ATTENTION!

The current script version (1.1) uses now the API v3.0 endpoint. Because openweathermap is shutting down version 2.5 on Oct. 14.

First of all, you need an API-key by OpenWeather out of your account. If you doesn't have an accountone, click here to sign up.

Features

Available Widget Sizes (Lockscreen)

  • Inline (current weather)
  • Circular (current weather)
  • Rectangular (current & forecast)

Tabel View (In App)

  • Current & Forecast
  • Clickable rows
  • Detailview of each day
  • Dialog, that shows the city ID
  • Quick access to this GitHub Repo in the footer

Detailview

Change Location

Config

Script Parameter

const unit = 'metric' //Units of measurement: 'standard', 'metric' and 'imperial' units are available.
const unitSymb = '°' //Celsius
const unitSpeed = 'km/h'
const language = 'de' //learn more: https://openweathermap.org/current#multi
const standardParameter = '30;current'

Your API-Key

The script asks you at the first run for your openweathermap API-Key. It saves it in the 'Inline Weather' Directory at the Scriptable iCloud Folder as JSON file. So it wont go lost after script updates.

Widget Parameter

Default value if null: 30;current The number at the beginning means the refresh intervall of the widget. The second value controls which datas will be shown (current or forecast)

Selfupdate Function

The Script updates itself1

On the first run

It downloads a module from this github repo and saves it in the "Inline Weather" directory.

iCloud Drive/
├─ Scriptable/
│  ├─ Inline Weather/
│  │  ├─ module.js
------------------
│  │  ├─ apiKey.json <-- your successfully saved API-Key


Footnotes

  1. Function is written by the amazing @mvan231

Releases

No releases published

Packages

No packages published