r/Scriptable • u/[deleted] • Sep 25 '20
r/Scriptable • u/NewsPlus1824 • Dec 25 '25
Script Sharing Release: Clean Lockscreen Calander+Reminders widget script
EDIT: Clarified instructions
UPDATE 12/27/2025: UPDATED to now include settings and lots of customization
Update 02/27/2026: UPDATED to fight iOS restrictions. Changed code relating to the picker, widget presentation, icloud dependency, and fixed the newly introduced ~24h crashing because of iOS 26
Update 05/19/2026: UPDATED to fix more Apple-induced problems :)
Why I made this: None of the current lockscreen calender event widgets fit my needs, my taste, or were too complicated/ gave me errors that I did not know how to solve. So, I, with the help of ChatGPT, created a script for this widget to solve my issues of forgetting things.
I think it turned out great. I’m sure it can be better optimized, but I find the functionality and clean aesthetic of this to work great for me.
People who are likely to miss important events, miss calendar events/reminders, or people who are busy will benefit from this script/widget. I initially made it for my girlfriend and I's usage, but I realized that others will benefit from it as well.
The widget is supposed to show 6 items for 7 days ahead, but it can be changed. Instructions on how to do that are after the directions below.
Directions to install:
Ensure you download and run the Scriptable app.
Paste the script code that is provided below into a new script in Scriptable
(Optional) - rename script to something like "Lockscreen Calendar+Reminders"
In Scriptable, tap the script to run it. You will see a button named "Reset Calendars". Tap it, read the message, and then tap continue.
Select calendars that will host events that you will want on your Lockscreen in the widget.
Once the calendars are selected, press "done." The Script will show a loading sign. Wait a few moments and then restart (FORCE CLOSE) the Scriptable app.
Once Scriptable is restarted, tap the Script and then when prompted to reset the calendars, press "No."
A preview of the events that will display on your lockscreen will show here. If you have a lot of reminders, this is a good time to purge through them to ensure you only have reminders that you would like to have on your lockscreen
Now that you know what will show on your Lockscreen, hold down (long press 1 finger) on your lockscreen until it shows a "Customize" button.
Press that "Customize" button.
Tap an open space in a rectangle where a widget should be, else remove some widgets or press the "add widgets" button to add the Scriptable widget.
Add the Scriptable app widget. It will show as "Run script." Tap the rectangular widget that is located on the right.
The Scriptable widget will populate on the lock screen as some text. Tap the gear "edit widget to select script"
For the script, tap on "Choose"
Choose the script that you pasted into the Scriptable app. If you chose a name for the script, choose that name. If not, choose the automatic name that was set when you created the script.
leave all of the other settings the same. Close out and the widget should populate on your lock screen.
All done.
Note: If you have a different font than what is default in IOS , then there may be issues with rendering the list. I'd recommend changing the front size in the settings.
If you have any questions, I may be able to assist you. I may make updates to this, I may not. It depends on what I find necessary.
Script code (Updated 05/19/2026):
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: red; icon-glyph: magic;
// ===============================
// Lock Screen Widget: Calendar + Reminders (May 19 2026 update to fix more Apple induced problems)
// ===============================
// DEFAULTS
// ===============================
const DEFAULT_LIST_ITEMS = 6
const DEFAULT_FONT_SIZE = 10
const DEFAULT_DAYS_AHEAD = 7
const DEFAULT_SHOW_END_TIME = false
const SETTINGS_FILE = "calendarWidgetSettings.json"
// ===============================
// FILE SYSTEM
// ===============================
const fm = FileManager.local()
const settingsPath = fm.joinPath(fm.documentsDirectory(), SETTINGS_FILE)
// ===============================
// LOAD SETTINGS
// ===============================
let settings = loadSettings()
let shouldPreview = false
// ===============================
// SETTINGS MENU
// ===============================
if (config.runsInApp) {
let menu = new Alert()
menu.title = "Settings"
menu.addAction("Preview List")
menu.addAction("Reset Calendars")
menu.addAction("Display Settings")
menu.addCancelAction("Close")
let choice = await menu.presentAlert()
if (choice === -1) {
Script.complete()
return
}
// ===============================
// PREVIEW
// ===============================
if (choice === 0) {
shouldPreview = true
}
// ===============================
// RESET CALENDARS
// ===============================
if (choice === 1) {
settings.calendars = await pickCalendars()
saveSettings(settings)
Script.complete()
return
}
// ===============================
// DISPLAY SETTINGS
// ===============================
if (choice === 2) {
let dmenu = new Alert()
dmenu.title = "Display Settings"
dmenu.addAction("Change Tomorrow Text")
dmenu.addAction("List & Font Settings")
dmenu.addAction("Days Ahead")
dmenu.addAction("Show End Time")
dmenu.addCancelAction("Cancel")
let dChoice = await dmenu.presentAlert()
if (dChoice === -1) {
Script.complete()
return
}
// Tomorrow Label
if (dChoice === 0) {
let saved = await promptTomorrowLabel(settings)
if (saved) {
saveSettings(settings)
shouldPreview = true
}
}
// List + Font
if (dChoice === 1) {
let saved = await promptListFontSettings(settings)
if (saved) {
saveSettings(settings)
shouldPreview = true
}
}
// Days Ahead
if (dChoice === 2) {
let saved = await promptDaysAhead(settings)
if (saved) {
saveSettings(settings)
shouldPreview = true
}
}
// Show End Time
if (dChoice === 3) {
let a = new Alert()
a.title = "Show End Time For Timed Events?"
a.message =
"All-day events will not be affected."
a.addAction("Yes")
a.addAction("No")
a.addCancelAction("Cancel")
let r = await a.presentAlert()
if (r !== -1) {
settings.showEndTime = (r === 0)
saveSettings(settings)
shouldPreview = true
}
}
}
}
// ===============================
// STOP IF NOT WIDGET + NO PREVIEW
// ===============================
if (
!config.runsInWidget &&
!config.runsInAccessoryWidget &&
!shouldPreview
) {
Script.complete()
return
}
// ===============================
// ENSURE CALENDARS
// ===============================
if (!settings.calendars.length && config.runsInApp) {
settings.calendars = await pickCalendars()
saveSettings(settings)
}
// ===============================
// DISPLAY VALUES
// ===============================
const MAX_ITEMS = settings.listItems ?? DEFAULT_LIST_ITEMS
const FONT_SIZE = settings.linkFontToList
? (MAX_ITEMS === 6 ? 10 : 11)
: (settings.fontSize ?? DEFAULT_FONT_SIZE)
const DAYS_AHEAD = settings.daysAhead ?? DEFAULT_DAYS_AHEAD
const SHOW_END_TIME =
settings.showEndTime ?? DEFAULT_SHOW_END_TIME
// ===============================
// DATE RANGE
// ===============================
const now = new Date()
const startOfToday = new Date(
now.getFullYear(),
now.getMonth(),
now.getDate()
)
const tomorrow = new Date(startOfToday)
tomorrow.setDate(tomorrow.getDate() + 1)
const endDate = new Date(startOfToday)
endDate.setDate(endDate.getDate() + DAYS_AHEAD)
// ===============================
// CALENDAR EVENTS
// ===============================
let calendars = (await Calendar.forEvents())
.filter(c => settings.calendars.includes(c.title))
let calendarEvents = []
if (settings.calendars.length) {
calendarEvents = (
await CalendarEvent.between(
startOfToday,
endDate,
calendars
)
).map(e => ({
title: e.title,
date: e.startDate,
endDate: e.endDate,
isAllDay: e.isAllDay,
type: "event"
}))
}
// ===============================
// REMINDERS
// ===============================
let reminders = await Reminder.allIncomplete()
let undated = []
let dated = []
for (let r of reminders) {
if (!r.dueDate) {
undated.push({
title: r.title,
type: "undated"
})
} else if (
r.dueDate >= startOfToday &&
r.dueDate <= endDate
) {
dated.push({
title: r.title,
date: r.dueDate,
isAllDay: !r.dueDateIncludesTime,
type: "reminder"
})
}
}
// ===============================
// MERGE & SORT
// ===============================
let datedItems = [
...calendarEvents,
...dated
].sort((a, b) => a.date - b.date)
let items = [
...undated,
...datedItems
].slice(0, MAX_ITEMS)
// ===============================
// BUILD WIDGET
// ===============================
let widget = new ListWidget()
widget.setPadding(6, 6, 6, 6)
if (!settings.calendars.length) {
let t = widget.addText("No calendars selected")
t.font = Font.systemFont(FONT_SIZE)
t.textColor = Color.gray()
} else {
for (let item of items) {
// ===============================
// UNDATED REMINDERS
// ===============================
if (item.type === "undated") {
let t = widget.addText(item.title)
t.font = Font.systemFont(FONT_SIZE)
t.textColor = Color.white()
t.lineLimit = 1
continue
}
let isToday = isSameDay(item.date, startOfToday)
let isTomorrow = isSameDay(item.date, tomorrow)
let color =
isToday ? Color.white() : Color.gray()
let row = widget.addStack()
row.spacing = 6
let label =
isToday
? "Today"
: isTomorrow
? getTomorrowLabel(settings, item.date)
: formatDate(item.date)
let d = row.addText(label)
d.font = Font.systemFont(FONT_SIZE)
d.textColor = color
// ===============================
// TIME
// ===============================
if (!item.isAllDay) {
let timeString = formatTime(item.date)
if (SHOW_END_TIME && item.endDate) {
timeString +=
"–" + formatTime(item.endDate)
}
let t = row.addText(" " + timeString)
t.font = Font.systemFont(FONT_SIZE)
t.textColor = color
}
// ===============================
// TITLE
// ===============================
let title = row.addText(" " + item.title)
title.font = Font.systemFont(FONT_SIZE)
title.textColor = color
title.lineLimit = 1
}
}
// ===============================
// DISPLAY
// ===============================
if (
config.runsInWidget ||
config.runsInAccessoryWidget
) {
Script.setWidget(widget)
} else {
await widget.presentSmall()
}
Script.complete()
// ===============================
// SETTINGS FUNCTIONS
// ===============================
function defaultSettings() {
return {
calendars: [],
tomorrowMode: "tomorrow",
customTomorrowText: "",
listItems: DEFAULT_LIST_ITEMS,
linkFontToList: true,
fontSize: DEFAULT_FONT_SIZE,
daysAhead: DEFAULT_DAYS_AHEAD,
showEndTime: DEFAULT_SHOW_END_TIME
}
}
function loadSettings() {
if (!fm.fileExists(settingsPath)) {
return defaultSettings()
}
try {
return Object.assign(
defaultSettings(),
JSON.parse(fm.readString(settingsPath))
)
} catch {
return defaultSettings()
}
}
function saveSettings(s) {
fm.writeString(
settingsPath,
JSON.stringify(s)
)
}
// ===============================
// CALENDAR PICKER
// ===============================
async function pickCalendars() {
if (!config.runsInApp) {
return settings.calendars ?? []
}
let picked = await Calendar.presentPicker(true)
return picked.map(c => c.title)
}
// ===============================
// DISPLAY SETTINGS PROMPTS
// ===============================
async function promptDaysAhead(s) {
let a = new Alert()
a.title = "Days Ahead"
a.addAction("Default (7 days)")
a.addAction("Custom")
a.addCancelAction("Cancel")
let r = await a.presentAlert()
if (r === -1) return false
if (r === 0) {
s.daysAhead = DEFAULT_DAYS_AHEAD
return true
}
let i = new Alert()
i.title = "Custom Days Ahead"
i.addTextField(
"Number of days",
String(s.daysAhead)
)
i.addAction("Save")
i.addCancelAction("Cancel")
if ((await i.presentAlert()) === 0) {
let val = parseInt(i.textFieldValue(0))
if (!isNaN(val) && val > 0) {
s.daysAhead = val
return true
}
}
return false
}
async function promptTomorrowLabel(s) {
let a = new Alert()
a.title = "Tomorrow Label"
a.addAction("Display As Date")
a.addAction("Display As \"Tomorrow\"")
a.addAction("Custom Text")
a.addCancelAction("Cancel")
let r = await a.presentAlert()
if (r === -1) return false
if (r === 0) {
s.tomorrowMode = "date"
return true
}
if (r === 1) {
s.tomorrowMode = "tomorrow"
return true
}
let i = new Alert()
i.title = "Custom Tomorrow Text"
i.addTextField(
"Text",
s.customTomorrowText ?? ""
)
i.addAction("Save")
i.addCancelAction("Cancel")
if ((await i.presentAlert()) === 0) {
s.tomorrowMode = "custom"
s.customTomorrowText =
i.textFieldValue(0)
return true
}
return false
}
async function promptListFontSettings(s) {
let a = new Alert()
a.title = "List & Font Settings"
a.addAction("Reset to Default")
a.addAction("Custom")
a.addCancelAction("Cancel")
let r = await a.presentAlert()
if (r === -1) return false
if (r === 0) {
s.linkFontToList = true
s.listItems = DEFAULT_LIST_ITEMS
s.fontSize = DEFAULT_FONT_SIZE
return true
}
s.linkFontToList = false
let i = new Alert()
i.title = "Custom Values"
i.message =
"Top: List Items\nBottom: Font Size"
i.addTextField(
"List Items",
String(s.listItems)
)
i.addTextField(
"Font Size",
String(s.fontSize)
)
i.addAction("Save")
i.addCancelAction("Cancel")
if ((await i.presentAlert()) === 0) {
s.listItems = Math.max(
1,
parseInt(i.textFieldValue(0))
)
s.fontSize = Math.max(
8,
parseInt(i.textFieldValue(1))
)
return true
}
return false
}
// ===============================
// UTILITIES
// ===============================
function isSameDay(a, b) {
return (
a.getFullYear() === b.getFullYear() &&
a.getMonth() === b.getMonth() &&
a.getDate() === b.getDate()
)
}
function getTomorrowLabel(s, d) {
if (s.tomorrowMode === "date") {
return formatDate(d)
}
if (
s.tomorrowMode === "custom" &&
s.customTomorrowText.trim()
) {
return s.customTomorrowText.trim()
}
return "Tomorrow"
}
function formatDate(d) {
return `${d.getMonth() + 1}/${d.getDate()}`
}
function formatTime(d) {
let h = d.getHours()
let m = d.getMinutes()
let am = h >= 12 ? "PM" : "AM"
h = h % 12 || 12
return m === 0
? `${h}${am}`
: `${h}:${m
.toString()
.padStart(2, "0")}${am}`
}Credit: u/mvan231 and rudotriton for the calendar selector
r/Scriptable • u/Sharn25 • Jul 30 '23
Widget Sharing SkyPage - A weather Widget
I simple weather widget for your iOS setup. I developed it based upon a concept of weather app designed by Viviana Zontag.
r/Scriptable • u/ComprehensiveSuit218 • Jul 06 '23
Request Would the app get an update with iOS 17 so that it is possible to create interactive widgets?
r/Scriptable • u/rumble_paradox • May 02 '23
Tip/Guide Scriptable with TypeScript for coding enthusiasts!
If you are sick of Javascript's inability to predict errors and love writing Scriptable scripts, I present a package I have made using npm: TypeScript typing for Scriptable Scripts! (Please bare in mind this is only available to use on a computer!).
This is a node library which you install into your package.json that implements TypeScript typing into the Scriptable library. This saves you a ton of time when debugging and making sure your script works since you have the power of types to catch onto these errors early on.
As said, this is an NPM/Node package that must be used in a computer:
https://www.npmjs.com/package/nios-scriptable
Any changes or further improvements are appreciated. Thank you and enjoy as much as I did!
r/Scriptable • u/PissBiggestFan • Mar 29 '23
Request Widget to track ESport from lockscreen
Here’s a quick visualization I made for a widget that keeps updated score of esport matches.
Does anything like this exists? I know there are apps that can send you notifications to keep track of the score, but is there any widgets that do it?
Thank you!
r/Scriptable • u/gerarts • Nov 20 '22
Help Backgrounds suddenly look unsharp since latest update
r/Scriptable • u/IllogicallyCognitive • Oct 21 '22
Tip/Guide Table of the Scriptable Kit’s objects and classes and how they are used
| name | type | generates object(s) representing | properties used with | details of properties |
|---|---|---|---|---|
| Alert | class | an iOS alert notification | NA | all editable |
| args | object | NA | args | read-only |
| Calendar | object | an iOS calendar or reminder list* | generated object | some read-only, others editable |
| CalendarEvent | class | an iOS calendar event* | generated object | some read-only, others editable |
| CallbackURL | class | an x-callback-url | NA | no public properties |
| Color | class | a color or a pair of colors, including opacity | generated object | read-only |
| config | object | NA | config | read-only |
| console | object | NA | NA | no properties |
| Contact | class | an iOS contact* | generated object | some read-only, others editable |
| ContactsContainer | object | the contacts list for an account* | generated object | read-only |
| ContactsGroup | class | an iOS contacts group* | generated object | some read-only, others editable uses Contact.persistChanges |
| Data | object | a string, file, or image | NA | no public properties |
| DateFormatter | class | a map between dates and their text representations | generated object | all editable |
| DatePicker | class | an iOS date picker | generated object | all editable |
| Device | object | NA (returns primitives only) | NA | no properties |
| Dictation | object | NA (returns primitives only*) | NA | no properties |
| DocumentPicker | object | NA (returns primitives only*) | NA | no properties |
| DrawContext | class | a canvas | generated object | canvas format |
| FileManager | object | an iOS FileManager | NA | no properties |
| Font | class | an iOS font | NA | no public properties |
| Image | object | an image | generated object | read-only |
| importModule | function | NA | NA | NA |
| Keychain | object | NA (returns primitives only) | NA | no properties |
| LinearGradient | class | a linear gradient | generated object | all editable |
| ListWidget | class | an iOS list widget | generated object | all editable, uses Script.setWidget |
| Location | object | the current location information | NA | read-only |
| class | an email from current iCloud account | generated object | all editable | |
| Message | class | a text message/iMessage | generated object | all editable |
| module | object | NA | module | some read-only |
| Notification | class | a notification* | generated object | some read-only, most editable |
| Pasteboard | object | NA (returns primitives only) | NA | no properties |
| Path | class | paths for shape(s) | NA | no public properties |
| Photos | object | a photo | NA | no properties |
| Point | class | a point | generated object | both editable |
| QuickLook | object | NA | NA | no properties |
| Rect | class | a rectangle | generated object | some read only, some editable |
| RecurrenceRule | object | an iOS reminder and/or event recurrence rule | NA | no public properties |
| RelativeDateTimeFormatter | class | a method of describing one time relative to another | generated object | editable |
| Reminder | class | an iOS reminder* | generated object | some read-only, some editable |
| Request | class | an http request*** | generated object | some read-only, some editable |
| Safari | object | NA | NA | no properties |
| Script | object | NA | NA | no properties |
| SFSymbol | object | an SF symbol | generated object | read-only |
| ShareSheet | object | NA (returns primitives only) | NA | no properties |
| Size | class | width and height | generated object | editable |
| Speech | object | NA | NA | no properties |
| TextField** | object (prototype, not used directly) | NA | object generated by another** | all editable |
| Timer | class | a timer (not from the iOS app) | generated object | both editable |
| UITable | class | a table | generated object | only property editable |
| UITableCell | object | a table cell | generated object | all editable |
| UITableRow | class | a table row | generated object | all editable |
| URLScheme | object | NA (returns primitives only) | NA | no properties |
| UUID | object | NA (returns primitives only) | NA | no properties |
| WebView | class | an iOS WebView | generated object | only property editable |
| WidgetDate | object (prototype, not used directly) | NA | object generated by another** | all editable |
| WidgetImage | object (prototype, not used directly) | NA | object generated by another** | all editable |
| WidgetSpacer | object (prototype, not used directly) | NA | object generated by another** | all editable |
| WidgetStack | object (prototype, not used directly) | NA | object generated by another** | all editable |
| WidgetText | object (prototype, not used directly) | NA | object generated by another** | all editable |
| XMLParser | class | xml and a method to parse it | generated object | all editable |
Italics: has a method directly used with it that presents a UI
Bold: there is a method directly used to make changes on the phone outside scriptable, and without running such a method changes to properties of any Scriptable object will not change the corresponding iOS object
* via promise (when these objects are generated using a method instead of as an instance of a class using new, they are provided by a promise)
** entry name is for a prototype, objects that are actually used with the properties and/or methods are created by objects described in other entries (by a WidgetStack type object or directly by an object that is an instance of the ListWidget class in the case of the 5 Widget ones and an instance of the Alert class for TextField)
See this Calendar guide for an example of making changes outside Scriptable both directly with one of the Calendar object’s methods and by saving changes made using a generated object’s properties. Also, Calendar.presentPicker() is an example of a direct method to generate a UI. Finally, it demonstrates how the kit’s objects that generate objects via a promise* work.
See Alerts for Dummies for an example of presenting a UI using a method of a generated object and more generally of using a class. This also shows a basic example of using an object generated by an instance of a class** (a TextField).
r/Scriptable • u/Hiderone_ • Aug 20 '22
Widget Sharing Covid Graph Widget

