Changes for page Monitor Gateway
Last modified by Xiaoling on 2022/07/14 15:37
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -5,9 +5,7 @@ 5 5 6 6 = 1. Introduction = 7 7 8 -((( 9 9 This introduction shows how to use a script to monitor the gateway. The video link for this instruction is: [[https:~~/~~/youtu.be/8PieIwfSF_g>>url:https://youtu.be/8PieIwfSF_g]] 10 -))) 11 11 12 12 [[image:https://wiki.dragino.com/images/thumb/d/dc/Monitor_gateway.png/600px-Monitor_gateway.png||height="456" width="600"]] 13 13 ... ... @@ -16,13 +16,9 @@ 16 16 17 17 = 2. Steps = 18 18 19 -((( 20 20 ~1. Create account in ThingsSpeak and creat channel. 21 -))) 22 22 23 -((( 24 24 2. Download script from dragino site and move it to properly directory 25 -))) 26 26 27 27 (% class="box" %) 28 28 ((( ... ... @@ -37,9 +37,7 @@ 37 37 root@dragino-1baf44:~~# 38 38 ))) 39 39 40 -((( 41 41 3. change the script monitor_gateway.sh with properly users setting: 42 -))) 43 43 44 44 (% class="box" %) 45 45 ((( ... ... @@ -53,13 +53,9 @@ 53 53 CHAN_KEY='xxxxx' #Channel Write API of the channel for this gateway 54 54 ))) 55 55 56 -((( 57 57 ~1. run **/usr/bin/monitor_gateway.sh** to test if upload is good. 58 -))) 59 59 60 -((( 61 61 2. Add monitor_gateway.sh to cron work **/etc/crontabs/root** to make this script runs perdiocally, below is an example to update every 20 minutes 62 -))) 63 63 64 64 (% class="box" %) 65 65 ((( ... ... @@ -77,9 +77,7 @@ 77 77 */20 * * * * /usr/bin/monitor_gateway.sh 78 78 ))) 79 79 80 -((( 81 81 3. Reboot device. 82 -))) 83 83 84 84 = 3. Monitor Public IP = 85 85