Skip to content

Instantly share code, notes, and snippets.

// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-purple; icon-glyph: image;
// This widget was complied by Geoffrey Martin (@GeoffreyDMartin) and uses multiple ideas and scripts from the Scriptable Forums at talk.automators.com.
// The "transparency" portion of the script from using code from a widget created by Max Zeryck @mzeryck (see https://gist.github.com/mzeryck/3a97ccd1e059b3afa3c6666d27a496c9)
// The weather portion of the script was taken from ImGamez (see https://gist.github.com/ImGamez/a8f9d77bf660d7703cc96fee87cdc4b0)
@rudotriton
rudotriton / scriptable-calendar-widget.md
Last active August 31, 2024 01:29
Customizable iOS Calendar widget in Scriptable

Scriptable Calendar Widget

scriptable calendar

For ease of maintainability this project has moved from this gist to its own repository. You can go and visit it there.

@mzeryck
mzeryck / mz_calendar_widget.js
Last active August 29, 2021 14:40
A Scriptable widget that shows upcoming calendar events to mimic the built-in Calendar widget, with some modifications.
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: red; icon-glyph: calendar-alt;
// This widget was created by Max Zeryck @mzeryck
// Note: before using this script in a widget, change const TEST_MODE to true and run it in the Scriptable app.
// The app will prompt you to give calendar access, and then show a preview of the widget.
// Make sure to change it back to const TEST_MODE = false prior to adding it to a widget. Happy coding!
@marco79cgn
marco79cgn / simpsonsWidget.js
Last active March 28, 2023 10:28
A Scriptable widget which shuffles a random Simpsons episode and plays it on Disney+ upon interaction
let openWith = args.widgetParameter
let widget = new ListWidget()
widget.setPadding(8, 10, 5, 10)
widget.backgroundColor = new Color("#111E6C")
await loadImage()
await getRandomEpisode()
Script.setWidget(widget)
Script.complete()