This Widget shows a graph of Covid cases for the last 8/15 days of the selected country.
See the full documentation on the GitHub repository.
r/Scriptable • u/wherebdbooty • Jul 28 '22
Script Sharing Here is a nearly stock calendar widget with month view and upcoming events
r/Scriptable • u/eXtendedZero • Jul 20 '22
Widget Sharing WhereIsWebb - Minimalist widget that show major deployment/commissioning schedule phases, its current deployment/commissioning state and status of that state James Webb space telescope.
r/Scriptable • u/[deleted] • Oct 03 '21
News New 1.6.10 update: SFSymbols fix!
Multicolor SFSymbols are now shown correctly again. No more black only !
r/Scriptable • u/FifiTheBulldog • Jul 28 '21
Tip/Guide How to Return to the Home Screen
To return to the home screen in a script, call this undocumented method:
App.close()This has the same effect as pressing the home button/swiping up (depending on your device). This is also equivalent to the hacked “Open App: SpringBoard” action in Shortcuts, the “Return Home” action in Toolbox Pro, and now, as seen in iOS 15.0 developer beta 4, a built-in Shortcuts action called “Return to Home Screen.” The best part is, this method doesn’t require going through Shortcuts or crashing Scriptable at all.
This only works in scripts run from the app on iOS. It has no effect on macOS, and with the Run Script action in Shortcuts, it starts running but never seems to finish (so you have to stop the shortcut manually).
Credit goes to u/marcusrbrown for discovering this!
Backstory
A few months ago, u/marcusrbrown was experimenting with logging the global object to the console, and he noticed an undocumented object called “App” that is accessible to scripts. Upon futher examination, he found that App has a single method called close(), which, when called, takes you to the home screen.
Marcus shared his findings on this subreddit’s Discord server back in April, but it got buried in the chat. (I sort of feel bad about that in hindsight.) He mentioned it again roughly two months later, and this time we noticed it.
u/Rhinozz_the_Redditor asked Simon on Twitter about App.close():
https://cdn.discordapp.com/attachments/760937325189529724/844608193505132556/unknown.png
Simon acknowledged that this API exists, but indicated that it is intentionally undocumented to discourage people from relying on it as we would the documented APIs:
https://cdn.discordapp.com/attachments/760937325189529724/844745852606218260/image0.png
So, if this is helpful for your scripts, it’s there for you to use!
As a side note, when Marcus brought this up for the second time, a comment from u/mvan231 prompted me to start looking at the global object myself and hunting for other undocumented APIs in Scriptable. It ended up being a fascinating dive into the rabbit hole of how Scriptable works. I will be posting my findings in a series of posts, coming in the next few days. What I found is nowhere near as useful for writing actual scripts as App.close(), but it has been very useful for satisfying my curiosity.
r/Scriptable • u/gojailbreak • Feb 28 '21
How can I make both of these display the same temp?
r/Scriptable • u/Cheungg • Dec 24 '20
Help Could someone help me add the daily weather feature in the middle section and move the current to the left
r/Scriptable • u/[deleted] • Nov 21 '20
Widget PAYBACK Points
Hi,
i have created a new Widget which shows you your PAYBACK Points.
PAYBACK is the largest locality program in Germany.
You will find the widget on https://widget-hub.app
Regards
r/Scriptable • u/Juniorchen • Oct 24 '20
Script You can view popular league football game tables now, the script:https://github.com/Juniorchen2012/scriptable/blob/master/football%20.js
r/Scriptable • u/cartersun7 • Oct 01 '20
Help Faster refresh?
Is it possible to make the auto refresh faster on scriptable? I understand that it currently updates every 6-11 mins, but let’s say you wanted to display the time, or live sports scores, the 6-11 minute refresh wouldn’t really cut it. Is there a way to refresh every few seconds? Would this take up a ton of space/processing power on my phone?
r/Scriptable • u/Helpful-Computer2307 • Mar 18 '26
Script Sharing Full-Weatherline-Widget, scriptable emulator

