Skip to content
Stephan Mühl edited this page Feb 21, 2023 · 27 revisions

This belongs to the current beta version of Smartpusher (currently v2.00)

All features from stable also belongs to this beta!

Create CustomPages

  • navigate to [Smartpusher-IP]/edit
  • Create a new file pages.json add a array of pages (max 4) e.g.:
{  
  "screen1": [  
    { "x": 10, "y": 10, "s":16, "header": "TestValue 1" },  
    { "x": 10, "y": 30, "s":16, "value": "500" }
  ],  
 "screen2": [  
    { "x": 10, "y": 10, "s":16, "header": "TestValue 2" },  
    { "x": 10, "y": 30, "s":16, "value": "600" }
  ]  
}
  • screen1 & screen2 are the name of the pages, you can name it as you like.

  • Each textelement needs at least the keys "x" and "y" wich defines the position of the text.

  • The key "s" sets the textsize and is optional (accepted values are 10,16 or 24).

  • The next key represents your actual text. You can use any keyname as you like. The keyname must be unique per page and is necessary to change its value via MQTT. The given value in the json is the standard text wich will be displayed until you replace it via MQTT.

  • You can add as many textelements per page as you like.

  • Save your file and restart Smartpusher, dont forget to enable custompages in the general menu.

  • If you want to change a value via MQTT you just need to send your text to the following topic structure: [PREFIX]/custompage/[PAGENAME]/[VARIABLENAME] e.g. Smartpusher/custompage/screen1/value

Clone this wiki locally