Built and ran as an iOS homescreen widget using the Scriptable app.
This widget takes an OpenWeatherMap API key to provide hourly, daily, and sunset/sunrise weather info. In addition, one section displays upcoming events from the Calendar app.
| // Corona Ampel Berlin Widget | |
| // | |
| // Copyright (C) 2020 by map <[email protected]> | |
| // | |
| // Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. | |
| // | |
| // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL | |
| // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | |
| // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER | |
| // IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE |
Built and ran as an iOS homescreen widget using the Scriptable app.
This widget takes an OpenWeatherMap API key to provide hourly, daily, and sunset/sunrise weather info. In addition, one section displays upcoming events from the Calendar app.
| // Variables used by Scriptable. | |
| // These must be at the very top of the file. Do not edit. | |
| // icon-color: gray; icon-glyph: magic; | |
| // Variables used by Scriptable. | |
| // These must be at the very top of the file. Do not edit. | |
| // icon-color: green; icon-glyph: magic; | |
| // dm Klopapier & Mehl Widget | |
| // | |
| // Copyright (C) 2020 by marco79 <[email protected]> | |
| // |
| // Variables used by Scriptable. | |
| // These must be at the very top of the file. Do not edit. | |
| // icon-color: yellow; icon-glyph: cloud; | |
| // Widget Params | |
| // Don't edit this, those are default values for debugging (location for Cupertino). | |
| // You need to give your locations parameters through the widget params, more info below. | |
| const widgetParams = JSON.parse((args.widgetParameter != null) ? args.widgetParameter : '{ "LAT" : "46.062" , "LON" : "13.242" , "LOC_NAME" : "Udine" }') | |
| // WEATHER API PARAMETERS !important |
This easy widget let's you see upcoming matches of your favourite football team.
competitionId variable (line 4) with your competition idteamId variable (line 5) with your favourite team id| // this Scriptable Widget is coded by Slowlydev (aka r/Sl0wly-edits, r/Slowlydev) and adapted by @marco79 | |
| const DEV_MODE = false //for developer only | |
| const DEV_PREVIEW = "medium" //for developer only (this script is specialy made for a medium sized widget) | |
| const API_KEY = "" // enter your openweathermap.com api key | |
| const FORECAST_HOURS = "3" | |
| const UNITS = "metric" //metric for celsius and imperial for Fahrenheit | |
| const CALENDAR_URL = "calshow://" //Apple Calendar App, if your favorite app does have a URL scheme feel free to change it |