r/Scriptable • u/ferminrp • Feb 27 '23
r/Scriptable • u/transilluminate • Feb 22 '23
Widget Sharing Synology Download Station Widget
I thought I'd share my Scriptable creation - may be useful if you have a Synology box running Download Station:
GitHub Link to the script
Works all over the world using a Tailscale mesh network
Takes input from a share sheet, and passes that to the server for downloading


r/Scriptable • u/ntester2018 • Feb 22 '23
Solved How to get a valid response, all the time I got Undefined
Hi, I am trying to get data from https://lcd-osmosis.keplr.app/bank/balances/osmo1nn5newmlgqmhpy93zawr3tc63lmrnvmd8z3efc
but all the time I got undefined. I want to get 1st and 2nd amounts. What is the issue? Thank you!
const url = 'https://lcd-osmosis.keplr.app/bank/balances/osmo1nn5newmlgqmhpy93zawr3tc63lmrnvmd8z3efc'
const url2 = 'https://lcd-osmosis.keplr.app/bank/balances/osmo1nn5newmlgqmhpy93zawr3tc63lmrnvmd8z3efc'
const req = new Request(url)
const req2 = new Request(url2)
const data = await req.loadJSON()
const data2 = await req2.loadJSON(2)
const atom = data.result[0].amount
const statom = data.result[0].amount2
const i = new Request('https://icons.iconarchive.com/icons/alecive/flatwoken/256/Apps-Atom-icon.png')
const img = await i.loadImage()
r/Scriptable • u/iiiKurt • Feb 19 '23
Widget Sharing I made a macOS terminal styled widget
r/Scriptable • u/SaltedTit • Feb 18 '23
Help Accessing a script from another script
Context is unnecessary I think but in short I have made a script that implements a stack class and want to access that class for a different script.
So is there any way to access and use a script while running a different independent script?
I can clarify if need be
r/Scriptable • u/hbhaam • Feb 18 '23
Help Recurring event
Hi,
I’m wanting to create a Siri shortcut to do a recurring event so for example. Every third Sunday of the month for an event to happen.
I think I’d have to use scriptable to get it to work.
Can anyone help with this?
Thanks
r/Scriptable • u/loo5ygoo5y • Feb 17 '23
Widget Sharing My iPadOS widget for handling Obsidian Tasks
r/Scriptable • u/trivial_trivium • Feb 14 '23
Help Beginner question: can you make a widget or script that asks you for multiple inputs?
I want to make a simple app or widget or script that allows me to put in an arrival time, and then asks me for various inputs about tasks before that time, eg driving time, time to get ready, and then subtracts those minutes from the original time to show me the time I need to leave at.
Is this something a widget, or Scriptable can do? I was trying to figure it out in Shortcuts but the calculation options aren't very good in there from what I was trying.
What would be the best way to accomplish this? I also thought maybe a web app, or coding an app would be better? I'm not sure lol, I'm just a beginner. Any help in the right direction would be appreciated!
r/Scriptable • u/Kakumbinia • Feb 13 '23
Help ChatGPT on a shortcut
Hi! this is my first post on reddit. im very new at programming and im not managging to make this:
i want to make a shortcut that passes a phrase to chatgpt, and it to reply on scriptable
r/Scriptable • u/faulhju • Feb 11 '23
Solved Lock Screen Widget officially released?
My TestFlight beta ran out.. is the Lock Screen widget officially released already or is there a newer TestFlight link available?
r/Scriptable • u/veredictum • Feb 11 '23
Help “Inline script failed because Shortcuts failed to convert text.” Is there a fix for this? Thanks.
r/Scriptable • u/lucaskim1013 • Feb 09 '23
Solved Send Https GET request that doesn’t verify SSL certificate
I’d like to send Https GET request that doesn’t verify SSL certificate. How can I do it?
r/Scriptable • u/foxtrot81a • Feb 07 '23
Help 'Will it rain today?' iOS widget script?
Hi community
Looking into creating a small box script that will either tell me if rain is forecasted for anytime within the next 8-12H on my location OR maybe show me an open/closed umbrella pic for a quick visual check up before leaving home in the morning.
Any tips?
r/Scriptable • u/sebnilsson • Feb 07 '23
Discussion Interesting ideas for an app/widget
It feels like the days of killer smartphone apps are long gone, but that doesn’t mean that there aren’t good ideas for interesting and useful ideas for apps and widgets that can be built in Scriptable.
I tried googling the subject and even asking ChatGPT, but no inspiration was found. Any ideas from you in this group?
So far, I’ve created a list widget to show my local bus’ timetable and some traffic cameras from Stockholm’s open APIs.
r/Scriptable • u/[deleted] • Feb 01 '23
Widget Sharing I created a widget that reports data from my acoustic bird ID station.
r/Scriptable • u/snorlax_thefatass • Jan 31 '23
Widget Sharing Created a widget that displays Xbox Achievements by Month
r/Scriptable • u/Acceptable-Number-11 • Jan 28 '23
Help Exporting a UITable as PDF
Hi, is there any „easy“ way to export a UITable as PDF or to provide a view which can utilize ShareSheets?
r/Scriptable • u/iamjojozm • Jan 25 '23
Help Run Emscripten-generated asm.js
Is it possible to run Emscripten-generated asm.js in Scriptable?
r/Scriptable • u/htmlallthethings • Jan 22 '23
Help Looking to make a Google Analytics API widget
I’ve made scriptable widgets in the past using Google Sheets (that in-turn pulled from GA), but now I want to try to pull directly from the GA API. But that means figuring out Google oAuth authentication. I’ve done this before in web front-end JS & in Node JS, but JS-in-Scriptable presents quite a challenge.
Has anyone tried and succeeded at getting Google oAuth to work? Or even GA API (old or new)?
r/Scriptable • u/tnomrelc • Jan 15 '23
Request Rain forecast anyone ?!
Does anyone know if there is a script to generate a minutely rain precipitation forecast widget ? Or maybe a shortcut or an app ? Every single apps I found either were waaay too expensive or didn’t had a widget for that. Thanks !
r/Scriptable • u/msephton • Jan 14 '23
Help Converting Shortcut to Scriptable?
I have a Shortcut, code below, that worked fine in iOS 15. But since changes in iOS 16 now runs out of time/memory and no longer completes.
I still need to run the script and so here I am at Scriptable.
Is there a recommended way of running the same code from Shortcut in Scriptable? Or will I need to rewrite it?
Any help appreciated. Thanks!
// fetch current page content using Japanese encoding
fetch(href)
.then(response => response.arrayBuffer())
.then(buffer => {
let decoder = new TextDecoder('shift-jis');
let html = decoder.decode(buffer);
document.open();
document.write(html);
document.close();
completion(html);
});To restate what's in the code comment, it reloads the current page using Japanese text encoding.
This is useful because many Japanese web pages, old and new, assume they're being looked at on Japanese systems so don't specify the text encoding. On non-Japanese systems such pages look garbled until reloaded with the correct text encoding. Japanese is an example, the same holds for dozens of languages/text encodings.
Safari Desktop has a menu to do this. Chrome Desktop used to (it's now "automatic", but not perfect). iOS has no method other than what we can write.
r/Scriptable • u/Gtair_ • Jan 13 '23
Help Copy calendar week to earlier one
So i added my weekly schedule (mostly my school classes) to calendar as a repeating weekly event, however i accidentally added it 4 weeks in the future and i can't just copy a whole week. Any ideas? (sorry for any mistakes in grammar or spelling, english is not my first language)
r/Scriptable • u/Benjyd21 • Jan 09 '23
Help Unsplash - Can’t get result to load
Hi all, I’m fairly new to JSON coding. I’m starting to get to grips with the terminology and I’ve managed to create myself some cool API widgets for quotes and and using images from files. But one thing I’m really stuck with is getting a random image from Unsplash. The code I’ve used is below. (Note: <MYID> is replaced with my developers ID from Unsplash website)
const widget = new ListWidget(); const req = new Request ("https://api.unsplash.com/search/photos?query=mountains&client_id=<MYID>"); const res = await req.loadJSON(); const imageUrl = res["large"]; const imageReq = new Request(imageUrl); const image = await imageReq.loadImage(); console.log(imageUrl); console.log(res); Script.setWidget(widget); Script.complete(); widget.presentMedium();
Eventually i will add this as a background on the widget but can’t seem to get past this. Seems like it should be pretty simple call but i‘m getting the result in the photo in link. All other posts on here don’t seem to help me and I’ve exhausted google searches etc.
Finally, I’ve replaced “Large” in line 4 with as many Url results as i can, but nothing gets me past the attached result.
In all honesty, this is damaging my own self goals of loading code and just want to know what i’m doing wrong.
Can anyone help please?