Changes for page 05 Lua Script
Last modified by Devin Chen on 2025/03/04 14:07
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -4,11 +4,11 @@ 4 4 5 5 [[Download link>>https://drive.google.com/file/d/1ji5RbQJzUn_rQ2couX062fYt_6dqQNRb/view?usp=sharing]] 6 6 7 -= **2 MQTT Client** =7 += **2 MQTT** = 8 8 9 9 The example shows how to connect to the MQTT server.(Test on MaQiaTTo) 10 10 11 -[[Download link>>https://drive.google.com/file/d/1 LWLaOlhWB3BRSTLy3_2RC6Yb0wK7slEB/view?usp=sharing]]11 +[[Download link>>https://drive.google.com/file/d/1DY-VGRMBZrxfPHF3qLrgZ-1fJBCOK-q5/view]] 12 12 13 13 = **3 Timer** = 14 14 ... ... @@ -36,18 +36,10 @@ 36 36 37 37 = **7 FTP Client** = 38 38 39 -The example shows how the to establish the FTP server at WIN10 OS and make the HMI as FTP client. 39 +The example shows how the to establish the FTP server at WIN10 OS and make the HMI as FTP client. Just to change the IP, port, username and password in Script_BG.lua. 40 40 41 - Step1: About howto set up the FTP server inWindows PC: **[[Buildan FTP Site onIIS>>https://docs.microsoft.com/en-us/iis/publish/using-the-ftp-service/scenario-build-an-ftp-site-on-iis]] **,** [[Howto setup and manage an FTPserver on Windows 10>>https://www.windowscentral.com/how-set-and-manage-ftp-server-windows-10]]**41 +[[Download link>>https://drive.google.com/file/d/1b0g3eA_2TSdXqLM_hpv9l2Wq0Yq-13nf/view?usp=sharing]] 42 42 43 -Step2: Change the IP, port, username and password in Script_BG.lua, to connect user's own server. 44 - 45 -Step3: Change the filename want to download or upload in Script_BG.lua 46 - 47 -Step4: Change the string "udisk:smtp.jpg", into the storage path user want to download from FTP server save to HMI, in function Main_download() in Main.lua. 48 - 49 -[[Download link>>https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Lua%20Script/FTP%20Client.zip]] 50 - 51 51 = **8 Telegram Notification** = 52 52 53 53 The example shows how to use Bot API to push the notification to channel or group of Telegram. Please change the Token and Chat id to users' own one.