-
Notifications
You must be signed in to change notification settings - Fork 4
Beta
This belongs to the current beta version of Smartpusher (currently v2.00)
During beta you need to delete the config.json before an beta update!
All features from stable also belongs to this beta!
Password for "Smartpusher" AP: 12345678
Please note:
every change to the settings via webinterface needs to be saved with "Save configuration" followed by "Restart ESP"
- 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 Use customized pages 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
Topic
[PREFIX]/page/
Payload
Name of the page ("time", "weather" or the name of your custompage )
Topic
[PREFIX]/scrolling/
Payload
"true"/"false"