This shows you the differences between two versions of the page.
uphp:blockly_home_page_hook [2019/07/22 10:40] admin |
uphp:blockly_home_page_hook [2021/09/13 05:57] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Blockly Home Page Hook====== | ||
- | In order to display a custom widget on the dashboard of Wattmon, you can create a script using blockly and set the type to Display on Home page. | ||
- | {{: | ||
- | |||
- | The script above displays data which has been generated dynamically. | ||
- | |||
- | Any variable generated by the AJAX script can be referred t by prefixing:< | ||
- | |||
- | Note that the hook 'On Home Page' needs to be selected for this widget to appear. | ||
- | |||
- | To see how to generate the variable, see [[uphp: | ||
- | |||
- | Options for the widget are shown below and accessible by clicking the Options button: | ||
- | |||
- | {{: | ||
- | |||
- | The home page display will look as follows: | ||
- | |||
- | {{: |