Update README.md

This commit is contained in:
joBr99
2022-01-14 20:17:35 +01:00
committed by GitHub
parent fbbc7b0b0e
commit d1ecf6d43f

View File

@@ -56,43 +56,8 @@ event,1,tHeading,tEntityName,1,stop
# Design Guidelines for Nextion HMI Project
Background Color is
- RGB565: 4226 (HEX: #101010, RGB: 16,16,16)
- RGB565: 6371 [18e3] (HEX: #1C1C1C, RGB: 28,28,28)
Source for Images:
https://materialdesignicons.com/
Source for Icons is the Material Design Font, used by HASPone
https://github.com/HASwitchPlate/HASPone
Settings for Advanced Export (Big Images):
- Background: #101010
- Opacity: 1
- Size: 72
- Padding: 12
# OLD STUFF
# Widget Page
| Payload | Example | Parameter 1 | Parameter 2 | Parameter 3 | Parameter 4 | Description |
|---|---|---|---|---|---|---|
| widget,*id*,*type*,*status*,*name* | widget,b0,shutter,1,name | *id* of widget Possible values: - b[0-7] | type of the action the widget should do Possible values: - shutter - opens shutter page | enable or disable Possible values: - 0 - disbale/hide - 1 - enable/show | name of the widget, will be displayed below the widget | Modify Widgets on Page |
| widget,debug,dc,*status* | widget,debug,dc,1 | debug | don't care | enable or disable Possible values: - 0 - disbale/hide - 1 - enable/show | don't care | Enables/Disables text fields at the bottom of the widget page to see the parsed command's |
| | | | | | | |
## Messages from Nextion Display
# Widget Page
| Payload | Example | Parameters | Description |
|---|---|---|---|
| event,widgetPage,*page* | event,widgetPage,0 | *<page>* is the number of the current page, there is currently only page 0 | Is fired, after switching to widgetPage, has to be answered with widget message |
| event,widgetButton,*page*,*buttonId* | event,widgetButton,0,b0 | *page* is the number of the current page, there is currently only page 0 *buttonId* is the id of the button b[0-7] | Is fired, after pressing a button on the widget page |
# Shutter Page
| Payload | Example | Parameters | Description |
|---|---|---|---|
| event,shutterPage,*buttonname* | event,shutterPage,bOpenShutter | *buttonname* is the name of the clicked button | |
| event,shutterPage,*buttonname*,*value* | event,shutterPage,bSlider,50 | *buttonname* is the name of the clicked button | |