editDashboard
Modify a Garmin dashboard page by replacing its layout, adding or removing custom widgets, and managing translated page and widget texts. Call without arguments to inspect current settings.
Instructions
Changes the layout, the custom widgets or the languages of the dashboard page (a page from the
template; call writeDashboard first). Without arguments it only reads: the reply has the layout, the
custom widgets, the missing texts of each language, the catalogue of built-in widgets and widgetApi,
the guide to writing a custom widget. layout replaces the whole layout (the text of the page's
'Copy layout'); place adds widgets at the end of a board; widgets adds or replaces custom widgets
by id and saves them in the widget library (/widgets.json), which every page from the
template gets; removeWidgets removes them from this page and its boards, forgetWidgets also
from the library. widgetTexts adds texts to custom widgets by id, language and key, e.g.
{"longest-ride": {"de": {"title": "Längste Fahrt"}}}. languages adds page texts by key, e.g.
{"de": {"title": "Training + Erholung"}}: keys and {placeholders} as in englishTexts: true; a
text with "|" has a singular and a plural form. Missing texts show in English.
removeLanguages removes languages that languages added.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | The .html file; relative paths are inside the data dir | |
| place | No | ||
| layout | No | A whole layout: { base, boards: { all: [{ id, widget, type?, span, hidden? }] } } | |
| widgets | No | ||
| languages | No | Texts by language code and key | |
| widgetTexts | No | Texts of custom widgets by widget id, language code and key | |
| englishTexts | No | Also return the English texts to translate | |
| forgetWidgets | No | Ids of custom widgets to remove from the library and from this page | |
| removeWidgets | No | Ids of custom widgets to remove from this page | |
| removeLanguages | No | Codes of added languages, e.g. de |