From 00e3ea840ca3f8b8922a79e1f025b35bb3b6d886 Mon Sep 17 00:00:00 2001 From: KF7EEL Date: Thu, 26 Nov 2020 19:40:43 -0800 Subject: [PATCH] update readme, sample, and functions --- README.md | 6 ++++++ gps_functions.py | 4 +++- rules_SAMPLE.py | 13 ++++++++++--- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0f8f834..1bbb5d8 100755 --- a/README.md +++ b/README.md @@ -31,6 +31,12 @@ Not tested yet * Anytone D578 * BTech DMR-6x2 +## Features + +* Decode GPS locations and upload APRS position packets +* Ability to receive data as a private call or group call +* Trigger a command or script via DMR SMS + ## How it works diff --git a/gps_functions.py b/gps_functions.py index 1166e1f..4fd5790 100644 --- a/gps_functions.py +++ b/gps_functions.py @@ -1,9 +1,11 @@ # Various configurable options used in the GPS/Data application. # SMS message that triggers command + + cmd_list = { - 'LS' : 'ls -lsh', + 'COMMAND' : 'echo "command to execute"', 'UPTIME' : 'uptime' } diff --git a/rules_SAMPLE.py b/rules_SAMPLE.py index 4470117..b96d609 100755 --- a/rules_SAMPLE.py +++ b/rules_SAMPLE.py @@ -54,12 +54,19 @@ list the names of each system that should bridge unit to unit (individual) calls UNIT = ['ONE', 'TWO'] ''' -The amount of time to keep sending private calls to a system before flooding again +Unit Call flood timeout: +The amount of time to keep sending private calls to a single system before +flooding all systems with the call. A higher value should be set for systems where subscribers +are not moving between systems often. A lower value should be set for systems that have subscribers +moving between systems often. + +Time is in minutes. ''' -UNIT_TIME = 15 +UNIT_TIME = 1 ''' -Input the DMR ID and SYSTEM of a subscriber that you would like to have always have private calls routed. This will not flood all systems. +Input the DMR ID and SYSTEM of a subscriber that you would like to have always have private calls routed. +This will not flood all systems. ''' STATIC_UNIT = [ [ 123, 'CLIENT-1'],