# Graphs for dump1090 -- my version with install script

**URL:** <https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263>\
**Category:** ADS-B Flight Tracking\
**Created:** [February 24, 2019, 2:18am UTC](https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263 "2019-02-24T02:18:13Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![wiedehopf](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/wiedehopf/32/114045_2.png) [@wiedehopf](https://discussions.flightaware.com/u/wiedehopf)\
**Post date:** [February 24, 2019, 2:18am UTC](https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263/1 "2019-02-24T02:18:13Z")

</div>

As i don’t like all the clutter the adsb receiver-project introduces, i’ve written an install script for the collectd graphs for dump1090.

It is not widely tested yet and feedback regarding the layout of the graphs is very welcome. I’ve kept it rather close to the receiver-project.

#### Installation and configuration are described on the github page: [GitHub - wiedehopf/graphs1090: Graphs for readsb / dump1090-fa / dump1090 (based on dump1090-tools by mutability)](http://github.com/wiedehopf/graphs1090#graphs1090)

If you already have graphs installed i would not recommend installing these. While in my mind it should work there might be unforeseen problems 🙂

At this point a thank you to mutability for originally creating those graphs ([GitHub - mutability/dump1090-tools: Random scripts for doing stuff with dump1090](https://github.com/mutability/dump1090-tools)) and thank you to the adsb receiver-project without which i would have probably never installed the graphs myself.

I’ve made some changes, including the following:

- Remote messages are counted towards the message rate, that means if you use another receiver to funnel messages into dump1090, you will now have a message rate graph.
- Added airspy CPU usage
- More time ranges for the graphs (48h, 14d, 90d, 180d, 730d)
- Increased graph sizes somewhat
- Slightly different webpage layout
- No php necessary to serve the page
- The secondary grid is drawn white, make it easier to read the graphs in my opinion (slight artifacts in the colored areas, can’t disable the secondary grid lines)

Anyway this wasn’t meant to be the invention of something new, just a way to install only collectd graphs comfortably.

Not yet fully populated graphs look like this:

 ![Screenshot%20from%202019-02-25%2019-15-05](https://us1.discourse-cdn.com/flex019/uploads/flightaware/original/3X/d/a/da684465c78dced274e9bb3b991a1fa4f7ca42cc.png)

---

<div class="post-metadata">

**Author:** ![abcd567](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/abcd567/32/113769_2.png) [@abcd567](https://discussions.flightaware.com/u/abcd567)\
**Post date:** [February 24, 2019, 3:17am UTC](https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263/2 "2019-02-24T03:17:05Z")

</div>

# Great! Well done

### SCREENSHOT 1 of 2

 ![image.png](https://us1.discourse-cdn.com/flex019/uploads/flightaware/original/3X/4/9/49f1da7b04440f9280653461bfe35e8523b2c83b.png)

.  
.

### SCREENSHOT 2 of 2

**(screenshot taken only 10 minutes after install, hence graph is only slightly filled)**

 ![image.jpg](https://us1.discourse-cdn.com/flex019/uploads/flightaware/original/3X/7/d/7d24c4873a8685e955f09640106560523b637a09.jpeg)

---

<div class="post-metadata">

**Author:** ![abcd567](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/abcd567/32/113769_2.png) [@abcd567](https://discussions.flightaware.com/u/abcd567)\
**Post date:** [February 24, 2019, 6:03pm UTC](https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263/24 "2019-02-24T18:03:43Z")

</div>

# Tested on following installs:

| Image | Integral Decoder | Installed Decoder | Dump1090 Graphs | System Graphs |
| --- | --- | --- | --- | --- |
| **Piaware SD card image** | dump1090-fa | ➖ | ✅ OK | ✅ OK |
| **Raspbian Stretch Lite image** | ➖ | dump1090-fa | ✅ OK | ✅ OK |
| **Raspbian Stretch Lite image** | ➖ | dump1090-mutability **ver 1.15~dev** | ✅ OK | ✅ OK |
| **Raspbian Stretch x86 iso in VM** | ➖ | dump1090-mutability **ver 1.15~dev** | ✅ OK | ✅ OK |
| **Pi24 SD card image** | dump1090-mutability **ver 1.14** | ➖ | ❌ Lot of Missing Graphs. See details below | ✅ OK |

.

### Missing Graphs on Flightradar24’s Pi24 SD Card Image

**Seems dump1090-mutability ver 1.14 lacks a lot compared to ver 1.15~dev**

@obj : Any comments / advise will be very helpful  
.

**SCREENSHOT 1 of 2**

 ![image](https://us1.discourse-cdn.com/flex019/uploads/flightaware/original/3X/b/5/b549631906b99a7760bfb7b110aae56f8f56bfc2.png)

.

**SCREENSHOT 2 of 2**

 ![image](https://us1.discourse-cdn.com/flex019/uploads/flightaware/original/3X/4/3/43894ab3908cf6ac96440edd483922cfd8b3f45f.png)

---

<div class="post-metadata">

**Author:** ![wiedehopf](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/wiedehopf/32/114045_2.png) [@wiedehopf](https://discussions.flightaware.com/u/wiedehopf)\
**Post date:** [February 24, 2019, 6:14pm UTC](https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263/25 "2019-02-24T18:14:04Z")

</div>

Could you post the total section of [http://pi/dump1090/data/stats.json](http://pi/dump1090/data/stats.json) ?

---

<div class="post-metadata">

**Author:** ![abcd567](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/abcd567/32/113769_2.png) [@abcd567](https://discussions.flightaware.com/u/abcd567)\
**Post date:** [February 24, 2019, 6:26pm UTC](https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263/26 "2019-02-24T18:26:42Z")

</div>

> [@wiedehopf](#):
>
> total section of [http://pi/dump1090/data/stats.json](http://pi/dump1090/data/stats.json)

### Pi24 image with dump1090-mutability _ver 1.14_

`http://192.168.0.21/dump1090/data/stats.json `

```auto
{
"latest":{"start":1551032577.6,"end":1551032577.6,"local":{"blocks_processed":0,"blocks_dropped":0,"modeac":0,"modes":0,"bad":0,"unknown_icao":0,"accepted":[0],"strong_signals":0},"cpr":{"surface":0,"airborne":0,"global_ok":0,"global_bad":0,"global_range":0,"global_speed":0,"global_skipped":0,"local_ok":0,"local_aircraft_relative":0,"local_receiver_relative":0,"local_skipped":0,"local_range":0,"local_speed":0,"filtered":0},"cpu":{"demod":0,"reader":0,"background":0},"tracks":{"all":0,"single_message":0},"messages":0},
"last1min":{"start":1551032517.6,"end":1551032577.6,"local":{"blocks_processed":916,"blocks_dropped":0,"modeac":0,"modes":96003,"bad":69069,"unknown_icao":20140,"accepted":[3130],"strong_signals":0},"cpr":{"surface":0,"airborne":349,"global_ok":306,"global_bad":0,"global_range":0,"global_speed":0,"global_skipped":4,"local_ok":36,"local_aircraft_relative":36,"local_receiver_relative":0,"local_skipped":7,"local_range":0,"local_speed":0,"filtered":0},"cpu":{"demod":10060,"reader":2106,"background":116},"tracks":{"all":2,"single_message":1},"messages":3130},
"last5min":{"start":1551032277.6,"end":1551032577.6,"local":{"blocks_processed":4578,"blocks_dropped":0,"modeac":0,"modes":481397,"bad":344980,"unknown_icao":100894,"accepted":[16895],"strong_signals":0},"cpr":{"surface":2,"airborne":1979,"global_ok":1725,"global_bad":0,"global_range":0,"global_speed":0,"global_skipped":10,"local_ok":223,"local_aircraft_relative":223,"local_receiver_relative":0,"local_skipped":33,"local_range":0,"local_speed":0,"filtered":0},"cpu":{"demod":58794,"reader":11259,"background":694},"tracks":{"all":16,"single_message":4},"messages":16895},
"last15min":{"start":1551031677.6,"end":1551032577.6,"local":{"blocks_processed":13732,"blocks_dropped":0,"modeac":0,"modes":1454387,"bad":1038709,"unknown_icao":305454,"accepted":[52937],"strong_signals":0},"cpr":{"surface":5,"airborne":6168,"global_ok":5370,"global_bad":0,"global_range":0,"global_speed":0,"global_skipped":15,"local_ok":664,"local_aircraft_relative":664,"local_receiver_relative":0,"local_skipped":139,"local_range":0,"local_speed":0,"filtered":0},"cpu":{"demod":186855,"reader":30811,"background":2204},"tracks":{"all":51,"single_message":10},"messages":52937},
"total":{"start":1551029577.5,"end":1551032577.6,"local":{"blocks_processed":45613,"blocks_dropped":0,"modeac":0,"modes":4912023,"bad":3470973,"unknown_icao":1036331,"accepted":[200771],"strong_signals":0},"cpr":{"surface":12,"airborne":22754,"global_ok":19873,"global_bad":0,"global_range":0,"global_speed":0,"global_skipped":33,"local_ok":2295,"local_aircraft_relative":2295,"local_receiver_relative":0,"local_skipped":598,"local_range":0,"local_speed":0,"filtered":0},"cpu":{"demod":626526,"reader":97491,"background":7587},"tracks":{"all":240,"single_message":40},"messages":200771}
}

```

---

<div class="post-metadata">

**Author:** ![wiedehopf](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/wiedehopf/32/114045_2.png) [@wiedehopf](https://discussions.flightaware.com/u/wiedehopf)\
**Post date:** [February 24, 2019, 6:31pm UTC](https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263/27 "2019-02-24T18:31:15Z")

</div>

Yeah that’s a different format. As in the number of remote accepted messages is missing.  
(And because i add local and network message rates up the message rate graphs don’t work)

Anyway who uses version 1.14? 🙂

---

<div class="post-metadata">

**Author:** ![abcd567](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/abcd567/32/113769_2.png) [@abcd567](https://discussions.flightaware.com/u/abcd567)\
**Post date:** [February 24, 2019, 6:34pm UTC](https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263/28 "2019-02-24T18:34:14Z")

</div>

> [@wiedehopf](#):
>
> Anyway who uses version 1.14?

Majority of Flightradar24 feeders who use FR24’s SD Card image nick-name _ **Pi24** _.  
This image has integral dump1090-mutability **ver 1.14**.

---

<div class="post-metadata">

**Author:** ![wiedehopf](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/wiedehopf/32/114045_2.png) [@wiedehopf](https://discussions.flightaware.com/u/wiedehopf)\
**Post date:** [February 24, 2019, 6:44pm UTC](https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263/29 "2019-02-24T18:44:27Z")

</div>

Yeah i’m well aware, that question was rhetorical.

They will have to upgrade to 1.15, i like combining the network and local receiver messages in the graphs.  
Gives compatibility for combine1090 or airspy users.

Too bad rrdgraph does not just assume all unknown values if a .rrd file is missing.  
Then it could draw at least the rest of the graph instead of spitting out an error and not producing the picture at all.

---

<div class="post-metadata">

**Author:** ![AhrBee](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/ahrbee/32/114030_2.png) [@AhrBee](https://discussions.flightaware.com/u/AhrBee)\
**Post date:** [February 24, 2019, 9:57pm UTC](https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263/31 "2019-02-24T21:57:23Z")

</div>

@wiedehopf very well done! Your process made it quite simple for me to have the ‘performance in a picture’ without having to worry about the effects on the existing piaware/dump1090-fa installation, something I have been wanting for a while, but never had the time/nerve/motivation to take apart and tailor. Thank you so very much for the investment of your skill and perseverence in doing this. If you are ever in the States in the Black Hills of South Dakota, PM me - I will be honored to buy you at least one beverage of your choosing. tschüss (if that’s still used today)

---

<div class="post-metadata">

**Author:** ![wiedehopf](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/wiedehopf/32/114045_2.png) [@wiedehopf](https://discussions.flightaware.com/u/wiedehopf)\
**Post date:** [February 24, 2019, 10:05pm UTC](https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263/32 "2019-02-24T22:05:01Z")

</div>

> [@AhrBee](#):
>
> very well done!

Thank you 🙂

Actually i’ve just buffed out a minor kink, if you want to update to the most current version you can just run the install script again. (It will keep all the data you’ve collected so far)  
One of the graphs was being generated too often resulting in this interesting CPU graph:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/flightaware/original/3X/c/4/c464c2e726b533f1352876671167bc1639e35b7f.png)

Instead of generating the 7 day graphs at minute 8 and 40, they were being generated every minute from minute 8 to 40 after the hour 🙂

---

<div class="post-metadata">

**Author:** ![abcd567](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/abcd567/32/113769_2.png) [@abcd567](https://discussions.flightaware.com/u/abcd567)\
**Post date:** [February 24, 2019, 10:21pm UTC](https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263/33 "2019-02-24T22:21:27Z")

</div>

> [@AhrBee](#):
>
> Your process made it quite simple for me to have the ‘performance in a picture’ without having to worry about the effects on the existing piaware/dump1090-fa installation, something I have been wanting for a while,

That is what I also wanted for long time. No email, no database, no php, just simple graphs, but was lazy to do it.

Thanks to @wiedehopf who took the initiative and did it.

.

---

<div class="post-metadata">

**Author:** ![wiedehopf](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/wiedehopf/32/114045_2.png) [@wiedehopf](https://discussions.flightaware.com/u/wiedehopf)\
**Post date:** [February 24, 2019, 11:32pm UTC](https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263/34 "2019-02-24T23:32:01Z")

</div>

What do you guys think, should the big graph be a little smaller than it currently is?  
This would be a little closer to the size in the receiver-project.

Like this:

 ![Screenshot%20from%202019-02-25%2000-17-51](https://us1.discourse-cdn.com/flex019/uploads/flightaware/original/3X/7/8/787c5a7b1f3f599f50dcd851cc09953996023642.png)

Or do you prefer it being the combined width of 2 small graphs?  
Like this:

 ![Screenshot%20from%202019-02-25%2000-30-46](https://us1.discourse-cdn.com/flex019/uploads/flightaware/original/3X/d/f/dfe38d1c7ca40c16911dc1896dd826465ddaf311.png)

Overall i’ve tried to make the graphs and web page a little bigger, so they look good on bigger monitors.

Basically the webpage exactly fits the full width of my small laptop screen (1366x768) without scaling down the images.

For bigger monitors the webpage displays white borders left and right and keeps the panel at around 1362 pixels.

---

<div class="post-metadata">

**Author:** ![thespeedycab](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/thespeedycab/32/137126_2.png) [@thespeedycab](https://discussions.flightaware.com/u/thespeedycab)\
**Post date:** [February 25, 2019, 2:19am UTC](https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263/35 "2019-02-25T02:19:34Z")

</div>

from aesthetics I favor the second one with the wider graph.  
there may be benefit to having them visually stand out from the receiver project so as to avoid confusion.  
Either way, they look great.

---

<div class="post-metadata">

**Author:** ![abcd567](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/abcd567/32/113769_2.png) [@abcd567](https://discussions.flightaware.com/u/abcd567)\
**Post date:** [February 25, 2019, 6:00am UTC](https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263/36 "2019-02-25T06:00:29Z")

</div>

> [@wiedehopf](#):
>
> Or do you prefer it being the combined width of 2 small graphs?

Yes, this is what I prefer. Thanks for asking.

---

<div class="post-metadata">

**Author:** ![biekerc](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/biekerc/32/136579_2.png) [@biekerc](https://discussions.flightaware.com/u/biekerc)\
**Post date:** [February 25, 2019, 6:01am UTC](https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263/37 "2019-02-25T06:01:31Z")

</div>

The second option is better, from a design standpoint. Think of a newspaper front page that has one column width elements, two column elements, they all are aligned.

---

<div class="post-metadata">

**Author:** ![wiedehopf](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/wiedehopf/32/114045_2.png) [@wiedehopf](https://discussions.flightaware.com/u/wiedehopf)\
**Post date:** [February 25, 2019, 11:11am UTC](https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263/38 "2019-02-25T11:11:48Z")

</div>

I’ve beaten the html/css and users can now freely resize the images in an extra configuration file 😉

Rejoice people with ridiculously large monitors!

I’ll tweak it a bit before pushing it out to github, so it’s not live yet.

---

<div class="post-metadata">

**Author:** ![AhrBee](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/ahrbee/32/114030_2.png) [@AhrBee](https://discussions.flightaware.com/u/AhrBee)\
**Post date:** [February 25, 2019, 12:21pm UTC](https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263/39 "2019-02-25T12:21:38Z")

</div>

Don’t know if this feature was on purpose or by accident, but I _LIKE_ having the faint gridlines in the solid area of a graph (arrows point to them in the picture below). It gives me a better opportunity to know the detailed numbers behind the picture without having to go look a the source data. Time to dust off my ancient RRDtool books just to see how it is done - thank you!

![image](https://us1.discourse-cdn.com/flex019/uploads/flightaware/original/3X/2/d/2dfc4eaeee815184510df92211788932cfc55dcf.png)

---

<div class="post-metadata">

**Author:** ![wiedehopf](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/wiedehopf/32/114045_2.png) [@wiedehopf](https://discussions.flightaware.com/u/wiedehopf)\
**Post date:** [February 25, 2019, 12:35pm UTC](https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263/40 "2019-02-25T12:35:18Z")

</div>

> [@AhrBee](#):
>
> Don’t know if this feature was on purpose or by accident, but I _LIKE_ having the faint gridlines in the solid area

I made the secondary grid color white because you can’t disable it and i wanted to remove some clutter from the pictures.  
(Too many grid lines in my opinion)

Have a look at `/usr/share/graphs1090.sh`, that is where the graphs are are generated.

`grid="-c GRID#FFFFFF --grid-dash 2:1" `

That is the relevant line.  
It’s a bash variable that makes it into all graph commands.

---

<div class="post-metadata">

**Author:** ![wiedehopf](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/wiedehopf/32/114045_2.png) [@wiedehopf](https://discussions.flightaware.com/u/wiedehopf)\
**Post date:** [February 25, 2019, 1:51pm UTC](https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263/41 "2019-02-25T13:51:38Z")

</div>

Configurable graph size and font size added: [GitHub - wiedehopf/graphs1090: Graphs for readsb / dump1090-fa / dump1090 (based on dump1090-tools by mutability)](https://github.com/wiedehopf/graphs1090#configuration-optional)

To upgrade to the new version, just run the install again.

---

<div class="post-metadata">

**Author:** ![pdops1](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/pdops1/32/125223_2.png) [@pdops1](https://discussions.flightaware.com/u/pdops1)\
**Post date:** [February 25, 2019, 5:17pm UTC](https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263/42 "2019-02-25T17:17:37Z")

</div>

@wiedehopf very well done! It’s great to have the graphs without affecting the existing piaware/dump1090-fa page.

Everything works for me except for the ‘Bandwidth Usage’ graph. My RPi is on a wired connection, if that matters.

[Next page](https://discussions.flightaware.com/t/graphs-for-dump1090-my-version-with-install-script/46263.md?page=2)
