You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/source/Rules/Rules.rst
+42
Original file line number
Diff line number
Diff line change
@@ -1969,6 +1969,48 @@ Added: 2022/07/23
1969
1969
* Host name can contain user credentials. For example: ``http://username:pass@hostname:portnr/foo.html``
1970
1970
* HTTP user credentials now can handle Basic Auth and Digest Auth.
1971
1971
1972
+
Added: 2023/10/26
1973
+
1974
+
* ``SendToHTTP`` now generates an event with the response of a thingspeak request (https://de.mathworks.com/help/thingspeak/readlastfieldentry.html & // https://de.mathworks.com/help/thingspeak/readdata.html)
.. warning:: When using the command for all fields, the reply can become extremely big and can lead to memory issues which results in instabilities of your device (especially when all eight fields are filled with very big numbers)
1999
+
2000
+
* Example for two single field events in rules:
2001
+
2002
+
.. code:: none
2003
+
2004
+
on ThinkspeakReply do
2005
+
LogEntry,'The channel number is: %eventvalue1%'
2006
+
if %eventvalue2% = 5 //when the field number is 5
2007
+
LogEntry,'%eventvalue3%°C in Berlin'
2008
+
elseif %eventvalue2% = 6 //when the field number is 6
// Can be set to 1 to enable, 0 to disable, or not set to use the default (usually via define_plugin_sets.h)
24
24
25
-
#defineFEATURE_RULES_EASY_COLOR_CODE 1 // Use code highlighting, autocompletion and command suggestions in Rules
26
-
#defineFEATURE_ESPEASY_P2P 1 // (1/0) enables the ESP Easy P2P protocol
27
-
#defineFEATURE_ARDUINO_OTA 1 //enables the Arduino OTA capabilities
28
-
// #define FEATURE_SD 1 // Enable SD card support
29
-
// #define FEATURE_DOWNLOAD 1 // Enable downloading a file from an url
25
+
#defineFEATURE_RULES_EASY_COLOR_CODE 1 // Use code highlighting, autocompletion and command suggestions in Rules
26
+
#defineFEATURE_ESPEASY_P2P 1 // (1/0) enables the ESP Easy P2P protocol
27
+
#defineFEATURE_ARDUINO_OTA 1 // enables the Arduino OTA capabilities
28
+
#defineFEATURE_THINGSPEAK_EVENT 1 // generate an event when requesting last value of a field in thingspeak via SendToHTTP(e.g. sendToHTTP,api.thingspeak.com,80,/channels/1667332/fields/5/last)
29
+
// #define FEATURE_SD 1 // Enable SD card support
30
+
// #define FEATURE_DOWNLOAD 1 // Enable downloading a file from an url
0 commit comments