From adc3ea021144ba8610ba59e758da0a9f0adb4d03 Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Sat, 30 Dec 2023 17:04:08 +0100 Subject: [PATCH] added nodered json example --- HOWTO.md | 47 +++++++++++++++++++++++++++++++---------------- 1 file changed, 31 insertions(+), 16 deletions(-) diff --git a/HOWTO.md b/HOWTO.md index 6c458e0..555d932 100644 --- a/HOWTO.md +++ b/HOWTO.md @@ -95,20 +95,35 @@ Change monitors config. - **Name:** Monitors config - **Description:** Monitors config. - **Required:** true - - **Selector:** object (yaml) - - **Example:** - ```yaml - # Tip: You can use the command `gnome-monitor-config list` or `xrandr` to your monitors names and resolutions. - HDMI-1: - enabled: true - primary: true - position: [ 0, 0 ] - mode: 3840x2160@120.000 - transform: normal - scale: 2 - ``` - + - **Selector:** object (yaml) + - **Example:** + ```yaml + # Tip: You can use the command `gnome-monitor-config list` or `xrandr` to your monitors names and resolutions. + HDMI-1: + enabled: true + primary: true + position: [ 0, 0 ] + mode: 3840x2160@120.000 + transform: normal + 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` @@ -128,6 +143,6 @@ Start/stop Steam in Big Picture mode or go back to Steam desktop UI. - **Required:** true - **Selector:** select - **Options:** - - **start**: Start Steam in Big Picture mode. - - **stop**: Stop Steam in Big Picture mode. - - **exit**: Go back to Steam desktop UI. \ No newline at end of file + - **start**: Start Steam in Big Picture mode. + - **stop**: Stop Steam in Big Picture mode. + - **exit**: Go back to Steam desktop UI. \ No newline at end of file