Browse code

reorg_20202027

Gandolf authored on 10/27/2020 20:25:34
Showing 1 changed files
1 1
deleted file mode 100755
... ...
@@ -1,32 +0,0 @@
1
-#!/bin/bash
2
-#
3
-# The aredn node url can look something like http://192.168.1.155, or
4
-# something linke http://radiationMonitor.domain.com depending on
5
-# whether your local network uses a domain name server.
6
-#
7
-
8
-APP_PATH="/home/$USER/bin"
9
-LOG_PATH="/home/$USER/log"
10
-
11
-AGENT_NAME="[a]rednsigAgent.py"
12
-
13
-#NODE_URL="http://localnode:8080/cgi-bin/signal.json"
14
-NODE_URL="http://192.168.1.30:8080/cgi-bin/status"
15
-
16
-# Changing the value overides the default data request interval hardcoded
17
-# in the agent script.  '60' is the default. Value is in seconds.
18
-POLLING_INTERVAL="60"
19
-
20
-PROCESS_ID="$(ps x | awk -v a=$AGENT_NAME '$7 ~ a {print $1}')"
21
-
22
-if [ -n "$PROCESS_ID" ]; then
23
-  if [ "$1" != "-q" ]; then
24
-    printf "arednsig agent running [%s]\n" $PROCESS_ID
25
-  fi
26
-else
27
-  printf "starting up arednsig agent\n"
28
-  cd $APP_PATH
29
-  $(./$AGENT_NAME -u $NODE_URL -p $POLLING_INTERVAL >> \
30
- $LOG_PATH/arednsigAgent.log 2>&1 &)
31
-fi
32
-
Browse code

add version for FW v3.20

Gandolf authored on 10/03/2020 23:02:19
Showing 1 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,32 @@
1
+#!/bin/bash
2
+#
3
+# The aredn node url can look something like http://192.168.1.155, or
4
+# something linke http://radiationMonitor.domain.com depending on
5
+# whether your local network uses a domain name server.
6
+#
7
+
8
+APP_PATH="/home/$USER/bin"
9
+LOG_PATH="/home/$USER/log"
10
+
11
+AGENT_NAME="[a]rednsigAgent.py"
12
+
13
+#NODE_URL="http://localnode:8080/cgi-bin/signal.json"
14
+NODE_URL="http://192.168.1.30:8080/cgi-bin/status"
15
+
16
+# Changing the value overides the default data request interval hardcoded
17
+# in the agent script.  '60' is the default. Value is in seconds.
18
+POLLING_INTERVAL="60"
19
+
20
+PROCESS_ID="$(ps x | awk -v a=$AGENT_NAME '$7 ~ a {print $1}')"
21
+
22
+if [ -n "$PROCESS_ID" ]; then
23
+  if [ "$1" != "-q" ]; then
24
+    printf "arednsig agent running [%s]\n" $PROCESS_ID
25
+  fi
26
+else
27
+  printf "starting up arednsig agent\n"
28
+  cd $APP_PATH
29
+  $(./$AGENT_NAME -u $NODE_URL -p $POLLING_INTERVAL >> \
30
+ $LOG_PATH/arednsigAgent.log 2>&1 &)
31
+fi
32
+
Browse code

remove old versions

Gandolf authored on 10/03/2020 23:00:21
Showing 1 changed files
1 1
deleted file mode 100755
... ...
@@ -1,28 +0,0 @@
1
-#!/bin/bash
2
-#
3
-# The aredn node url can look something like http://192.168.1.155, or
4
-# something linke http://radiationMonitor.domain.com depending on
5
-# whether your local network uses a domain name server.
6
-#
7
-
8
-APP_PATH="/home/$USER/bin"
9
-LOG_PATH="/home/$USER/log"
10
-
11
-AGENT_NAME="[a]rednsigAgent.py"
12
-NODE_URL="http://localnode:8080/cgi-bin/signal.json"
13
-
14
-POLLING_INTERVAL="1"
15
-
16
-PROCESS_ID="$(ps x | awk -v a=$AGENT_NAME '$7 ~ a {print $1}')"
17
-
18
-if [ -n "$PROCESS_ID" ]; then
19
-  if [ "$1" != "-q" ]; then
20
-    printf "arednsig agent running [%s]\n" $PROCESS_ID
21
-  fi
22
-else
23
-  printf "starting up arednsig agent\n"
24
-  cd $APP_PATH
25
-  $(./$AGENT_NAME -u $NODE_URL -p $POLLING_INTERVAL >> \
26
- $LOG_PATH/arednsigAgent.log 2>&1 &)
27
-fi
28
-
Browse code

