Some Rules for OPB and Dashboards

Make Talk Groups from 1 to 89 Local Only.
Will not go out over the OpenBridge.

[OBP-NAME]
MODE: OPENBRIDGE
ENABLED: True
IP:
PORT: xxxxx
NETWORK_ID: 
PASSPHRASE: 
TARGET_IP: xxxxxxxxxxxxxxxxxxxxx
TARGET_PORT: xxxxx
USE_ACL: True
SUB_ACL: DENY:1
TGID_ACL: DENY:1,2,3,4,5,6,7,8,10,  #etc etc 
RELAX_CHECKS: False

DENY:89,etc,etc,etc

or

I would also recommend, for sanity, all of your external bridges contain this in GLOBAL:

SUB_ACL: DENY:0-1000000
TGID_TS1_ACL: DENY:0-89
or
TGID_TS2_ACL: DENY:0-8,10-89

if you need full OBP full Talk Groups :
TGID_ACL: PERMIT:ALL


Running more than one OPB
To show System OpenBridge and Active Incoming Calls on One line.

On the OPB config :
[OBP-XYZ<->ABC]
MODE: OPENBRIDGE
ENABLED: True

On the line [OBP-XYZ<->ABC] you can put what you want


Most used Talk Groups

qsocount.txt

Taken from message https://t.me/c/1422594915/2012    by @bilson Rodrigo Pérez

sudo cp qsocount.txt /usr/local/bin && chmod +x /usr/local/bin/qsocount

qsocount

qsocount -n 10

configure log path in qsocount
#!/bin/bash

LOGPATH="/var/log/freedmr/freedmr.log"
RECORDS=0

while getopts n: flag
do
case "${flag}" in
n) RECORDS=${OPTARG};;
esac
done


if [ "$RECORDS" -gt 0 ]; then
grep -oP 'CALL START.*TGID.*\(\K(\d+)' $LOGPATH |sort|uniq -c | sort -nr | head -n $RECORDS
else
grep -oP 'CALL START.*TGID.*\(\K(\d+)' $LOGPATH |sort|uniq -c | sort -nr
fi

or

With this script you can generate an html table to include in hbmon

Taken from message https://t.me/c/1422594915/2012    by @bilson Rodrigo Pérez

#!/bin/bash

while IFS=$' ' read -r -a fields; do

num="${fields[0]}"
tgid="${fields[1]}"

cat <<EOF >> /tmp/toptg.html
<tr>
<td>&nbsp;<b>$num</b>&nbsp;</td>
<td>&nbsp;<b>$tgid</b>&nbsp;</td>
</tr>
EOF

done <<< $(qsocount -n 20)

Example
https://master.freedmr.cl/toptg

Also read https://t.me/c/1422594915/2126 File updated.


sysinfo

https://github.com/sp2ong/HBMonv2/tree/main/sysinfo

Example http://www.freedmr-ge.ch/stats/index.php