User Tools

Site Tools


uphp:blockly_home_page_hook

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
uphp:blockly_home_page_hook [2019/07/22 10:30]
admin created
uphp:blockly_home_page_hook [2021/09/13 05:57] (current)
Line 2: Line 2:
 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.   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.  
  
-{{:uphp:blockly_home_script.png?300|}}+{{:uphp:blockly_home_script.png?800|}}
  
-Note that the hook 'On Home Page' needs to be selected for this.+The script above displays data which has been generated dynamically.  To do this, refer to the variable using <code json>{{livedata.cnt}}</code>
  
-To see how to use this variable on the home page, see [[uphp:ajax_generation]]+Any variable generated by the AJAX script can be referred t by prefixing:<code json>livedata.</code>.
  
 +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:ajax_generation|Ajax Generation]].
 +
 +Options for the widget are shown below and accessible by clicking the Options button:
 +
 +{{:uphp:blockly_home_options.png|}}
 +
 +The home page display will look as follows:
 +
 +{{:uphp:blockly_home_display.png|}}
uphp/blockly_home_page_hook.1563791421.txt.gz · Last modified: 2021/09/13 05:56 (external edit)