diff --git a/docs/README.md b/docs/README.md index 5b1abbcb6..d3a62385c 100644 --- a/docs/README.md +++ b/docs/README.md @@ -14,14 +14,14 @@ Do not add anything here, as it will overwritten with next rebuild. | Section | Comment | |:------------- |------:| | [IO/Pin Roles](https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/ioRoles.md) (80 total) | You can set pin roles in 'Configure Module' section or use one of predefined templates in Web App. For each pin, you also set corresponding channel value. This is needed for modules with multiple relays. If you have 3 relays and 3 buttons, you need to use channel values like 1, 2, and 3. Just enter '1' in the text field, etc. | -| [Flags](https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/flags.md) (50 total) | Flags are global and allows you to alter behaviour of the device. | +| [Flags](https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/flags.md) (51 total) | Flags are global and allows you to alter behaviour of the device. | | [Drivers](https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/drivers.md) (59 total) | Drivers allows you to control certain peripherals or enable certain features that are off by default. | | [Script constants](https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/constants.md) (40 total) | Every console command that takes an integer argument supports certain constant expansion. | | [Channel Types](https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/channelTypes.md) (59 total) | Channel types are often not required and don't have to be configured, but in some cases they are required for better device control from OpenBeken web panel. Channel types describes the kind of value stored in channel, for example, if you have a Tuya Fan Controller with 3 speeds control, you can set the channel type to LowMidHigh and it will display the correct UI radiobutton on OpenBeken panel.
Some channels have '_div10' or '_div100' suffixes. This is for TuyaMCU. This is needed because TuyaMCU sends values as integers, so it sends, for example, 215 for 21.5C temperature, and we store it internally as 215 and only convert to float for display. | | [FAQ](https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/faq.md) (31 total) | Here is a detailed list of questions you may ask. Some information from docs is repeated here. | | [Console/Script commands](https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/commands.md) (314 total) | There are multiple console commands that allow you to automate your devices. Commands can be entered manually in command line, can be send by HTTP (just like in Tasmota), can be send by MQTT and also can be scripted. | | [Command Examples](https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/commandExamples.md) (10 total) | Here you can find some examples of console commands usage | -| [Autoexec.bat examples (configs)](https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/autoexecExamples.md) (36 total) | Here you can find examples of autoexec.bat configs. The autoexec.bat file can be created in Web Application, under LittleFS tab, and is run every time device reboots (unless device enters safe mode/AP mode). The autoexec.bat file allows you to create more advanced configs, setup TuyaMCU mappings, etc | +| [Autoexec.bat examples (configs)](https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/autoexecExamples.md) (37 total) | Here you can find examples of autoexec.bat configs. The autoexec.bat file can be created in Web Application, under LittleFS tab, and is run every time device reboots (unless device enters safe mode/AP mode). The autoexec.bat file allows you to create more advanced configs, setup TuyaMCU mappings, etc | | [MQTT Topics](https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/mqttTopics.md) (25 total) | MQTT topic names and content for incoming and outgoing OBK MQTT publishes | | [Script examples](https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/scriptExamples.md) (6 total) | Scripts can be put in autoexec.bat and then they will start automatically on reboot, you can also put script in other LittleFS file and use startScript [fileName] [Label] command to run them. From the firmware point of view, scripts and autoexecs are basically the same thing. There is, however, a little bit more advanced system of execution for scripts which can be written in a form of scripts threads that run over time, can have delays within then, conditional checks and jumps. | | [Console/Script commands [Extended Edition]](https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/commands-extended.md) (314 total) | More details on commands. | diff --git a/docs/autoexecExamples.md b/docs/autoexecExamples.md index df02fcb3b..ac4ab43e9 100644 --- a/docs/autoexecExamples.md +++ b/docs/autoexecExamples.md @@ -1261,3 +1261,97 @@ addEventHandler OnChannelChange 4 myset ``` +[Scripting custom light animation/styles for TuyaMCU](https://www.elektroda.com/rtvforum/topic4014389.html) +
+``` +// See: https://www.elektroda.com/rtvforum/topic4014389.html + +startDriver httpButtons +setButtonEnabled 0 1 +setButtonLabel 0 "Music mode" +setButtonCommand 0 "tuyaMcu_sendState 21 4 3" + +setButtonEnabled 1 1 +setButtonLabel 1 "Light mode" +setButtonCommand 1 "tuyaMcu_sendState 21 4 1" + +setButtonEnabled 2 1 +setButtonLabel 2 "Curtain" +setButtonCommand 2 "startScript autoexec.bat do_cur" + +setButtonEnabled 3 1 +setButtonLabel 3 "Collision" +setButtonCommand 3 "startScript autoexec.bat do_col" + +setButtonEnabled 4 1 +setButtonLabel 4 "Rainbow" +setButtonCommand 4 "startScript autoexec.bat do_rai" + +setButtonEnabled 5 1 +setButtonLabel 5 "Pile" +setButtonCommand 5 "startScript autoexec.bat do_pil" + +setButtonEnabled 6 1 +setButtonLabel 6 "Firework" +setButtonCommand 6 "startScript autoexec.bat do_fir" + +setButtonEnabled 7 1 +setButtonLabel 7 "Chase" +setButtonCommand 7 "startScript autoexec.bat do_chase" + +// startDriver MCP9808 [ClkPin] [DatPin] [OptionalTargetChannel] +startDriver MCP9808 7 8 1 +MCP9808_Adr 0x30 +MCP9808_Cycle 1 + + +// use choice to choose effect by index stored in $CH10 +alias do_chosen_effect Choice $CH10 cmd_cur cmd_col cmd_rai cmd_pil cmd_fir cmd_chase +// when click on Btn_ScriptOnly on P24 happens, add 1 to $CH10 (wrap to 0-5) and do effect +addEventHandler OnClick 24 backlog addChannel 10 1 0 4 1; do_chosen_effect + +// stop execution +return + + + + +do_chase: +tuyaMcu_sendState 21 4 2 +delay_s 0.1 +tuyaMcu_sendState 25 3 020e0d00001403e803e800000000 +return + + +do_cur: +tuyaMcu_sendState 21 4 2 +delay_s 0.1 +tuyaMcu_sendState 25 3 000e0d00002e03e802cc00000000 +return + +do_col: +tuyaMcu_sendState 21 4 2 +delay_s 0.1 +tuyaMcu_sendState 25 3 07464602000003e803e800000000464602007803e803e80000000046460200f003e803e800000000464602003d03e803e80000000046460200ae03e803e800000000464602011303e803e800000000 +return + +do_rai: +tuyaMcu_sendState 21 4 2 +delay_s 0.1 +tuyaMcu_sendState 25 3 06464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000 +return + +do_pil: +tuyaMcu_sendState 21 4 2 +delay_s 0.1 +tuyaMcu_sendState 25 3 010e0d000084000003e800000000 +return + +do_fir: +tuyaMcu_sendState 21 4 2 +delay_s 0.1 +tuyaMcu_sendState 25 3 05464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000464601003d03e803e80000000046460100ae03e803e800000000464601011303e803e800000000 +return +``` + + diff --git a/docs/commands-extended.md b/docs/commands-extended.md index dab847a9a..42518f306 100644 --- a/docs/commands-extended.md +++ b/docs/commands-extended.md @@ -42,11 +42,11 @@ Do not add anything here, as it will overwritten with next rebuild. | BridgePulseLength | [FloatValue] | Setup value for bridge pulse len.

