Created
January 18, 2023 04:59
-
-
Save bg002h/e868c573d5be1862c16fd4b624fd1aaa to your computer and use it in GitHub Desktop.
Blockstream Satllite + gnuplot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step 1) Start your blocksat-cli monitorings...eg, blocksat-cli standalone monitor --report --log-scrolling --log-file | |
Step 2) cd into your .blocksat/logs directory | |
Step 3) Put the following into a text file in you logs directory with the name "pl" | |
myTitle="blank" | |
if (ARG2==8){ | |
myTitle="Power" | |
} else{ | |
if (ARG2==11){ | |
myTitle="SNR" | |
} else { | |
if (ARG2==14){ | |
myTitle="BER" | |
} else { | |
if (ARG2==18){ | |
myTitle="Packet Errors" | |
} | |
} | |
} | |
} | |
myTitle2="blank" | |
if (ARG3==8){ | |
myTitle2="Power" | |
} else{ | |
if (ARG3==11){ | |
myTitle2="SNR" | |
} else { | |
if (ARG3==14){ | |
myTitle2="BER" | |
} else { | |
if (ARG3==18){ | |
myTitle2="Packet Errors" | |
} | |
} | |
} | |
} | |
set terminal wxt size 1920,1280 | |
set size 1,1 | |
set xtics mirror | |
set ytics nomirror | |
set xtics 86400/12 | |
set y2tics | |
#set grid x2tics | |
set grid xtics x2tics ytics y2tics mxtics mytics | |
#show grid | |
colname=ARG2+0 | |
col2name=ARG3+0 | |
set xdata time | |
set format x "%m-%d\n%H" | |
set timefmt "%Y-%m-%d %H:%M:%S" | |
set x2data time | |
set format x2 "%m-%d\n%H" | |
myTitle=myTitle." (Left)" | |
myTitle2=myTitle2." (Right)" | |
if (ARG4==1){ | |
plot ARG1 using 1:colname title myTitle with lp pointtype 3 axes x1y1 smooth acsplines, ARG1 using 1:col2name title myTitle2 axes x2y2 with lp pointtype 4 smooth acsplines | |
} else { | |
plot ARG1 using 1:colname title myTitle with lp pointtype 3 axes x1y1, ARG1 using 1:col2name title myTitle2 axes x2y2 with lp pointtype 4 | |
} | |
#column 8 is power, 11 is SNR, 14 is BER, 18 is packet errors | |
pause -1 | |
Step 4) gnuplot -c ./pl NameOfLogFile.log 11 18 0 (where 11 is power, 18 is Packet ERRORS, 8 is Power, 14 is Bit Error Rate the zero or 1 at the end is for "smoothing") | |
Step 5) edit code to change xtics which is set to 12 tics per roughtly every 2 days |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment