Graphs for dump1090 -- my version with install script

Edit /usr/share/graphs1090/graphs1090.sh …
Adding all those variables is kinda annoying so that’s why not everything is configurable.

Anyhow you can change graphs1090.sh directly

 534 temp_graph_metric() {
 535     $pre
 536     rrdtool graph \
 537         "$1.tmp" \
 538         --end "$END_TIME" \
 539         --start end-$4 \
 540         $small \
 541         --title "Maximum Core Temperature" \                                                                                       
 542         --vertical-label "Degrees Celcius" \
 543         --right-axis 1:0 \
 544         --lower-limit 24 \
 545         --upper-limit 66 \
 546         -A \
2 Likes

Lovely, thanks. Is this something that will change back when there are updates (ie do I need to keep an eye on it)?

Yes, if you run the install script that file is overwritten.

@wiedehopf Is there a way we can draw a red line at -3db in your graphs? Thanks.
Example:
dump1090-localhost-signal-2h

Yes there is but it involves modifying graphs1090.sh …
Sorry not gonna add a convenient way to add such a line, don’t really see the point.

As for modifying graphs1090.sh … i’d have to look up myself how to draw a constant line … so not sure.
Good luck, maybe someone else knows.

1 Like

I believe that line was there by default in the old JProkrastra (sp?) graphs. I may be wrong. But it’s handy to keep an eye on your peaks when adjusting gain, no?

No, not really.
Due to how the signal strength compresses near -1.5 dBFS and that you normally have peaks up there with rtl-sdr … i don’t think it’s useful.
Thoughts on optimizing gain

I don’t think it’s a really useful thing to look at …

Then it should be easy for someone to find it in that shell script and copy it over.
But again, not putting it into my version.

Hi,

I did update graphs1090 some weeks ago and realized yesterday that the compare.sh script was no longer working.

I then discovered the new “enable_scatter” option and I enable it. The scatter files are now generated again, but there is a gap for days that generated no files, of course.

Is there a way to run the scatter.sh script on historical data, so I can fill that hole in the data/scatter files? I use compare.sh on multiple ranges and it would be great.

If not, I’ll pay more attention to the changelog next time :wink:

The data resolution goes down the longer the data is in the past.
If you want to get that data in the right place and stuff i’d suggest looking for the scatter.sh script and modifying as you want … as in try yourself.

That’s the answer I was expecting. Will do!
Thanks!

Anyone got any idea why this might happen?

Everything appears to be working, stats are normal, aircraft are normal, everything is normal except the ADS-B CPU Utilisation graph. This is the MTG site which is a Pi3B+ and an Airspy mini.

A reboot fixes it.

As you see, it’s done it a few times over the last six months. This is actually why I introduced a weekly reboot.

It’s probably how i get the process for airspy_adsb … i think i changed something to make it more robust.

Are you on the most recent graphs1090?

Been seeing something similar but my ADS-B CPU utilisation displays the wrong graph as though I was using an RTL type dongle instead of my Airspy R2 after a reboot.

A re-install fixes the problem until another reboot…

Yes using the current version of Graphs1090

This is the command that is used to get the airspy CPU utilisation:

PID=$(systemctl show -p MainPID airspy_adsb | cut -f 2 -d=); cat /proc/$PID/task/$(ls /proc/$PID/task | awk NR==3)/    stat | cut -d ' ' -f 14,15 && getconf CLK_TCK

I have no clue why you have issues …

That sounds like a plotting issue rather than data collection, it’s imparative to provide a screenshot for such issues.

Thanks @wiedehopf
What other screen shots do you need appart from the ADS-B CPU utilisation ?

This is what I currently have
image

That looks indeed similar, your description didn’t.
Anyhow … can you do a reboot to provoke it please?

And then show the output for this command:

PID=$(systemctl show -p MainPID airspy_adsb | cut -f 2 -d=); cat /proc/$PID/task/$(ls /proc/$PID/task | awk NR==3)/stat | cut -d ' ' -f 14,15 && getconf CLK_TCK

And for these commands:

systemctl show -p MainPID airspy_adsb
systemctl show -p MainPID airspy_adsb | cut -f 2 -d=

If there is more than short ouptut, maybe use pastebin.com to share the output.

Thanks @wiedehopf
Will do as you requested :face_with_monocle:

Thanks @wiedehopf

Just run the commands with everything running Ok and got

cat: /proc/365/task/395/: Is a directory
cat: stat: No such file or directory
100

systemctl show -p MainPID airspy_adsb
MainPID=365

systemctl show -p MainPID airspy_adsb | cut -f 2 -d=
365

Will do a reset in a while, just want to let it run for a bit

Yeah i screwed up the command when posting it here, corrected it now.
Anyhow i need to look at the stuff when the issue is happening and before you correct it.

Just wanted to get the confirmation of the error message :wink:

Got:
getconf CLK_TCK
591830 3252
100

will do a reset in a bit