See also [BridgePulseLength on forum](https://www.elektroda.com/rtvforum/find.php?q=BridgePulseLength). | File: driver/drv_bridge_driver.c
Function: Bridge_Pulse_length | | cancelRepeatingEvent | [UserIDInteger] | Stops a given repeating event with a specified ID.

See also [cancelRepeatingEvent on forum](https://www.elektroda.com/rtvforum/find.php?q=cancelRepeatingEvent). | File: cmnds/cmd_repeatingEvents.c
Function: RepeatingEvents_Cmd_CancelRepeatingEvent | | Ch | [InputValue] | An alternate command to access channels. It returns all used channels in JSON format. The syntax is ChINDEX value, there is no space between Ch and channel index. It can be sent without value to poll channel values.

See also [Ch on forum](https://www.elektroda.com/rtvforum/find.php?q=Ch). | File: cmnds/cmd_channels.c
Function: CMD_Ch | -| chart_add | | See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).

See also [chart_add on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_add). | File: driver/drv_charts.c
Function: NULL); | -| chart_addNow | | See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).

See also [chart_addNow on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_addNow). | File: driver/drv_charts.c
Function: NULL); | -| chart_create | | See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).

See also [chart_create on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_create). | File: driver/drv_charts.c
Function: NULL); | -| chart_setAxis | | See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).