support for Aredn firmware version 3.20.3.0

gandolf authored on 03/31/2020 18:07:19
Showing 1 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,28 @@
1
+#!/bin/bash
2
+#
3
+# The aredn node url can look something like http://192.168.1.155, or
4
+# something linke http://radiationMonitor.domain.com depending on
5
+# whether your local network uses a domain name server.
6
+#
7
+
8
+APP_PATH="/home/$USER/bin"
9
+LOG_PATH="/home/$USER/log"
10
+
11
+AGENT_NAME="[a]rednsigAgent.py"
12
+NODE_URL="http://localnode:8080/cgi-bin/signal.json"
13
+
14
+POLLING_INTERVAL="1"
15
+
16
+PROCESS_ID="$(ps x | awk -v a=$AGENT_NAME '$7 ~ a {print $1}')"
17
+
18
+if [ -n "$PROCESS_ID" ]; then
19
+  if [ "$1" != "-q" ]; then
20
+    printf "arednsig agent running [%s]\n" $PROCESS_ID
21
+  fi
22
+else
23
+  printf "starting up arednsig agent\n"
24
+  cd $APP_PATH
25
+  $(./$AGENT_NAME -u $NODE_URL -p $POLLING_INTERVAL >> \
26
+ $LOG_PATH/arednsigAgent.log 2>&1 &)
27
+fi
28
+
Browse code

fix version numbers

gandolf authored on 03/31/2020 18:04:12
Showing 1 changed files
1 1
deleted file mode 100755
... ...
@@ -1,28 +0,0 @@
1
-#!/bin/bash
2
-#
3
-# The aredn node url can look something like http://192.168.1.155, or
4
-# something linke http://radiationMonitor.domain.com depending on
5
-# whether your local network uses a domain name server.
6
-#
7
-
8
-APP_PATH="/home/$USER/bin"
9
-LOG_PATH="/home/$USER/log"
10
-
11
-AGENT_NAME="[a]rednsigAgent.py"
12
-NODE_URL="http://localnode:8080/cgi-bin/signal.json"
13
-
14
-POLLING_INTERVAL="1"
15
-
16
-PROCESS_ID="$(ps x | awk -v a=$AGENT_NAME '$7 ~ a {print $1}')"
17
-
18
-if [ -n "$PROCESS_ID" ]; then
19
-  if [ "$1" != "-q" ]; then
20
-    printf "arednsig agent running [%s]\n" $PROCESS_ID
21
-  fi
22
-else
23
-  printf "starting up arednsig agent\n"
24
-  cd $APP_PATH
25
-  $(./$AGENT_NAME -u $NODE_URL -p $POLLING_INTERVAL >> \
26
- $LOG_PATH/arednsigAgent.log 2>&1 &)
27
-fi
28
-
Browse code

support for Aredn FW v3.19.3.0

gandolf authored on 03/31/2020 17:38:41
Showing 1 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,28 @@
1
+#!/bin/bash
2
+#
3
+# The aredn node url can look something like http://192.168.1.155, or
4
+# something linke http://radiationMonitor.domain.com depending on
5
+# whether your local network uses a domain name server.
6
+#
7
+
8
+APP_PATH="/home/$USER/bin"
9
+LOG_PATH="/home/$USER/log"
10
+
11
+AGENT_NAME="[a]rednsigAgent.py"
12
+NODE_URL="http://localnode:8080/cgi-bin/signal.json"
13
+
14
+POLLING_INTERVAL="1"
15
+
16
+PROCESS_ID="$(ps x | awk -v a=$AGENT_NAME '$7 ~ a {print $1}')"
17
+
18
+if [ -n "$PROCESS_ID" ]; then
19
+  if [ "$1" != "-q" ]; then
20
+    printf "arednsig agent running [%s]\n" $PROCESS_ID
21
+  fi
22
+else
23
+  printf "starting up arednsig agent\n"
24
+  cd $APP_PATH
25
+  $(./$AGENT_NAME -u $NODE_URL -p $POLLING_INTERVAL >> \
26
+ $LOG_PATH/arednsigAgent.log 2>&1 &)
27
+fi
28
+