notes/rtl sdr detect when signal is sent on frequency-zBvHHTqi.sh
#!/bin/bash

#sdr detect when signal is sent on frequency


r1=314M
r2=316M
bin=1M
g=300

let thres=11;

rtl_power -f $r1:$r2:$bin -g $g -i 1|\
  while read l;
  do 
    let p="$(echo "$l"|cut -d\, -f7|cut -d\. -f1)";
    if [ "$p" -gt "$thres" ];
    then 
      echo "click";
    fi;
  done

syntax highlighted by Code2HTML, v. 0.9.1