Dashboard Extras 1
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> <b>$num</b> </td> <td> <b>$tgid</b> </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