There are widgets aplenty, but extremely limited in what they show. Widgy is incredible providing flexible means of how to do it. But JSON API (already existing for text) would free the widgets with respect to the content. Not always weather and battery level…
I don‘t know wether it supports your use case but you can define functions in one script which is then included as library . So you can reuse that lib in many other scripts …
I solved the problem by scraping wetter.com using regex and http request. So you stay inside scriptable and it‘s possible within a widget. Caveat : you will not be able to do this for flexible locations (unless you understand the logic of the url composition) and it is quite combersome to do.
Thanks for the hint.. I knew this article but failed on following it with scriptable. There is nothing like getting the context of the canvas and no clip function for the canvas itself. (Up to my limited knowledge…) Maybe using WebView and evaluateJS could be a way forward, but then I am not able to extract the image - I am lacking any experience for this…
Here Is a script I made that crops images of widgets (for my device size). It uses WebView and the canvas element and also loads images so it might help.
I confused to why you need to use the Share sheet to get the file and not just use the File app actions to do this in the shortcut and Translate text action and then save result to said same folder (properties information Folder of original file) as a new file. All files have properties and one of the files properties information is the file Folder location name.
If you talk about the arduino c-scripts it should work if you switch to the right board. And check whether the pin out is correct- sometimes predefined constants are used which are not available with every board firmware.
Thank you for your fast response - so I keep looking forward for the upcoming release! About the colors: If I remember right there were two problems: Color.dynamic does not work with canvas and the isUsingDarkAppereance does not work with widgets.(according to the docs) But if the above solution works - I will use it:)
Hi, I did something similar utilizing shortcuts and a scriptable widget. You need to chose a icloud folder and define it as bookmark - so you can access it via scriptable. And you use a shortcut to put a picture in that folder. Works either way.
Hi, most simple way would be the use of regular expression. I use it for „parsing“ a weather site to get decent forecasts. I would rather make use of the DOM object and use JS style techniques - but I did not manage to do so…
"Frische Brötchen Essen Asse Des Gesangs" und "Geh Du Alte Ente Hole Fisch" - für'n Quintenzirkel
Frische Birnen essen alte Damen gern Geh du alter Esel hole Fische!
Is this possible for you to rather use the onSelect function of that row?
Hi, Unfortunately not, since I need a couple of “tap”- actions in one row..
onTap only works for button cells. Image cells are as is, just images.
Thank you. I did hope someone has found a workaround :)
There are widgets aplenty, but extremely limited in what they show. Widgy is incredible providing flexible means of how to do it. But JSON API (already existing for text) would free the widgets with respect to the content. Not always weather and battery level…
🙏🏻
I don‘t know wether it supports your use case but you can define functions in one script which is then included as library . So you can reuse that lib in many other scripts …
You could use the „vCard“ tweak to add a custom picture to each item.
use the CallbackURL class with Shortcut's x-callback-url.
I solved the problem by scraping wetter.com using regex and http request. So you stay inside scriptable and it‘s possible within a widget. Caveat : you will not be able to do this for flexible locations (unless you understand the logic of the url composition) and it is quite combersome to do.
does wetter.com not provide an API?
Mit to my knowledge. And if so - presumably not for free? I‘d be happy to learn otherwise ..
Does enabling “Always Run In App” in the script’s settings make it behave as expected?
It does!!!! Thanks a lot for the hint 🙏🏻
I would check out this StackOverflow answer and see if you can replicate it.
Thanks for the hint.. I knew this article but failed on following it with scriptable. There is nothing like getting the context of the canvas and no clip function for the canvas itself. (Up to my limited knowledge…) Maybe using WebView and evaluateJS could be a way forward, but then I am not able to extract the image - I am lacking any experience for this…
Here Is a script I made that crops images of widgets (for my device size). It uses WebView and the canvas element and also loads images so it might help.
Wow - this will bring me where I am up to! Many 🙏🏻!!!
You should get the dictionary from text first and then save the dictionary with a file extension of .json
Thank you all for the hints!
I confused to why you need to use the Share sheet to get the file and not just use the File app actions to do this in the shortcut and Translate text action and then save result to said same folder (properties information Folder of original file) as a new file. All files have properties and one of the files properties information is the file Folder location name.
Thanks for your thoughts - but if I try to get the folder location name I only receive the Name, not the folder. That is my problem…
Hi - I was desperately waiting for this - many thanks - and a café latte :)
If you talk about the arduino c-scripts it should work if you switch to the right board. And check whether the pin out is correct- sometimes predefined constants are used which are not available with every board firmware.
Ja😅 Genau die mein ich😅 War mir nicht mehr sicher ob Feuerzeug oder Schwefelhölzer
Spannendes dazu hier:
yes, you can create Lock Screen widgets if you have the beta version.
Thank you for your fast response - so I keep looking forward for the upcoming release! About the colors: If I remember right there were two problems: Color.dynamic does not work with canvas and the isUsingDarkAppereance does not work with widgets.(according to the docs) But if the above solution works - I will use it:)
They do work but you'll have to understand the cycle of when your script is executed.
Thanks for the detailed explanation.
Dafür gibt es neuerdings extra Feedbackfolgen
Feedgag
Hi, I did something similar utilizing shortcuts and a scriptable widget. You need to chose a icloud folder and define it as bookmark - so you can access it via scriptable. And you use a shortcut to put a picture in that folder. Works either way.
Hi, most simple way would be the use of regular expression. I use it for „parsing“ a weather site to get decent forecasts. I would rather make use of the DOM object and use JS style techniques - but I did not manage to do so…
It'll come in one of the upcoming updates.
COOL!
If let’s say “myValue” is the string storing your number then “Number(myValue)” will convert it to a number.
Thank you!! The solution which helped me: simply put x in the Math-section of the end-point. Then the rounding works.
Oh my god I love this
How do I get a Shortcut in the Lock Screen / as Lock Screen widget?