Web Portal and Collectd/rrd graphs automated installation

AnirbanSen

New Member
I have installed dump1090-mutability on my Ubuntu Desktop, using:
Code:
cd ~
git clone https://github.com/mutability/dump1090.git
cd dump1090
make
However I get error when I try to install "collectd" using following code:
Code:
cd ~
wget http://raspi.ayadex.com/volatile/web_install.sh
sudo chmod +x web_install.sh
sudo ./web_install.sh "dump-tools"
I think the reason is that in your files you have used path "/home/pi/" whereas in Ubuntu Desktop this is not applicable. Can you please let me know how to install collected on Ubuntu Desktop using web_install.sh?

dump1090-mutability on my Ubuntu Desktop
(my Desktop is multi-boot: Win XP Professional SP3, Win 7 Professional, & Ubuntu 14.04
)

View attachment 1965
Hi,
http://raspi.ayadex.com no longer resolves. So how to best get
(Slightly thread-stealing my own thread here but not sure if it is worth it to make a new thread)

I've made an additional tool that will allow you to make a basic in-between interface that is shown when you go to http://<your-raspberry-pi-ip-address>. it has a link to the dump1090 tool, and additionally can have links to your flight-aware statistics page and plane-feeder sharing page. I'm planning on expanding the functionality/adding more customization options later on but I think it is better to share it first so I can get an idea about what people want with it/would like to see added/changed.

to install/use the script:
Code:
cd ~
sudo wget http://raspi.ayadex.com/volatile/web-portal/web_portal_generator.sh
sudo chmod +x web_portal_generator.sh
sudo ./web_portal_generator.sh
and follow the instructions ;)

====================================

Hi everyone,
I've been posting solely in the adsb diy antenna thread (even though it wasn't all about antennas). I got urged by the other thread-readers to post this in a new thread as it is more about software and not really about antennas.

I'm a student from the netherlands, I studied Electrical Engineering and currently studying Computer Science at the Technical University of Eindhoven. I love programming and got back into my hobby of planes/listening in to them as my parents live quite close to Schiphol Airport, the main airport of the netherlands. (I've got some other HF/VHF/UHF scanners as well)

I've worked on implementing some requests/bug fixes for dump1090-mutability, am busy developing my "central control panel" and more. (currently also working on a complete rewrite of mutability's dump1090 webUI)

The tool I made is mostly script based but it simplifies the installation of collectd/rrd graphs by a large amount (that is what it was written for).

This is a quick page I made to be able to simultaneously view my three raspberry-pi graphs. These graphs are all made by collectd/rrd.

