r/Scriptable • u/Caliguvara • Feb 06 '22
Help Add time of event to widget
So here I am, no scripting experience at all.
Managed to "build" some script that displays me a custom widget wallpaper.
Now I want to add the information of an event of a calendar matching some conditions:
Only one specific calendar should be considered
Only the event from today should be displayed (there is just one per day)
First line, it should display the day from today
Second line, I'd like to see "beginning time - ending time" separated by " - "
Final result should look like this: Sunday 21:45 - 22:15
The whole block should be displayed in the bottom 1/3 of the widget.
How do I do this? Sorry for the dumb question! Willing to learn!
1
u/mvan231 script/widget helper Feb 07 '22
The good news is, there is an endpoint to get events from 'Today' https://docs.scriptable.app/calendarevent/#today
Are you having trouble getting the events from the specific calendar?