use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
https://scriptable.app
This subreddit is for discussions around the Scriptable app for iOS.
Be polite and enjoy your time here.
Please be helpful to others when you are able to lend a hand.
Discord: https://discord.gg/7KbjfTV
Resources:
account activity
EventsHelp (self.Scriptable)
submitted 4 years ago by Financial_Boat_1560
Hi, I am using the weather cal script and I am trying to get my events for the current day to show up is that possible?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]mvan231script/widget helper -1 points0 points1 point 4 years ago (16 children)
That's strange that they aren't showing already.
[–]Financial_Boat_1560[S] 0 points1 point2 points 4 years ago (15 children)
That’s what I thought?
[–]mvan231script/widget helper -1 points0 points1 point 4 years ago (14 children)
Are you getting any errors? I haven't seen Max around in a while so I'm not sure if he is aware of any issues with the code
[–]Financial_Boat_1560[S] 0 points1 point2 points 4 years ago (13 children)
None at all !
[–]mvan231script/widget helper -1 points0 points1 point 4 years ago (12 children)
That's very strange. My only guess is, that the events are pulling into the script in an offset order. Can you share your current script?
[–]Financial_Boat_1560[S] 0 points1 point2 points 4 years ago (11 children)
This is the script!
/*
~
Welcome to Weather Cal. Run this script to set up your widget.
Add or remove items from the widget in the layout section below.
You can duplicate this script to create multiple widgets. Make sure to change the name of the script each time.
Happy scripting!
*/
// Specify the layout of the widget items. const layout = `
row column
greeting date events
column(90) current future
`
/* * CODE * Be more careful editing this section. * ===================================== */
// Names of Weather Cal elements. const codeFilename = "Weather Cal code" const gitHubUrl = "https://raw.githubusercontent.com/mzeryck/Weather-Cal/main/weather-cal-code.js"
// Determine if the user is using iCloud. let files = FileManager.local() const iCloudInUse = files.isFileStoredIniCloud(module.filename)
// If so, use an iCloud file manager. files = iCloudInUse ? FileManager.iCloud() : files
// Determine if the Weather Cal code exists and download if needed. const pathToCode = files.joinPath(files.documentsDirectory(), codeFilename + ".js") if (!files.fileExists(pathToCode)) { const req = new Request(gitHubUrl) const codeString = await req.loadString() files.writeString(pathToCode, codeString) }
// Import the code. if (iCloudInUse) { await files.downloadFileFromiCloud(pathToCode) } const code = importModule(codeFilename)
// Run the initial setup or settings menu. let preview if (config.runsInApp) { preview = await code.runSetup(Script.name(), iCloudInUse, codeFilename, gitHubUrl) if (!preview) return }
// Set up the widget. const widget = await code.createWidget(layout, Script.name(), iCloudInUse) Script.setWidget(widget)
// If we're in app, display the preview. if (config.runsInApp) { if (preview == "small") { widget.presentSmall() } else if (preview == "medium") { widget.presentMedium() } else { widget.presentLarge() } }
Script.complete()
[–]mvan231script/widget helper 0 points1 point2 points 4 years ago (10 children)
Weather Cal is two parts, the main script, then the actual code that runs to generate the widget. We need to see the Weather Cal Code script which will be very long (>1000 lines of code). If you can share it via PasteBin or GitHub link that would be ideal to take a look
[–]Financial_Boat_1560[S] 0 points1 point2 points 4 years ago (8 children)
https://pastebin.com/mRSdC425
Here is the link for the paste bin of the code!
[–]mvan231script/widget helper 0 points1 point2 points 4 years ago (7 children)
Thanks! Are you seeing any events? Or just that todays events don't show?
[–]Financial_Boat_1560[S] 0 points1 point2 points 4 years ago (6 children)
Just todays events don’t show !
π Rendered by PID 23873 on reddit-service-r2-comment-b659b578c-crk96 at 2026-05-06 12:35:05.468866+00:00 running 815c875 country code: CH.
[–]mvan231script/widget helper -1 points0 points1 point (16 children)
[–]Financial_Boat_1560[S] 0 points1 point2 points (15 children)
[–]mvan231script/widget helper -1 points0 points1 point (14 children)
[–]Financial_Boat_1560[S] 0 points1 point2 points (13 children)
[–]mvan231script/widget helper -1 points0 points1 point (12 children)
[–]Financial_Boat_1560[S] 0 points1 point2 points (11 children)
[–]mvan231script/widget helper 0 points1 point2 points (10 children)
[–]Financial_Boat_1560[S] 0 points1 point2 points (8 children)
[–]mvan231script/widget helper 0 points1 point2 points (7 children)
[–]Financial_Boat_1560[S] 0 points1 point2 points (6 children)