(I'm busy developing my site so it can be changed/(non-)functional and up/down but I try to keep it as functional as possible whilst developing)

please note that this is an early alpha release/the software is volatile -> my way of indicating I'll probably be changing it often/pushing small updates. I do not guarantee that it works but I will try and make it work as good as I can. if it doesn't, post back here and let me know! (the base for this script/collectd is written by mutability, I changed it in multiple places and made the installation scripts etc)

Some starting assumptions the script makes:
- You're running dump1090-mutability (for the stats generation)
- You have installed lighttpd and the dump-1090 mutability mod.
(if not see this post, after installing lighttpd you'll probably also have to change your dump1090-mutability config to set the internal webserver port to 0, just run "sudo dpkg-reconfigure dump1090-mutability" and only change the web-server port)

<below is a copy-paste from my original post in the antenna thread>

version 2.0 of the installation script is available
- fancier installation script, streamlined installation process somewhat. (crontab automated)
- updater script added, you can now update webui/graph generation/both directly from live/volatile versions hosted on my webserver. if it doesnt work you also have a rollback function.
if you want to use this/switch to this you can do the following:

Installation

Situation 1 - clean install/not installed dump-tools with my other script before.

change to home directory, wget the file from the server, make it executable and sudo-run it.

Code:
cd ~
wget http://raspi.ayadex.com/volatile/web_install.sh
sudo chmod +x web_installer.sh
sudo ./web_installer.sh "dump-tools"
this should start the installation process, printing some information along the way.
if it goes according to plan it will ask you to check if the graphs are showing/working, so go to your browser and check if that is the case.

if it is, enable automatic graph generation by running
Code:
cd /home/pi/dump1090-tools
sudo ./install.sh "crontab"
that's it for installation! (Note, it can say "no crontab for root" if you run the crontab command once, if that is the case, just rerun it and it should not display that message anymore)

Situation 2 - dirty installation/installed with my previous installation script
change to home directory, wget the file from the server, make it executable and sudo-run it.

Code:
cd ~
wget http://raspi.ayadex.com/volatile/web_instal.sh
sudo chmod +x web_installer.sh
sudo ./web_installer.sh "dump-tools" "remove-old"
this will first remove your old installation. but save the index.html, collectd.conf and make-graphs.sh file and store them in a directory called /dump-tools-old so you can resuse them/manually change the new versions to reflect your own additions.

there is no need to run the crontab part of the script as you already have the changed crontab pointing to the make-graphs.sh script which is still in the same location so that should still function.

Updating/Reverting:
change to your home directory, then to dump-tools and run the update.sh script.

updating webUI
Code:
cd /home/pi/dump-tools
sudo ./update.sh "webui"
updating graph generation
Code:
cd /home/pi/dump-tools
sudo ./update.sh "graphs"
updating both webUI and graphs
Code:
cd /home/pi/dump-tools
sudo ./update.sh "all"
reverting webUI
Code:
cd /home/pi/dump-tools
sudo ./update.sh "webui" "revert"
reverting graph generation
Code:
cd /home/pi/dump-tools
sudo ./update.sh "graphs" "revert"
reverting both webUI and graphs
Code:
cd /home/pi/dump-tools
sudo ./update.sh "all" "revert"

Hi,

http://raspi.ayadex.com no longer resolves. So how to best get the .sh file?

Anirban
 

AnirbanSen

New Member
Hey, thanks.
I am running FR24 as of now and plan to add the other feeds as soon as I make my antenna better. I'll have go remove 1.4 mutability and install 1.5 first and switch my DVB-t2 to Beast mode as well.

In the meantime, Abcd567 had written that instead of checking statistics online, one could use collectd and rrd to find learn about the statistics internally. However, the .sh file for this purpose (hosted at ayadex.com is gone).

Anirban
 

AnirbanSen

New Member
Hi, thanks for the reply.
Somehow I hadn't seen the second link :rolleyes:

I installed graphs 1090 and the graphs seems to be getting populated slowly.

Just realised - I had purged rrd before. How will it affect the data? Educate me.
(I'm new to both Linux/Pi and flight tracking.)
 

ab cd

Senior Member
I'm not aware of these scripts (not been around that long)

But it sounds like this might be what you are looking for: https://github.com/jprochazka/adsb-receiver#the-ads-b-receiver-project-airplane

If you want the graphs only, this might be good for you: https://github.com/wiedehopf/graphs1090#graphs1090
Actually it was member xforce30164 (aka ayadex) who first introduced these graphs for dump1090-mutability to ADS-B fans, and wrote an install script. In Feb 2015, he started posting in the thread "Best DIY Antenna":

https://forum.planefinder.net/threads/ads-b-diy-antenna.23/post-2762

He has posted his initial work on graphs in the Best DIY Antenna thread. However as this subject did not relate to Antenna, other members suggested him to create a seperate thread for graphs. Xforce30164 then created this thread.

Xforce30164 however abandoned his work as it was affecting his studies at University.

Lated J Prochazka started from where Xforce30164 has left, developed and improve it a lot at Flightaware forum creating "adsb receiver project" at github.

Now wiedehopf has improved upon this by providing a "graphs only" method, which is very suitable for those who dont want all the stuff in the "adsb receiver project of JProchazka, but want graphs only. I have myself switched from JP's web portal to weidehopf's graph. I like them.
 

AnirbanSen

New Member
Actually it was member xforce30164 (aka ayadex) who first introduced these graphs for dump1090-mutability to ADS-B fans, and wrote an install script. In Feb 2015, he started posting in the thread "Best DIY Antenna":

https://forum.planefinder.net/threads/ads-b-diy-antenna.23/post-2762

He has posted his initial work on graphs in the Best DIY Antenna thread. However as this subject did not relate to Antenna, other members suggested him to create a seperate thread for graphs. Xforce30164 then created this thread.

Xforce30164 however abandoned his work as it was affecting his studies at University.

Lated J Prochazka started from where Xforce30164 has left, developed and improve it a lot at Flightaware forum creating "adsb receiver project" at github.

Now wiedehopf has improved upon this by providing a "graphs only" method, which is very suitable for those who dont want all the stuff in the "adsb receiver project of JProchazka, but want graphs only. I have myself switched from JP's web portal to weidehopf's graph. I like them.
Hey abcd,
Thanks for the update. Lots have happened in 4 years :) Been a following a lot of your instructions over the last few days.

I had always meant to build a flight tracker but work kept me busy. I've bookmarked your instructions regarding setting up the multiple feed (April 2019) but will wait till I can get/make a good antenna. I'm on the 4th floor of an 8 storeyed building and elevator room roof (say 9th floor) is above that. I plan to climb up and install an antenna on the 9th floor (it has a 360 view) and it should last 1C winters and 45C summers, the monsoon and 100Km/h win gusts as well. I am not sure a spider antennas may last. So far I am using the standard DVB antenna for testing, but have ordered a PCB antenna which may work inside a PVC. (www.aliexpress.com/item/32931112160.html?productId=32931112160). Fingers crossed.

This is off-topic so any further questions I'll post on the other forums over the next few months.
 

Attachments

caius

Member
Yes, I just reinstated my ADS-B receiver after it being off air for quite a while. I had quite a bit of software to update..
 

caius

Member
Currently I'm feeding planefinder, flightaware, fr24, adsbexchange and will feed 360radar if they ever reply to my email about it.
 

AnirbanSen

New Member
Same here. I also signed up for https://opensky-network.org/. I like the web-based directional range under antenna profiles amongst other details.

Any idea if planeplotter is still around?

Also, I was wondering if there any tool for a RPi (or other type of PC) which looks at ADS-B data and analyses it for possible collision alerts (like TCAS)?
 

caius

Member
Planeplotter is still around, however I find extremely frustrating to use. It sorely needs refactoring to modernise the user interface. It has a lot of functionality that other software doesn't offer - for example obtaining locations using radar sweeps and they were the first to implement an mlat system as far as I know. The main problem is that it looks like it was written in the mid 90s and someone laid out the menus with a shotgun. It also has sketchy performance when there are many aircraft on the display. I've frequently had it lock up or become very slow to respond, so I don't often bother with it unless I want to do something particular.
 
Top