I’ve been a long-time user of Scriptable, and especially of Full Weatherline Widget by italoboy:
https://github.com/italoboy/Full-Weatherline-Widget
For a long time, I wanted to really understand the widget and be able to modify it myself.
Now I finally took the time to rework the code. With some help from AI, I also built a small emulator for it, because developing by constantly copying text files back and forth between a PC and iOS just doesn’t feel right.
What changed
The script has been updatet and refactored
It now uses only the OpenWeather API in version 3.0
It currently supports de-DE and en-EN
About the emulator
The emulator is only meant to run this widget. Other widgets may fail if they rely on different Scriptable APIs. This is why I do not want to distribute it as a standalone project.
I simply do not have the time to support your edge cases.
Want to try it?
You can see it running directly in a GitHub Codespace from my repository:
https://github.com/HeikoGr/Full-Weatherline-Widget
Press "," while on the repository page to open it in Codespaces.
Then wait for everything to start up.
After that, open package.json, right-click the preview script, and choose Run Script.
A new browser window should open and show the emulated Scriptable widget view.
Limitations
It is not pixel-perfect, and it probably never will be, as long as the original icons and fonts are not publicly available.
r/Scriptable • u/iLuki • Sep 15 '24
Script Sharing Created a widget for teachers to track their worked hours to see a weekly/monthly sum. I learned that you could use iOS Shortcuts to gather inputs from the user which can be forwarded as parameters to the script. With this you can basically build a fully interactive app. Man i love Scriptable!
r/Scriptable • u/EternalFuriousBreeze • May 12 '23