# Scripted Stats

**URL:** https://discussions.flightaware.com/t/scripted-stats/78518
**Category:** ADS-B Flight Tracking
**Created:** [August 5, 2021, 8:59pm UTC](https://discussions.flightaware.com/t/scripted-stats/78518 "2021-08-05T20:59:28Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![muckypaws](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/muckypaws/32/81731_2.png) [@muckypaws](https://discussions.flightaware.com/u/muckypaws)
#### Post date: [August 5, 2021, 8:59pm UTC](https://discussions.flightaware.com/t/scripted-stats/78518/1 "2021-08-05T20:59:28Z")

</div>

I apologise if this has been asked a gazillion times, but my google foo appears not to be strong.

How do I obtain various stats from the FlightAware instance on my Pi? Specifically I’m looking for dump1090\_total\_ac\_positions, dump1090\_total\_ac etc, that the web page brings up.

I’ve checked /run/dump1090-fa and /var/log without success, so assuming they’re called something else?

Any help would be appreciated to point me in the direction of these and current flights being tracked.

Kind Regards  
Jason

---

<div class="post-metadata">

### Author: ![caius](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/caius/32/113839_2.png) [@caius](https://discussions.flightaware.com/u/caius)
#### Post date: [August 6, 2021, 12:12am UTC](https://discussions.flightaware.com/t/scripted-stats/78518/2 "2021-08-06T00:12:10Z")

</div>

You can get stats from the json files generated by dump1090: [dump1090/README-json.md at master · flightaware/dump1090 · GitHub](https://github.com/flightaware/dump1090/blob/master/README-json.md)

If you are looking at something to log and plot that data, then you could try [graphs1090](https://github.com/wiedehopf/graphs1090/commits/master).

---

<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: [August 6, 2021, 4:51am UTC](https://discussions.flightaware.com/t/scripted-stats/78518/3 "2021-08-06T04:51:43Z")

</div>

> [@muckypaws](#):
>
> How do I obtain various stats from the FlightAware instance on my Pi? Specifically I’m looking for dump1090\_total\_ac\_positions, dump1090\_total\_ac etc, that the web page brings up.

You won’t find those exact numbers, they are piaware stats and not available locally i believe.

> [@muckypaws](#):
>
> current flights being tracked.

You checked in /run/dump1090-fa and didn’t find the current flights being tracked?  
That’s strange.

---

<div class="post-metadata">

### Author: ![foxhunter](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/foxhunter/32/113733_2.png) [@foxhunter](https://discussions.flightaware.com/u/foxhunter)
#### Post date: [August 6, 2021, 5:17am UTC](https://discussions.flightaware.com/t/scripted-stats/78518/4 "2021-08-06T05:17:42Z")

</div>

You can’t

the Piaware stats are calculated via different parameters not using all data you are sending.  
I am also not aware of any script pulling this information from the website itself. Tried it several times using python etc. but wasn’t very successful so far.

I am simply copy&paste them from the stats page from time to time.  
As the stats are available for the last 30 days you do not need to do that every day.

---

<div class="post-metadata">

### Author: ![muckypaws](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/muckypaws/32/81731_2.png) [@muckypaws](https://discussions.flightaware.com/u/muckypaws)
#### Post date: [November 22, 2021, 11:06pm UTC](https://discussions.flightaware.com/t/scripted-stats/78518/5 "2021-11-22T23:06:46Z")

</div>

I solved it… I think! and Created an LCD Dashboard that shows the stats in real-time along with total flights detected that day. I haven’t added in 978 support yet as that’s not used in Europe.

> **[Ground Control to Major Tom – Part 3 – Dashboard](https://muckypaws.com/2021/11/22/ground-control-to-major-tom-part-3-dashboard/)**
>
> Following on from my Ground Control to Major Tom project, I offer a simple Dashboard using a two line LCD Display and some cheap components to show in real-time what’s happening with your fli…

---

<div class="post-metadata">

### Author: ![foxhunter](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/foxhunter/32/113733_2.png) [@foxhunter](https://discussions.flightaware.com/u/foxhunter)
#### Post date: [November 23, 2021, 9:23am UTC](https://discussions.flightaware.com/t/scripted-stats/78518/6 "2021-11-23T09:23:08Z")

</div>

Great work!

Just out of curiosity  
Did you also try to change the order of the two filters, so Uputronics first and then the blue FA towards the antenna?

I am still unsure which order would show better results if any.

Jetvision does have a display also in their Airsquitter Receivers, but i have no idea how this is implemented:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/flightaware/original/3X/f/2/f2384cf29724d30ebdedc40b59f32e7772b996db.jpeg)

---

<div class="post-metadata">

### Author: ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/system/32/38558_2.png) [@system](https://discussions.flightaware.com/u/system)
#### Post date: [November 23, 2022, 9:23am UTC](https://discussions.flightaware.com/t/scripted-stats/78518/7 "2022-11-23T09:23:51Z")

</div>

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
