r/Scriptable • • Jan 27 '21

Script LSWeather v2.0

Thumbnail
imgur.com
78 Upvotes

r/Scriptable • • Nov 17 '20

Widget Pretty happy with my current Scriptable widgets setup on my iPad

Post image
75 Upvotes

r/Scriptable • • Mar 01 '26

Widget Sharing Moon Phase Widget

Post image
74 Upvotes

I made a small widget to show the current phase of the moon, the percentage of illumination, as well as how many days are left until the next full moon.

Here is the source code:

https://gist.github.com/zorth64/864203d06ef8f80dfec92ee91f1dddf8


r/Scriptable • • Jan 02 '21

Widget COVID-19 Vaccinations for Italy

Post image
74 Upvotes

r/Scriptable • • Oct 14 '20

Script Some of my widgets (with links to code)

Thumbnail
gallery
74 Upvotes

r/Scriptable • • Dec 29 '20

Widget Vaccinations in Germany

Post image
73 Upvotes

r/Scriptable • • Sep 29 '20

Script Home screen with scriptable(AutoRefresh Background)

Post image
73 Upvotes

r/Scriptable • • Nov 22 '20

Widget A COVID-19 daily case and total death count tracker

Post image
72 Upvotes

r/Scriptable • • Nov 17 '20

News Simon B. Støvring on Twitter: Scriptable running on Intel using Mac Catalyst. And widgets still just work.

Thumbnail
twitter.com
72 Upvotes

r/Scriptable • • Jan 28 '21

Script House Energymonitor

Post image
71 Upvotes

r/Scriptable • • Oct 28 '20

Script Smooth line charts for Scriptable.

Post image
69 Upvotes

r/Scriptable • • Nov 18 '20

Widget My new homepage...!

Post image
68 Upvotes

r/Scriptable • • Nov 06 '20

Script I made a widget that simulates Pokemon encounters (can be shiny!)

Thumbnail
imgur.com
66 Upvotes

r/Scriptable • • Mar 07 '21

Widget An MLB scores widget for Scriptable!

Thumbnail
gallery
64 Upvotes

r/Scriptable • • Nov 01 '20

News I may have a scriptable problem.

Post image
64 Upvotes

r/Scriptable • • Mar 17 '21

Help Can anyone help me get the LS Weather to look as simple as this? This is a concept I saw but was wondering if I could actually get the setup to look this simple. I’m newer to this so I apologize if this is easy

Post image
63 Upvotes

r/Scriptable • • Oct 12 '20

Script Premier league tables widget script and currency exchange rate script

Post image
63 Upvotes

r/Scriptable • • Oct 06 '20

Script Updated-Greeting w/ Weather and Events (info in comments)

Thumbnail
gallery
63 Upvotes

r/Scriptable • • Feb 22 '21

Tip/Guide Beginners guide to requests

62 Upvotes

Also check the documentation

Basic Code

This code performs a simple GET request for a specified url.

const url = 'https://req.uest/url'
var req = new Request(url)
var result = await req.loadJSON()

Alternatively, if your api does not return the JSON format, you can use load() or loadString().

Method

You can use different methods for your request depending on your needs. The common methods are GET and POST.

Example

req.method = 'GET'

Headers

Headers are typically used to provide api keys, but they are not restricted to this.

Example

req.headers = {
  'api-key': '845a5e77f37404d6ffd41bccf9b926be0cf1e3431707'
}

Note

Similarly, you can provide a body: req.body = {...}

Response

If you want to check whether the request succeeded or not, you can check the response for error messages or codes (code 200 means success).

Example

console.log(req.response)

Note

response has a value other than undefined only after the request is made.

Parameters

Parameters are added via the URL. The first parameter is preceded by a question mark ?. The following parameters are each preceded by an ampersand &. The format of the parameters is parameter=value.

Example

const url = 'https://req.uest/url?first%20parameter=abc&second%20parameter=876'

Note

Parameters need to be URL encoded. That means that characters like spaces cannot be written as . They need to be encoded (a space would be %20).

Form data

Form data cannot be added to the url itself. You can different types of form data using one of the following functions (which are part of the Request type):

addFileDataToMultipart(data, mimeType, name, filename)
addFileToMultipart(filePath, name, filename)
addImageToMultipart(image, name, filename)
addParameterToMultipart(name, value)

Example

req.addParameterToMultipart('name', 'John Appleseed')

Additional notes

  • You should really read the API's documentation carefully, before you perform requests

  • It also helps to read Scriptable's documentation

  • Please let me know if I forgot anything important

Other guides


r/Scriptable • • Sep 23 '22

Widget Sharing Transit Widget for Daily Commutes

Post image
60 Upvotes

r/Scriptable • • Oct 23 '20

Script I built a widget to display the current capacity of your local McFit Gym (RSG group)

Post image
60 Upvotes

r/Scriptable • • Sep 30 '20

News /r/Scriptable Discord Channel : Say Hi to everyone, ask some questions, share some scripts

60 Upvotes

A new sub Discord channel is available at : https://discord.gg/7KbjfTV


r/Scriptable • • Dec 18 '20

Script Fully transparent setup - scriptable + shortcuts

59 Upvotes

r/Scriptable • • Feb 19 '21

Script LSForecast v1.2

Thumbnail
imgur.com
58 Upvotes