Changes for page Monitor Gateway

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

From version 1.7
edited by Xiaoling
on 2022/05/12 15:31
Change comment: There is no comment for this version
To version 1.4
edited by Xiaoling
on 2022/05/12 15:24
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -14,14 +14,9 @@
14 14  
15 15  = 2. Steps =
16 16  
17 -(((
18 -~1. Create account in ThingsSpeak and creat channel.
19 -)))
17 +* Create account in ThingsSpeak and creat channel.
18 +* Download script from dragino site and move it to properly directory
20 20  
21 -(((
22 -2. Download script from dragino site and move it to properly directory
23 -)))
24 -
25 25  (% class="box" %)
26 26  (((
27 27  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]]
... ... @@ -35,9 +35,7 @@
35 35  root@dragino-1baf44:~~#
36 36  )))
37 37  
38 -(((
39 -3. change the script monitor_gateway.sh with properly users setting:
40 -)))
33 +* change the script monitor_gateway.sh with properly users setting:
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 -~1. run **/usr/bin/monitor_gateway.sh** to test if upload is good.
56 -)))
47 +* run **/usr/bin/monitor_gateway.sh** to test if upload is good.
57 57  
58 -(((
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 -)))
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
61 61  
62 62  (% class="box" %)
63 63  (((
... ... @@ -72,20 +72,17 @@
72 72  # * * * * * user-name command to be executed
73 73  #*/10 * * * *  checklog
74 74  ~* 23 * * *  /etc/init.d/auto_update start
75 -*/20 * * * *  /usr/bin/monitor_gateway.sh 
64 +*/20 * * * *  /usr/bin/monitor_gateway.sh
76 76  )))
77 77  
78 -(((
79 -3. Reboot device.
80 -)))
67 +* Reboot device.
81 81  
69 +
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