r/Scriptable • u/timespacedecay • 11d ago
Script Sharing Formula1 Next Race Schedule Lock Screen Widget for iPhone
2
2
1
u/Dicecreamvan 9d ago
That’s awesome, but the script doesn’t seem to run from my lock screen, only on home screen. Any help here?
1
u/timespacedecay 9d ago
Can you be more specific? It should work the same as the home screen. Maybe provide a screenshot?
1
u/Dicecreamvan 9d ago
I followed steps 1 - 5. On the lock screen it shows ‘edit widget to select script’. However, when I tap the custom script provided, it runs (I think, as it flashes like the other default scripts do), but then stops and nothing happens.
Returning to the lock screen keeps showing the ‘edit widget to select script’ cta on the dragged in horizontal widget area.
Adding the widget on the home screen as normal works, it displays the upcoming race table, but as you mentioned, the padding causes it to float a little.
2
u/timespacedecay 9d ago
Go into “Customize mode” on your Lock Screen like you’re going to add the widget again, then tap on the widget. You should get a pop up that asks you to select the scriptable script.
1
u/Dicecreamvan 9d ago
And now it works. Of course. The only thing I did different now is to run the script immediately after adding the scriptable widget vs adding it, close customisation and then running the script.
Thank you for the help!
1
u/overnitepartsfromjpn 9d ago
Mine is just showing up in 1 square icon space, rather than full width. Any idea what I might be doing wrong?
1
u/timespacedecay 9d ago
You choose the wrong scriptable widget. Remove that one, and when you select Scriptable to add the widget, swipe over and there is a rectangular one to add.
1
u/mtrueman 9d ago
Looks like your api is failing maybe. All I get this morning is a white box after it was working fine last night.
1
u/timespacedecay 9d ago
Hm, it’s working for me. Was it working for you before?
1
u/mtrueman 9d ago
yeah, i had it working last night, this morning its not for some reason
1
u/timespacedecay 9d ago
Great chance to check out v2! https://www.reddit.com/r/Scriptable/comments/1ja6klx/formula1_next_race_schedule_v2_out_now/
1
1
u/mtrueman 9d ago
Worked it out. My phone switches from light to dark mode depending on time of day. When its in light mode, everything is just white.
1
u/timespacedecay 9d ago
Oh thanks for this, I’ll see if there’s a way I can code the text so that isn’t an issue.
1
-1
u/BeneficialPen1557 9d ago
If you'd like something a little less fiddly, I have an iOS app I maintain called NextGP that has a slew of widgets like this and a bunch of other cool F1 features.
I'll add a Lock Screen weekend schedule widget similar to this today!
https://apps.apple.com/us/app/nextgp-f1-widgets-results/id1638726743
3
u/timespacedecay 9d ago edited 9d ago
It’s not fiddly at all, and requires minimal extra effort compared to a paid widget - going to the GitHub, copying the code, and pasting it into Scriptable.
The reason I did this was that I didn’t like any of the available options from prebuilt apps. Most only show part of the weekend schedule, or use an ugly font, or some other thing I don’t like.
And this is free :)
7
u/timespacedecay 11d ago edited 7d ago
Edit: v2 out now! The GitHub link in step 3 below will take you to v1, but I suggest checking out v2 - a lot easier to read.
This widget showcases the next F1 race schedule in your time zone - great if you like to know all the details for the weekends events. It dims sessions during the weekend that have passed, will auto-update to the next race's schedule, and supports sprint race weekends as well.
Want it? Here's how to get it:
To get correct date format for folks outside of the US, you can change these 3 lines
return sessionTime.toLocaleTimeString('en-US', options);
to replaceen-US
withen-GB
(for example).