See also [chart_setAxis on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_setAxis). | File: driver/drv_charts.c
Function: NULL); | -| chart_setVar | | See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).

See also [chart_setVar on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_setVar). | File: driver/drv_charts.c
Function: NULL); | +| chart_add | | Adds data to the chart with specified variables at a specific NTP time. See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).

See also [chart_add on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_add). | File: driver/drv_charts.c
Function: NULL); | +| chart_addNow | | Adds data to the chart using the current NTP time. See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).

See also [chart_addNow on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_addNow). | File: driver/drv_charts.c
Function: NULL); | +| chart_create | | Creates a chart with a specified number of samples, variables, and axes. See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).

See also [chart_create on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_create). | File: driver/drv_charts.c
Function: NULL); | +| chart_setAxis | | Sets up an axis with a name, flags, and label. Currently flags can be 0 (left axis) or 1 (right axis). See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).

See also [chart_setAxis on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_setAxis). | File: driver/drv_charts.c
Function: NULL); | +| chart_setVar | | Associates a variable with a specific axis. See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).

See also [chart_setVar on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_setVar). | File: driver/drv_charts.c
Function: NULL); | | Choice | [IndexToExecute][Option0][Option1][Option2][OptionN][etc] | This will choose a given argument by index and execute it as a command. Index to execute can be a variable like $CH1.

See also [Choice on forum](https://www.elektroda.com/rtvforum/find.php?q=Choice). | File: cmnds/cmd_main.c
Function: NULL); | | chSetupLimit | [limitChannelIndex] [maxAllowedLimitChannelDelta] [timeoutOr-1] [commandToRun] | After executing this command, chargingLimit driver will watch channel for changes and count down timer. When a timer runs our or channel change (from the initial state) is larger than given margin, given command is run.

See also [chSetupLimit on forum](https://www.elektroda.com/rtvforum/find.php?q=chSetupLimit). | File: driver/drv_chargingLimit.c
Function: ChargingLimit_SetupCommand); | | CHT_Alert | [TempDiff][HumDiff][Freq][FQ] | Enable alert pin. TempDif (temperature difference is any float higher than 0.05�C) = set detected difference in temperature required for device to wake. HumDiff (humidity difference is any float higher than 0.1%). Freq (time per measurement in s) = 1, 5, 10, 60, 120 (default if wrong = 1). FQ (fault queue number) = 1, 2, 4, 6 (default if wrong = 1).

Example: CHT_Alert 0.5 0 5 2
alert pin will trigger when temperature deviates by more than 0.5�C. Humidity will be ignored. Sensor measures every 5s with fault queue number 2.

See also [CHT_Alert on forum](https://www.elektroda.com/rtvforum/find.php?q=CHT_Alert). | File: drv/drv_cht8305.c
Function: CHT_Alert | @@ -296,7 +296,7 @@ Do not add anything here, as it will overwritten with next rebuild. | TS_Clear | | Clears the text scroller buffer.

See also [TS_Clear on forum](https://www.elektroda.com/rtvforum/find.php?q=TS_Clear). | File: driver/drv_textScroller.c
Function: NULL); | | TS_Print | [StartOfs] [MaxLenOr0] [StringText] [optionalBClampWithZeroesForClock] | Prints a text to the text scroller buffer.

See also [TS_Print on forum](https://www.elektroda.com/rtvforum/find.php?q=TS_Print). | File: driver/drv_textScroller.c
Function: NULL); | | tuyaMcu_defWiFiState | | Command sets the default WiFi state for TuyaMCU when device is not online. It may be required for some devices to work, because Tuya designs them to ignore touch buttons or beep when not paired. Please see [values table and description here](https://www.elektroda.com/rtvforum/viewtopic.php?p=20483899#20483899).

See also [tuyaMcu_defWiFiState on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_defWiFiState). | File: driver/drv_tuyaMCU.c
Function: Cmd_TuyaMCU_Send_RSSI | -| tuyaMcu_sendCmd | TuyaMCU_SendUserCmd | .

See also [tuyaMcu_sendCmd on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_sendCmd). | File: driver/drv_tuyaMCU.c
Function: NULL); | +| tuyaMcu_sendCmd | [CommandIndex] [HexPayloadNBytes] | This will automatically calculate TuyaMCU checksum and length for given command ID and payload, then it will send a command. It's better to use it than uartSendHex.

See also [tuyaMcu_sendCmd on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_sendCmd). | File: driver/drv_tuyaMCU.c
Function: NULL); | | tuyaMcu_sendColor | [dpID] [red01] [green01] [blue01] [tuyaRGBformat] | This sends a TuyaMCU color string of given format for given RGB values, where each value is in [0,1] range as float.

