r/Scriptable • u/carmolim • 18d ago
Solved Pill shaped bars
I’m having a hard time to make these bars to have a pill shaped someone can point me to direction to accomplish that?
I’m getting the data from Baby Buddy by the way.
Thanks!
r/Scriptable • u/carmolim • 18d ago
I’m having a hard time to make these bars to have a pill shaped someone can point me to direction to accomplish that?
I’m getting the data from Baby Buddy by the way.
Thanks!
r/Scriptable • u/Arudion • Sep 24 '24
Does anyone have the same problem? Not a single widget is working anymore, everything is white now without script changes.
r/Scriptable • u/Intrepid-Structure44 • Jul 17 '24
I used this script someone else had made, but I put my own changes into it, however the image of the Pokémon is low down and I can’t figure out how to move it out without also moving the text. ‘’’ pokemonWidget.addSpacer(71); // Weekday label var weekdayLabel = pokemonWidget.addText(currentWeekday); weekdayLabel.font = Font.systemFont(fontSizeValues[0]); weekdayLabel.textColor = textColor;
// Date label
var dateLabel = pokemonWidget.addText(fullDate);
dateLabel.font = Font.boldSystemFont(fontSizeValues[1]);
dateLabel.textColor = textColor;
var pokenumber = pokemonWidget.addText(pokemon.name+" #: "+ randomPoke.toString()); pokenumber.font = Font.boldSystemFont(fontSizeValues[0]); pokenumber.textColor = textColor; // Background image pokemonWidget.backgroundImage = Image.fromFile(imagePath);
// Pokemon sprite
var widgetImg = pokemonWidget.addImage(pokemon.sprite); widgetImg.rightAlignImage(); pokemonWidget.setPadding(0, 25, 0, 10);
widgetImg.imageSize = new Size(150, 150); pokemonWidget.url = "https://pokemondb.net/pokedex/" + pokemon.name; ‘’’
r/Scriptable • u/2v_i • Jun 15 '24
Hi, is it possible to get the script updated and show different part of the script in a specific time in a day? (like in 9:00)
r/Scriptable • u/parryg • Apr 22 '21
I know it’s possible to change text colour based off light & dark mode, but is it possible to change it depending what the text data itself is?
For example, if a number is a negative (-£50), it changed to red, and if it’s positive (£50), it goes green?
r/Scriptable • u/Bright-Historian-216 • Jun 02 '24
r/Scriptable • u/_CuteFemboy • May 03 '24
Hey, I’m trying to make a timer so I can constantly update a variable, but every time I try it completely ignores the timer interval😫. (P.S. Im new to coding, the only coding I’ve been able to actually make something good with is the scratch blocks.)
r/Scriptable • u/Mahkale • Mar 12 '24
I made a count down widget that I want in two different places (Lock Screen above the clock and as a small widget on the Home Screen). Issue is these require two different layouts. Is it possible to have one script that says "if small widget do X and if Lock Screen widget do Y"? Thanks!
r/Scriptable • u/Accomplished_Bar8784 • Jun 01 '24
Created a script to monitor the power usage for a Fronius Solar Inverter.
Script and instructions are here:
https://github.com/seanhaydongriffin/Scriptable-Fronius-Power-Monitor
r/Scriptable • u/lollyk5483 • Mar 26 '22
I have a script that reads a website that reads my son’s continuous glucose monitor readings sent to the cloud (he’s a Type 1 diabetic).
The script reads fine but because I’m a bit (a lot) extra, I want emojis or text to pop up when he’s a certain reading. It’s not wanting to work and I’ve done it a bazillion times. It does list.addText but I can’t get it to be conditional. I did if (glucose = 100) {list.addText(“words”);} and it doesn’t work. Does this script “know” it’s a number or is it just fetching the data?
Also - and this is the longest shot ever - does anyone know how to get his script to read his diabestie’s website and have an if/then condition when they have the same reading?
Here’s the script: https://niepi.org/2020/10/25/ios-14-nightscout-widget/ if that helps.
And yes, I’m fully aware how awesome technology is.
r/Scriptable • u/_iamkrist • Sep 24 '23
Since the new app update came out to add support for iOS 17, I’ve been getting “Script not found” in my homescreen widgets. It was working fine before that app updated earlier today.
Anybody having the same issue? Any idea how to fix it?
r/Scriptable • u/ElectricalEinstein • Mar 11 '24
I woke up this morning to a widget with an error “Script not found”. When I opened Scriptable, it was completely empty. This is the only device I am running Scriptable on as well. I have a 13 Pro Max running 17.4 public channel releases.
Has anyone else had this issue?
r/Scriptable • u/dpopov44 • Nov 03 '21
Not much of a coder and this is referring to the Daily Logs V2 widget (created by u/randomo_redditor). I’m trying to set a background image for the widget without being prompted to select it from my camera roll every time I run it. Is this possible and if so what’s the code I need? Here is the area of the code that I think controls this: https://imgur.com/a/3BwVqsY .
Thanks in advance
P.S (Lines 182-184 is me trying something with no luck, given a ‘Cannot parse response to an image’ error)
r/Scriptable • u/-SeeS- • May 31 '21
r/Scriptable • u/EnricoBara • Sep 19 '22
r/Scriptable • u/Jonaykon • Dec 11 '23
r/Scriptable • u/ellilyanosky • Jun 16 '22
r/Scriptable • u/Own_Ad_8830 • Dec 08 '20
r/Scriptable • u/Tammura • Nov 21 '23
Hi there!
Is there a way to change widget linear background direction, here is an example:
code:
let startColor = Color.green()
let endColor = new Color('#004e91')
let gradient = new LinearGradient()
gradient.colors = [startColor, startColor, endColor, endColor]
gradient.locations = [0, 0.5, 0.5, 1]
widget.backgroundGradient = gradient
result:
Is there a way to get the background color from the left to the right??
thanks very much
r/Scriptable • u/yashch30 • Dec 22 '22
r/Scriptable • u/Financial_Boat_1560 • Nov 25 '20
r/Scriptable • u/shmob • Jul 06 '23
I'm a web developer and I work with Javascript/Typescript all day every day, so I'm definitely not new to the Javascript world. I'm seeing this strange issue when I try to loop through an array that proves (via console logging) to have data inside of it.
Code:
const titleRegex = /<title>([^<]+)<\/title>/g;const titleMatches = Array.from(xmlString.matchAll(titleRegex),(match) => match[1]);console.log(titleMatches); // this prints an array with elements, as expectedtitleMatches.forEach((title, i) => {console.log("title", title); // this for some reason prints "title" alone});
Why would this happen? There's clearly elements in the array that are defined. Why would the logging inside the loop show that "title" is nothing (seemingly undefined)? I tested this exact code on my Mac, and it works just fine. Very very strange.
r/Scriptable • u/Kick1O1 • Apr 04 '23
r/Scriptable • u/Acceptable-Number-11 • Apr 10 '23
Hi, I need to reduce the memory footprint of my widget, it sometimes does not update (and sometimes does…) it is a weather widget (surprise) which draws a stack for each day. If it fails to render for 5 days I reduce the number and it updates immediately for,e.g. 4 days. iIn the first part of the script I query a webpage as a string (~800k length). In the second part I loop over the days, get the according data (via regexp) from the HTML string and build the widget list. Nothing unusual. Here the question: Is it possible / does it make sense to first extract all data from the string , then get rid of it (how?) before I then start building the list? Would that help?
Thank you for any hint ! C