sylumer
February 12, 2025, 8:09pm
2
Your widget code should be able to pull data from a local JSON file. These resources should give you the examples you need to build the widget and read JSON into an object.
https://www.reddit.com/r/Scriptable/s/yKLdwpUTFD
I created a widget to show nutritional macronutrients, both with a progress bar and values.
I created a shortcut that adds these values to Data Jar and saves it as a dictionary. You will then access the file via the file bookmarks in settings of Scriptable. You can use whatever food logger you wish as the shortcut pulls from HealthKit.
[Macro-Widget]
Thanks to @egamez for creating the weather widget which allowed me to learn about drawContext() and how he set up some of the functions was e…