See also [tuyaMcu_sendColor on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_sendColor). | File: driver/drv_tuyaMCU.c
Function: NULL); | | tuyaMcu_sendCurTime | | Sends a current date by TuyaMCU to clock/callendar MCU. Time is taken from NTP driver, so NTP also should be already running.

See also [tuyaMcu_sendCurTime on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_sendCurTime). | File: driver/drv_tuyaMCU.c
Function: TuyaMCU_Send_SetTime_Current | | tuyaMcu_sendHeartbeat | | Send heartbeat to TuyaMCU.

See also [tuyaMcu_sendHeartbeat on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_sendHeartbeat). | File: driver/drv_tuyaMCU.c
Function: TuyaMCU_SendHeartbeat | diff --git a/docs/commands.md b/docs/commands.md index 001a727d2..91e7f818c 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -45,11 +45,11 @@ Do not add anything here, as it will overwritten with next rebuild. | BridgePulseLength | [FloatValue] | Setup value for bridge pulse len.

See also [BridgePulseLength on forum](https://www.elektroda.com/rtvforum/find.php?q=BridgePulseLength). | | cancelRepeatingEvent | [UserIDInteger] | Stops a given repeating event with a specified ID.

See also [cancelRepeatingEvent on forum](https://www.elektroda.com/rtvforum/find.php?q=cancelRepeatingEvent). | | Ch | [InputValue] | An alternate command to access channels. It returns all used channels in JSON format. The syntax is ChINDEX value, there is no space between Ch and channel index. It can be sent without value to poll channel values.

See also [Ch on forum](https://www.elektroda.com/rtvforum/find.php?q=Ch). | -| chart_add | | See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).

See also [chart_add on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_add). | -| chart_addNow | | See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).

See also [chart_addNow on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_addNow). | -| chart_create | | See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).

See also [chart_create on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_create). | -| chart_setAxis | | See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).

See also [chart_setAxis on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_setAxis). | -| chart_setVar | | See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).

See also [chart_setVar on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_setVar). | +| chart_add | | Adds data to the chart with specified variables at a specific NTP time. See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).

See also [chart_add on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_add). | +| chart_addNow | | Adds data to the chart using the current NTP time. See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).

See also [chart_addNow on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_addNow). | +| chart_create | | Creates a chart with a specified number of samples, variables, and axes. See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).

See also [chart_create on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_create). | +| chart_setAxis | | Sets up an axis with a name, flags, and label. Currently flags can be 0 (left axis) or 1 (right axis). See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).

See also [chart_setAxis on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_setAxis). | +| chart_setVar | | Associates a variable with a specific axis. See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).

