diff --git a/docs/faq.md b/docs/faq.md index a8cb99eb9..6c27a4d99 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -24,6 +24,6 @@ All questions/answers were taken from json file. **Question:** *How to configure ping watchdog to do a relay cycle when given IP does not respond for a given amount of time?*
**A:** See the following example there: https://www.elektroda.com/rtvforum/viewtopic.php?p=20368812#20368812 -**Question:** *How to set relay state on device boot? (PowerOnState)?*
**A:** There are two ways.
First way is to use Config -> Startup state and set it from GUI here.
Second way is to use short startup command from Options or create 'autoexec.bat' in LittleFS file system in web panel and execute commands from there.
For example, for RGBCW LED, to set 100% dimmer and red color on start, you can do startup command:
>backlog led_dimmer 100; led_basecolor_rgb #FF0000; led_enableAll 1
For simple relay, in this example on channel number 5, you can do:
>backlog SetChannel 5 1
+**Question:** *How to set relay state on device boot? (PowerOnState)?*
**A:** There are two ways.
First way is to use Config -> Startup state and set it from GUI here.
Second way is to use short startup command from Options or create 'autoexec.bat' in LittleFS file system in web panel and execute commands from there.
For example, for RGBCW LED, to set 100% dimmer and red color on start, you can do startup command:
```backlog led_dimmer 100; led_basecolor_rgb #FF0000; led_enableAll 1```
For simple relay, in this example on channel number 5, you can do:
```backlog SetChannel 5 1```
diff --git a/docs/json/faq.json b/docs/json/faq.json index 615c08980..2ac5d4282 100644 --- a/docs/json/faq.json +++ b/docs/json/faq.json @@ -29,6 +29,6 @@ }, { "question": "How to set relay state on device boot? (PowerOnState)?", - "answer": "There are two ways.
First way is to use Config -> Startup state and set it from GUI here.
Second way is to use short startup command from Options or create 'autoexec.bat' in LittleFS file system in web panel and execute commands from there.
For example, for RGBCW LED, to set 100% dimmer and red color on start, you can do startup command:
>backlog led_dimmer 100; led_basecolor_rgb #FF0000; led_enableAll 1
For simple relay, in this example on channel number 5, you can do:
>backlog SetChannel 5 1
" + "answer": "There are two ways.
First way is to use Config -> Startup state and set it from GUI here.
Second way is to use short startup command from Options or create 'autoexec.bat' in LittleFS file system in web panel and execute commands from there.
For example, for RGBCW LED, to set 100% dimmer and red color on start, you can do startup command:
```backlog led_dimmer 100; led_basecolor_rgb #FF0000; led_enableAll 1```
For simple relay, in this example on channel number 5, you can do:
```backlog SetChannel 5 1```
" } ] \ No newline at end of file diff --git a/scripts/getcommands.js b/scripts/getcommands.js index dba4a443b..a202e8894 100644 --- a/scripts/getcommands.js +++ b/scripts/getcommands.js @@ -787,11 +787,12 @@ for (let i = 0; i < faq.length; i++) { let q = faq[i]; faqmdshort += "**Question:** *"+q.question+"*"; - faqmdshort += '\n'; + faqmdshort += '
'; faqmdshort += "**A:** "+q.answer; faqmdshort += '\n'; faqmdshort += '\n'; + faqmdshort += '\n'; } for (let i = 0; i < cnsts.length; i++) {