test docs faq

This commit is contained in:
openshwprojects
2023-03-06 16:34:14 +01:00
parent 8d231ab8a0
commit 0e1df6dd89
3 changed files with 4 additions and 3 deletions

View File

@ -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?*<br>**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)?*<br>**A:** There are two ways. <br> First way is to use Config -> Startup state and set it from GUI here. <br> 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.<br>For example, for RGBCW LED, to set 100% dimmer and red color on start, you can do startup command:<br> >backlog led_dimmer 100; led_basecolor_rgb #FF0000; led_enableAll 1<br>For simple relay, in this example on channel number 5, you can do:<br>>backlog SetChannel 5 1<br>
**Question:** *How to set relay state on device boot? (PowerOnState)?*<br>**A:** There are two ways. <br> First way is to use Config -> Startup state and set it from GUI here. <br> 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.<br>For example, for RGBCW LED, to set 100% dimmer and red color on start, you can do startup command:<br> ```backlog led_dimmer 100; led_basecolor_rgb #FF0000; led_enableAll 1```<br>For simple relay, in this example on channel number 5, you can do:<br>```backlog SetChannel 5 1```<br>

View File

@ -29,6 +29,6 @@
},
{
"question": "How to set relay state on device boot? (PowerOnState)?",
"answer": "There are two ways. <br> First way is to use Config -> Startup state and set it from GUI here. <br> 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.<br>For example, for RGBCW LED, to set 100% dimmer and red color on start, you can do startup command:<br> >backlog led_dimmer 100; led_basecolor_rgb #FF0000; led_enableAll 1<br>For simple relay, in this example on channel number 5, you can do:<br>>backlog SetChannel 5 1<br>"
"answer": "There are two ways. <br> First way is to use Config -> Startup state and set it from GUI here. <br> 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.<br>For example, for RGBCW LED, to set 100% dimmer and red color on start, you can do startup command:<br> ```backlog led_dimmer 100; led_basecolor_rgb #FF0000; led_enableAll 1```<br>For simple relay, in this example on channel number 5, you can do:<br>```backlog SetChannel 5 1```<br>"
}
]

View File

@ -787,11 +787,12 @@ for (let i = 0; i < faq.length; i++) {
let q = faq[i];
faqmdshort += "**Question:** *"+q.question+"*";
faqmdshort += '\n';
faqmdshort += '<br>';
faqmdshort += "**A:** "+q.answer;
faqmdshort += '\n';
faqmdshort += '\n';
faqmdshort += '\n';
}
for (let i = 0; i < cnsts.length; i++) {