Changes for page Monitor Gateway

Last modified by Xiaoling on 2022/07/14 15:37

From version 1.4
edited by Xiaoling
on 2022/05/12 15:24
Change comment: There is no comment for this version
To version 2.1
edited by Xiaoling
on 2022/05/27 11:17
Change comment: Uploaded new attachment "image-20220527111742-1.png", version {1}

Summary

Details

Page properties
Content
... ... @@ -5,7 +5,9 @@
5 5  
6 6  = 1. Introduction =
7 7  
8 +(((
8 8  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 +)))
9 9  
10 10  [[image:https://wiki.dragino.com/images/thumb/d/dc/Monitor_gateway.png/600px-Monitor_gateway.png||height="456" width="600"]]
11 11  
... ... @@ -14,9 +14,14 @@
14 14  
15 15  = 2. Steps =
16 16  
17 -* Create account in ThingsSpeak and creat channel.
18 -* Download script from dragino site and move it to properly directory
19 +(((
20 +~1. Create account in ThingsSpeak and creat channel.
21 +)))
19 19  
23 +(((
24 +2. Download script from dragino site and move it to properly directory
25 +)))
26 +
20 20  (% class="box" %)
21 21  (((
22 22  root@dragino-1baf44:~~# wget [[http:~~/~~/www.dragino.com/downloads/downloads/LoRa_Gateway/LPS8/Firmware/customized_script/monitor_gateway.sh>>url:http://www.dragino.com/downloads/downloads/LoRa_Gateway/LPS8/Firmware/customized_script/monitor_gateway.sh]]
... ... @@ -30,7 +30,9 @@
30 30  root@dragino-1baf44:~~#
31 31  )))
32 32  
33 -* change the script monitor_gateway.sh with properly users setting:
40 +(((
41 +3. change the script monitor_gateway.sh with properly users setting:
42 +)))
34 34  
35 35  (% class="box" %)
36 36  (((
... ... @@ -44,9 +44,13 @@
44 44  CHAN_KEY='xxxxx'   #Channel Write API  of the channel for this gateway
45 45  )))
46 46  
47 -* run **/usr/bin/monitor_gateway.sh** to test if upload is good.
56 +(((
57 +~1. run **/usr/bin/monitor_gateway.sh** to test if upload is good.
58 +)))
48 48  
49 -* 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 +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 +)))
50 50  
51 51  (% class="box" %)
52 52  (((
... ... @@ -61,17 +61,20 @@
61 61  # * * * * * user-name command to be executed
62 62  #*/10 * * * *  checklog
63 63  ~* 23 * * *  /etc/init.d/auto_update start
64 -*/20 * * * *  /usr/bin/monitor_gateway.sh
77 +*/20 * * * *  /usr/bin/monitor_gateway.sh 
65 65  )))
66 66  
67 -* Reboot device.
80 +(((
81 +3. Reboot device.
82 +)))
68 68  
69 -
70 70  = 3. Monitor Public IP =
71 71  
72 72  The monitor_gateway.sh has been updated to upload the public ip of the device as well.
73 73  
88 +(((
74 74  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.
90 +)))
75 75  
76 76  [[image:https://wiki.dragino.com/images/thumb/8/8f/Monitor_gateway_1.png/600px-Monitor_gateway_1.png||height="340" width="600"]]
77 77  
image-20220527111742-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +58.8 KB
Content