added nodered json example

This commit is contained in:
Mathieu Broillet 2023-12-30 17:04:08 +01:00
parent 9a23a6712a
commit adc3ea0211
Signed by: mathieu
GPG Key ID: C0E9E0E95AF03319

View File

@ -95,20 +95,35 @@ Change monitors config.
- **Name:** Monitors config - **Name:** Monitors config
- **Description:** Monitors config. - **Description:** Monitors config.
- **Required:** true - **Required:** true
- **Selector:** object (yaml) - **Selector:** object (yaml)
- **Example:** - **Example:**
```yaml ```yaml
# Tip: You can use the command `gnome-monitor-config list` or `xrandr` to your monitors names and resolutions. # Tip: You can use the command `gnome-monitor-config list` or `xrandr` to your monitors names and resolutions.
HDMI-1: HDMI-1:
enabled: true enabled: true
primary: true primary: true
position: [ 0, 0 ] position: [ 0, 0 ]
mode: 3840x2160@120.000 mode: 3840x2160@120.000
transform: normal transform: normal
scale: 2 scale: 2
``` ```
- **Example for Node-RED(JSON):**
```json
// Example of the data expression of a service call node in Node-RED.
{
"monitors_config": {
"HDMI-1": {
"enabled": true,
"primary": true,
"position": [0, 0],
"mode": "3840x2160@120.000",
"transform": "normal",
"scale": 2
}
}
}
```
## `steam_big_picture` ## `steam_big_picture`
@ -128,6 +143,6 @@ Start/stop Steam in Big Picture mode or go back to Steam desktop UI.
- **Required:** true - **Required:** true
- **Selector:** select - **Selector:** select
- **Options:** - **Options:**
- **start**: Start Steam in Big Picture mode. - **start**: Start Steam in Big Picture mode.
- **stop**: Stop Steam in Big Picture mode. - **stop**: Stop Steam in Big Picture mode.
- **exit**: Go back to Steam desktop UI. - **exit**: Go back to Steam desktop UI.