
- #Weather display widget how to#
- #Weather display widget generator#
- #Weather display widget update#
- #Weather display widget full#
- #Weather display widget code#
For example, showing Weather Cal, PurpleAir Air Quality, and Random Scriptable API would normally take three separate widgets. This allows you to position them alongisde Weather Cal elements to create more flexible layouts. Weather Cal supports embedding other Scriptable widgets.
#Weather display widget code#
This code will display "My text here" using the small date format that's specified in the preferences.ĭocumentation for Weather Cal's helper functions will be available in the wiki once it is ready. You can override any of the built-in widget items, and you can even embed existing widgets.
#Weather display widget update#
You can create custom backgrounds and widget items that are not deleted when you update the Weather Cal code script.
#Weather display widget generator#
#Weather display widget full#
If you want to draw your widget using ASCII, delete all of the items and draw your widget like this:Ī full line of - (dashes) starts and ends the widget, or makes a new row. You can make fixed-sized spaces using parentheses, like this: space(50). Using space will add a space that automatically expands to fill the vertical space, pushing the items above and below it. You can add an alignment item ( left, right, or center) anywhere in the layout, and it will align everything after it. If you want to specify the size of a row or column, use parentheses: row(50) or column(100). You can add or remove rows and columns, just remember that you always need at least one row and one column, and every row has to start with a column. The row and column items create the structure of the widget. You can change the layout of the widget using the following layout items:

Most items allow you to adjust how they display. If you want to change how an item looks, run the widget script and choose "Edit preferences".
#Weather display widget how to#
Keep reading to find out which items are available and how to position them on the widget. The layout is just a list of widget items and layout items.

In the widget script, you'll see a section that looks similar to this: The only aspect of the widget that you can't change in the settings menu is the layout. In the preferences menu, you can change the overall widget settings, customize the font, size, color, and language of text, and adjust settings for each individual widget item.
