Git Product home page Git Product logo

scriptable's Introduction

scriptable

Playing around with various scripts for the Scriptable app on iOS.

Widgets List

DiscordWidget

Displays useful information about your day in a Discord-themed widget!

Currently shows information such as:

  • Today's date
  • Weather (temperature, feels like, high, low, conditions) in your local area
  • Any upcoming events on your calendar

Please make sure to update WIDGET_CONFIGURATIONS to set things like your openweather.api API key, and to see other configurable variables, such as:

  • Banner color
  • Background colors
  • Icon

I would also reccommend getting the GenerateTransparentBackground script and using the output of that as the background for the Discord Widget. Then you can get a look like the screenshot below:

DiscordWidget

WordClockWidget

This widget displays the current (or most recently refreshed) time as a word clock. The widget can be customized to use a background photo, or background color; font name, size, and color, and other things. See WIDGET_CONFIGURATIONS for other configurable variables.

WordClockWidget

NOTE

Due to the delay in the Scriptable widget refresh, the time displayed might be a bit behind... there is really no workaround for this issue at this time.

MultiDayCalendarWidget

This widget displays events from your calendars for the next given number of days, with a customizable window of the number of hours to show. The number of days, number of hours, and the starting hour, are configurable within the script. The configuration also allows for filtering events from certain calendars. Please use the LARGE widget size for best display results.

All widget configurations/behaviors can be found by updating the WIDGET_CONFIGURATIONS (comments and descriptions included in the code).

MultiDayCalendarWidget MultiDayCalendarWidgetSetup

CalendarEventsWidget

This widget displays all-day events, and any upcoming events within the moving window of the next 6 hours (number of hours is configurable). Also allows for filtering events from certain calendars, and will open the calendar of your choice on-press.

All widget configurations/behaviors can be found by updating WIDGET_CONFIGURATIONS (comments and descriptions included in the code).

CalendarEventsWidget CalendarEventsWidget2

Set Up

Configure the widget set-up on your homescreen, as shown in the below screenshot: CalendarEventsWidgetSetup

TODO

Multiple events for an hour are currently drawn on top of each other. Need to reduce the width of events based on how many are in each hour.

DailyLogWidget v2 (AggregatedDailyLogs)

And updated look to the DailyLogWidget, showing a data grid of activites completed for each day.

Features:

  • Customizable list of activites
  • Customizable number of days to show in the grid
  • Automatically creates a new log entry for the new day at 5 AM (time is customizable)
  • Clicking on Widget brings up a dialog to update activites completed or not completed
  • The data for each day is saved in iCloud (JSON format), where the filename is in the format YYYY_MM_DD

AggregatedDailyLogs

DailyLogWidget

Customizable list of things and colors. Creates a new "log" for each day at 5 AM (time is also customizable for when you want the new day to start).

Click on the Widget to bring up a dialog to update things you've completed for the day. The data for each day is saved in iCloud (JSON format), in it's own file, where the filename name is in the format YYYY-MM-DD.

DailyLogWidget

TerminalWidget

Inspired by evandcoleman, but re-written for my own data.

Currently, this widget shows information about:

  • next calendar event
  • next work calendar event
  • weather
  • location
  • days until period start/end
  • device stats (battery and screen brightness)

TerminalWidget

Cache

Copied from evandcoleman. This is used to cache values for the TerminalWidget, DailyLogWidget.

scriptable's People

Contributors

alexinabox avatar diskoteer avatar thehappydinoa avatar yaylinda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scriptable's Issues

Calendar events not showing

For some reason the widget says “no upcoming events” even when there are upcoming events. Scriptable has been given to Scriptable to access calendar...I changed the const at the top of the script to the names of my calendars and double checked that I didn’t make a typo.

TerminalWidget.js Event Calendar TO DO defination

About the PERSONAL_CALENDAR_NAME & WORK_CALENDAR_NAME, what is the format that to define iPhone calendar ? I input the '' with my calendar name, but it did not detect the iPhone calendar properly. Possible to advices the event calendar define format ?

Line 6:65

Says j able to run because icould isnt on or something. It is on still not working

AggregatedDailyLogs wrong date in file name

Hey,

first of all great work :)! I was playing a little around with your AggregatedDailyLogs script. When I checked the saved json files I recognized that the date in the file name is one month behind. Today is the 2021_11_02 but the file for today is named 2021_10_02.

I tried to find the bug but I was not really successful. Please find attached two screen shots from yesterday that should make it more clear what I mean:

IMG_2016

IMG_2017

Error on line 193:46

2021-09-07 20:48:45: Error on line 193:46: TypeError: undefined is not an object (evaluating 'data.current.sunset')

Confused

What do you do with the cache file? I found it but what do I do with it?

Multi-Cal events not showing at the top

I use both your single and multiple day calendars. The single works fine, but the multiple day calendar won’t show current ongoing events.
As in, if there are events from 10-12 and it is 10:30, it won’t show at all, on any day.
But everything else shows fine.
Also, everything does show if I change the start time from -1 to any other number.
So I assume the issue is in the current time function.

Error on Line 254:46

Its the same bug as 193:46 but on a Newer version. I have the API Code In the ‘TODO’ spot I don't know why it isn't working.

Device: Iphone 14 Pro

2023-12-31 16:37:01: Error on line 254:46: TypeError: undefined is not an object (evaluating 'data.current.sunset')

I can't run TerminalWidget

Hi, when I run TerminalWidget on Scriptable I have this error:
Error on line 50:27: No file to import at Cache.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.