See also [chart_setVar on forum](https://www.elektroda.com/rtvforum/find.php?q=chart_setVar). | | Choice | [IndexToExecute][Option0][Option1][Option2][OptionN][etc] | This will choose a given argument by index and execute it as a command. Index to execute can be a variable like $CH1.

See also [Choice on forum](https://www.elektroda.com/rtvforum/find.php?q=Choice). | | chSetupLimit | [limitChannelIndex] [maxAllowedLimitChannelDelta] [timeoutOr-1] [commandToRun] | After executing this command, chargingLimit driver will watch channel for changes and count down timer. When a timer runs our or channel change (from the initial state) is larger than given margin, given command is run.

See also [chSetupLimit on forum](https://www.elektroda.com/rtvforum/find.php?q=chSetupLimit). | | CHT_Alert | [TempDiff][HumDiff][Freq][FQ] | Enable alert pin. TempDif (temperature difference is any float higher than 0.05�C) = set detected difference in temperature required for device to wake. HumDiff (humidity difference is any float higher than 0.1%). Freq (time per measurement in s) = 1, 5, 10, 60, 120 (default if wrong = 1). FQ (fault queue number) = 1, 2, 4, 6 (default if wrong = 1).

Example: CHT_Alert 0.5 0 5 2
alert pin will trigger when temperature deviates by more than 0.5�C. Humidity will be ignored. Sensor measures every 5s with fault queue number 2.

See also [CHT_Alert on forum](https://www.elektroda.com/rtvforum/find.php?q=CHT_Alert). | @@ -299,7 +299,7 @@ Do not add anything here, as it will overwritten with next rebuild. | TS_Clear | | Clears the text scroller buffer.

See also [TS_Clear on forum](https://www.elektroda.com/rtvforum/find.php?q=TS_Clear). | | TS_Print | [StartOfs] [MaxLenOr0] [StringText] [optionalBClampWithZeroesForClock] | Prints a text to the text scroller buffer.

See also [TS_Print on forum](https://www.elektroda.com/rtvforum/find.php?q=TS_Print). | | tuyaMcu_defWiFiState | | Command sets the default WiFi state for TuyaMCU when device is not online. It may be required for some devices to work, because Tuya designs them to ignore touch buttons or beep when not paired. Please see [values table and description here](https://www.elektroda.com/rtvforum/viewtopic.php?p=20483899#20483899).

See also [tuyaMcu_defWiFiState on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_defWiFiState). | -| tuyaMcu_sendCmd | TuyaMCU_SendUserCmd | .

See also [tuyaMcu_sendCmd on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_sendCmd). | +| tuyaMcu_sendCmd | [CommandIndex] [HexPayloadNBytes] | This will automatically calculate TuyaMCU checksum and length for given command ID and payload, then it will send a command. It's better to use it than uartSendHex.

See also [tuyaMcu_sendCmd on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_sendCmd). | | tuyaMcu_sendColor | [dpID] [red01] [green01] [blue01] [tuyaRGBformat] | This sends a TuyaMCU color string of given format for given RGB values, where each value is in [0,1] range as float.

See also [tuyaMcu_sendColor on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_sendColor). | | tuyaMcu_sendCurTime | | Sends a current date by TuyaMCU to clock/callendar MCU. Time is taken from NTP driver, so NTP also should be already running.

See also [tuyaMcu_sendCurTime on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_sendCurTime). | | tuyaMcu_sendHeartbeat | | Send heartbeat to TuyaMCU.

See also [tuyaMcu_sendHeartbeat on forum](https://www.elektroda.com/rtvforum/find.php?q=tuyaMcu_sendHeartbeat). | diff --git a/docs/drivers.md b/docs/drivers.md index 82d065758..2f6baccd5 100644 --- a/docs/drivers.md +++ b/docs/drivers.md @@ -13,7 +13,7 @@ Do not add anything here, as it will overwritten with next rebuild. | PixelAnim | PixelAnim provides a simple set of WS2812B animations.
See also [PixelAnim on forum](https://www.elektroda.com/rtvforum/find.php?q=PixelAnim). | | Drawers | WS2812B driver wrapper with REST API for [smart drawers project](https://www.elektroda.com/rtvforum/topic4054134.html).
See also [Drawers on forum](https://www.elektroda.com/rtvforum/find.php?q=Drawers). | | HGS02 | [HGS02](https://www.elektroda.com/rtvforum/viewtopic.php?p=21177061#21177061).
See also [HGS02 on forum](https://www.elektroda.com/rtvforum/find.php?q=HGS02). | -| TestCharts | .
See also [TestCharts on forum](https://www.elektroda.com/rtvforum/find.php?q=TestCharts). | +| TestCharts | Development only driver - a sample of chart generation with chart.js.
See also [TestCharts on forum](https://www.elektroda.com/rtvforum/find.php?q=TestCharts). | | Charts | Charts driver allows you to create a customizable chart directly on your device. See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).
See also [Charts on forum](https://www.elektroda.com/rtvforum/find.php?q=Charts). | | NTP | NTP driver is required to get current time and date from web. Without it, there is no correct datetime. Put 'startDriver NTP' in short startup line or autoexec.bat to run it on start.
See also [NTP on forum](https://www.elektroda.com/rtvforum/find.php?q=NTP). | | HTTPButtons | This driver allows you to create custom, scriptable buttons on main WWW page. You can create those buttons in autoexec.bat and assign commands to them.
See also [HTTPButtons on forum](https://www.elektroda.com/rtvforum/find.php?q=HTTPButtons). | diff --git a/docs/flags.md b/docs/flags.md index d7a170fad..76753d11b 100644 --- a/docs/flags.md +++ b/docs/flags.md @@ -55,3 +55,4 @@ Do not add anything here, as it will overwritten with next rebuild. | 47 | [TuyaMCU] Store ALL data | | 48 | [PWR] Invert AC dir | | 49 | [HTTP] Hide ON/OFF for relays (only red/green buttons) | +| 50 | [MQTT] Never add get sufix | diff --git a/docs/json/commands.json b/docs/json/commands.json index c17defddf..588a31a21 100644 --- a/docs/json/commands.json +++ b/docs/json/commands.json @@ -335,7 +335,7 @@ { "name": "chart_add", "args": "", - "descr": "See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).", + "descr": "Adds data to the chart with specified variables at a specific NTP time. See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).", "fn": "NULL);", "file": "driver/drv_charts.c", "requires": "", @@ -344,7 +344,7 @@ { "name": "chart_addNow", "args": "", - "descr": "See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).", + "descr": "Adds data to the chart using the current NTP time. See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).", "fn": "NULL);", "file": "driver/drv_charts.c", "requires": "", @@ -353,7 +353,7 @@ { "name": "chart_create", "args": "", - "descr": "See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).", + "descr": "Creates a chart with a specified number of samples, variables, and axes. See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).", "fn": "NULL);", "file": "driver/drv_charts.c", "requires": "", @@ -362,7 +362,7 @@ { "name": "chart_setAxis", "args": "", - "descr": "See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).", + "descr": "Sets up an axis with a name, flags, and label. Currently flags can be 0 (left axis) or 1 (right axis). See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).", "fn": "NULL);", "file": "driver/drv_charts.c", "requires": "", @@ -371,7 +371,7 @@ { "name": "chart_setVar", "args": "", - "descr": " See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).", + "descr": "Associates a variable with a specific axis. See [tutorial](https://www.elektroda.com/rtvforum/topic4075289.html).", "fn": "NULL);", "file": "driver/drv_charts.c", "requires": "", @@ -2620,8 +2620,8 @@ }, { "name": "tuyaMcu_sendCmd", - "args": "TuyaMCU_SendUserCmd", - "descr": "", + "args": "[CommandIndex] [HexPayloadNBytes]", + "descr": "This will automatically calculate TuyaMCU checksum and length for given command ID and payload, then it will send a command. It's better to use it than uartSendHex", "fn": "NULL);", "file": "driver/drv_tuyaMCU.c", "requires": "", diff --git a/docs/json/drivers.json b/docs/json/drivers.json index 7338cfda3..e1c88a4e4 100644 --- a/docs/json/drivers.json +++ b/docs/json/drivers.json @@ -38,7 +38,7 @@ { "name": "TestCharts", "title": "TODO", - "descr": ".", + "descr": "Development only driver - a sample of chart generation with chart.js.", "requires": "" }, { diff --git a/docs/json/flags.json b/docs/json/flags.json index 564e4c880..d3778c810 100644 --- a/docs/json/flags.json +++ b/docs/json/flags.json @@ -348,5 +348,12 @@ "title": "todo", "file": "new_pins.h", "descr": "[HTTP] Hide ON/OFF for relays (only red/green buttons)" + }, + { + "index": "50", + "enum": "OBK_FLAG_MQTT_NEVERAPPENDGET", + "title": "todo", + "file": "new_pins.h", + "descr": "[MQTT] Never add get sufix" } ] \ No newline at end of file