Changes for page 2 Script
Last modified by Devin Chen on 2026/05/18 17:32
From version 11.1
edited by Devin Chen
on 2026/05/18 17:32
on 2026/05/18 17:32
Change comment:
There is no comment for this version
To version 9.1
edited by Devin Chen
on 2025/11/05 09:27
on 2025/11/05 09:27
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -180,11 +180,11 @@ 180 180 local message = '' 181 181 print("b=="..bitValue) 182 182 if bitValue == 1 and bitValue ~= tempBit then 183 - message = 'Alarm %20triggered%2c%20the%20monitoring%20point%20test%20value%20is%20'.. bitValue183 + message = 'Alarm triggered, the monitoring point test value is '.. bitValue 184 184 sendAlarm(botToken, message, chatID) 185 185 print("Notification pushed of triggering alarm,"..bitValue) 186 186 elseif bitValue == 0 and bitValue ~= tempBit then 187 - message = 'Alarm %20dismissed%2c%20the%20monitoring%20point%20test%20value%20is%20'.. bitValue187 + message = 'Alarm dismissed, the monitoring point test value is '.. bitValue 188 188 sendAlarm(botToken, message, chatID) 189 189 print("Notification pushed of dismissing alarm,"..bitValue) 190 190 end ... ... @@ -194,11 +194,11 @@ 194 194 print("w=="..wordValue) 195 195 --dosomething 196 196 if wordValue >= 100 and wordValue ~= tempWord and tempWord <= 100 then 197 - message = 'Word %20alarm%20triggered%2c%20the%20word%20value%20is%20'.. wordValue197 + message = 'Word alarm triggered, the word value is '.. wordValue 198 198 sendAlarm(botToken, message, chatID) 199 199 print("Notification pushed of triggering alarm,"..wordValue) 200 200 elseif wordValue < 100 and wordValue ~= tempWord and tempWord >= 100 then 201 - message = 'Word %20alarm%20dismissed%2c%20the%20word%20value%20is%20'.. wordValue201 + message = 'Word alarm dismissed, the word value is '.. wordValue 202 202 sendAlarm(botToken, message, chatID) 203 203 print("Notification pushed of dismissing alarm,"..wordValue) 204 204 end ... ... @@ -635,6 +635,7 @@ 635 635 (% style="text-align:center" %) 636 636 [[image:1757044137457-543.png||height="468" width="708"]] 637 637 638 + 638 638 == **1.13 JSON encoding and decoding** == 639 639 640 640 This demo shows how to encode tag values into JSON format and decode the JSON to assign data to new tags.