-
Notifications
You must be signed in to change notification settings - Fork 4
Beta
Stephan Mühl edited this page Feb 21, 2023
·
27 revisions
This belongs to the current beta version of Smartpusher (currently v2.00)
All MQTT commands from stable also belongs to this beta!
- navigate to [Smartpusher-IP]/edit
- Create a new file pages.json add a array of pages 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 and 24)
- the next key ist 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