I don't think so, as Scriptable is based off of the iOS JavaScript engine. It's highly personalized with widgets and the entire design style being based off of iOS. Every feature that has been added from generic JavaScript is from some iOS engine - dictation, font library, the keychain, etc.
If you want an alternative, there are JavaScript IDEs for Android, but of course it's not Scriptable.
I don't know how to handle this:
// Filter must be converted into a URL string
const FILTER = "";
if I fill in "today",the default value,it works, but other Filter like“https://todoist.com/app/filter/123456789”, what can i do,please?
ProtonVPN has 3 options when using shortcuts. Quick Connect. Disconnect and Check status.
​
I would live with it doing a quick connect and then switching to the original app, but I have not figure out a way to do that. All I can do is open the original app, it then connects to the VPN and then the process stops. I have to manually switch back to the original app
As an alternative on macOS there is Hammerspoon. It’s based on Lua and there are many libraries to interact with aspects of the system. Highly recommended (especially if you like typing window managers). http://www.hammerspoon.org/
https://fonts.google.com/specimen/Rubik?standard-styles=&selection.family=Rubik
Hello u/HolyyKess, it appears you tried to put a link in a title, since most users cant click these I have placed it here for you
^I ^am ^a ^bot ^if ^you ^have ^any ^suggestions ^dm ^me
I see now about the stacks. I thought you meant a widget stack for scriptable, which is different than an iOS stack of widgets (my confusion).
I agree it's a great looking widget, but I didn't realize before about the lighter and darker shades of blue in the rain portion. I find it strange to chart the min precipitation and max precipitation but that's apparently what it is according to that webpage.
It looks like they offer a method with their API to have the graph/chart shown in an app that displays web content.
I think the 500 API call limit per month could be doable depending on how often the widget is allowed to refresh.
The OpenWeatherMap has some great endpoints that can be used and is what was used to generate the widgets shown in my previous comment. I'm not sure what about them is "iOS" in your mind. Both were designed to replicate similar functionality from other weather widgets between both iOS and Android (IIRC).
Openweather has icons for every condition they provide:
https://openweathermap.org/weather-conditions#How-to-get-icon-URL
​
Request the image and create a horizontal stack with the icon & text
// weather
const key="your openwesthermap api key"
const city=" city name not ID!"
const url=https://api.openweathermap.org/data/2.5/weather?q=${city}&appid=${key}&units=metric
let req = new Request(url)
let json= await req.loadJSON()
let temp = Math.round(json.main.temp)
const iconURL = "https://openweathermap.org/img/wn/" + json.weather[0].icon + "@2x.png"
let iconRequest = new Request(iconURL);
let icon = await iconRequest.loadImage();
log(json);
//weathericon
widgetHello.addImage(icon);
Its json.weather[0].description
not json.main.description
Here u can see the API response a bit better.
And below i made a little code snippet (did not test it). Hope it helps!
const key = ""
const city = "San Leandro"
const url=https://api.openweathermap.org/data/2.5/weather?q=${city}&appid=${key}&units=metric
let req = new Request(url)
let json= await req.loadJSON()
let widget = new ListWidget() widget.backgroundColor = Color.brown()
let text = widget.addText("Currently it's " + String(json.main.temp) + String(json.weather[0].description))
Script.setWidget(widget) Script.complete()
Check this widget out, I’m sure it’ll help! It’s Futcal, grabs lots of data including scores from FotMob. They have Red Star Belgrade too! 😅
Thanks!
Of course! The goal is to be able to use it with any team (I actually used Premier League teams a lot during testing). I try to explain everything on the “Read me” in GitHub.
To change the team specifically: “In order to get your favourite team information you have to specify your team's FotMob numerical id: 1. Go to https://www.fotmob.com. 2. Search for your team in the search box and select it. 3. In your team overview page check the URL. The URL should look like this: https://www.fotmob.com/teams/9768/overview/sporting-cp 4. Copy the numeric value from the URL (e.g. 9768 for Sporting CP). 5. Look for parameter teamId in Futcal.js. 6. Replace the numeric value with the new one.”
Let me know if you have any problems!
For example:
const url="
<code>https://ipinfo.io</code>"
const req = await (new Request(url).loadJSON())
const ipaddress = req.ip
​
Or you just use Shortcuts if you just need to quickly display the ip address, it has an action for it.
u/mzeryck
I have a calendar working but needs some cleanup and formatting to be inline with weather cal a bit more. Do you think you could cleanup this code and put another setting editor for Calendar to change some calendar preferences.
Hi. Wow, fantastic; great work, looks good. Yes, that's starting to do a really good job of combining information in a really readable, meteogram-like format that I became familiar with. Let's look at what you managed to pack in: - temperature - wind speed - wind direction - precipitation probability - overall sky forecast indicator? (Icon) (and you plotted these on the temperature line graph, so I think you nailed that). (Did I miss anything?)
If Aix and those other meteograms still offer any other differences, perhaps it's this: - temperature line is colour-coded (red for above freezing, blue for below freezing) - temperature line seems to follow more increments between major steps (ie. Finer movements between days or between hours). Let's say, "intra-day" temperature line. - still not certain what the best expression for rain is, but I think Aix's dual blue columns expressed min/max rainfall - colour-coding for daylight/night-time hours (https://play.google.com/store/apps/details?id=be.inet.rainwidget&hl=en_GB&gl=US) It's interesting that Aix's left Y axis was temperature, leaving rain un-numbered (but it always felt accurate), whereas you've gone with rain probability on the left axis and plotting the temperature omn the graph. Both are good, I think!
For hourly, did you pick a 5am to 4pm range to accommodate the characters etc? Ie. 24-hour range would be messy?
I think I did do that with the Meteograms API, but some combination of a) I found it difficult to construct the properties required to give to it, or b) an image inside a web-page-in-a-widget widget didn't look great or c) I was nervous about API consumption.