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
-
... ... @@ -14,13 +14,9 @@ 14 14 15 15 = 2. Steps = 16 16 17 -((( 18 18 ~1. Create account in ThingsSpeak and creat channel. 19 -))) 20 20 21 -((( 22 22 2. Download script from dragino site and move it to properly directory 23 -))) 24 24 25 25 (% class="box" %) 26 26 ((( ... ... @@ -35,9 +35,7 @@ 35 35 root@dragino-1baf44:~~# 36 36 ))) 37 37 38 -((( 39 39 3. change the script monitor_gateway.sh with properly users setting: 40 -))) 41 41 42 42 (% class="box" %) 43 43 ((( ... ... @@ -51,13 +51,9 @@ 51 51 CHAN_KEY='xxxxx' #Channel Write API of the channel for this gateway 52 52 ))) 53 53 54 -((( 55 55 ~1. run **/usr/bin/monitor_gateway.sh** to test if upload is good. 56 -))) 57 57 58 -((( 59 59 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 60 -))) 61 61 62 62 (% class="box" %) 63 63 ((( ... ... @@ -75,17 +75,13 @@ 75 75 */20 * * * * /usr/bin/monitor_gateway.sh 76 76 ))) 77 77 78 -((( 79 79 3. Reboot device. 80 -))) 81 81 82 82 = 3. Monitor Public IP = 83 83 84 84 The monitor_gateway.sh has been updated to upload the public ip of the device as well. 85 85 86 -((( 87 87 User can find the public ip in field7, the chart is not able to show the complete public ip, user can check that in the export. 88 -))) 89 89 90 90 [[image:https://wiki.dragino.com/images/thumb/8/8f/Monitor_gateway_1.png/600px-Monitor_gateway_1.png||height="340" width="600"]] 91 91