Skip to content

Instantly share code, notes, and snippets.

@inigoflores
Last active February 16, 2022 11:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save inigoflores/3b878e2a7003f7ec7a9c2dc46c597e0c to your computer and use it in GitHub Desktop.
Save inigoflores/3b878e2a7003f7ec7a9c2dc46c597e0c to your computer and use it in GitHub Desktop.
Pisces RSSI/SNR Profile
#!/bin/bash
grep -E 'miner_onion_server:decrypt:{[0-9]+,[0-9]+} sending witness at RSSI' /home/pi/hnt/miner/log/console.log* | \
awk '{print $10,$14}' | sort -nr | uniq -c | \
awk '{printf "RSSI: %s SNR: %s Noise: %s, Count: %s\n", $2, $3, ($2 - $3), $1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment