Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.73 KB

README.md

File metadata and controls

35 lines (28 loc) · 1.73 KB

Trunk Recorder decode rates logging plugin

Uses Trunk Recorder's trunk_message plugin hook to log trunking system control channel decoding rates to decode_rates.csv in the captureDir as specified in config.json. Requires versions of Trunk Recorder on or after May 17, 2023 (commit 5c07ef0).

On each startup of Trunk Recorder, a header line of timestamp,shortName,shortName will be added to the file.

Includes a PHP script which outputs an SVG graph of the rates.

To use:

  1. Make a directory named "decode_rates" within Trunk Recorder's plugins directory and either copy these files or clone the repository into that directory
  2. Apply the patch as follows by running one of these commands from your root trunk-recorder code directory (where the CMakeLists.txt file is):
patch -p1 < plugins/decode_rates/decode_rates.patch

git am < plugins/decode_rates/decode_rates-git.patch
  1. Build the Trunk Recorder program normally
  2. Add a "decodeRates": 60 entry to the Global Configs section of your config.json, where 60 is the number of seconds between logging entries
  3. Optionally put the PHP file somewhere Web accessible and edit it

OR

  1. Build Trunk Recorder normally, and run sudo make install at the end to install it
  2. Run cmake ./, make and then sudo make install in this directory to build and install the plugin
  3. Add to your config.json:
 "plugins": [
    {
        "name": "decode_rates",
        "library": "decode_rates.so",
        "decodeRates": 60
    }]
  1. Optionally put the PHP file somewhere Web accessible and edit it