Alert when "My aircraft" is picked up by my piaware

I’d love to see an option to get alerts when any aircraft I’ve added to “my flightaware” is being actively tracked via one of my ADSB recievers so I can watch it on my local piaware radar.

Would this be a feasible/useful feature?

What is your thoughts on the usefulness of it? You want to know when an aircraft you are “watching” is nearby?

I just think it’d be cool to know when a plane I’m interested in is being tracked by my reciever. Luckily, I happen to be close enough that I could potentially watch it taxi and such, which isn’t really an option via the website itself. And finally, pilots who are close enough to the airport could know when things like maintenance people have turned on the aircraft and similar. (I’m not a pilot personally, so this is more theory than anything.)

So really, other than the “that’s cool” factor, probably not a lot of practicality for most users, I guess. Without knowing the infrastructure/backend, I just thought… you already know which aircraft I have in “My FA” and additionally the tracking part of the site knows when my reciever is picking up an aircraft (since it shows in the track log when it’s my reciever that reported it) so I figured it probably wouldn’t take a whole lot to add such a feature. Admittedly, without knowing… it may be more effort than it’d be worth.

edited for clarity

You could run PlanePlotter and use a conditional expression to post an alert when one is seen.

While this is true, I’d either need to run it on my pi (which already complains often that it can’t run MLAT) or another piece of hardware. Since this installation is outdoors running in my barn, the additional hardware option isn’t really a viable option.

Eh, I guess it doesn’t really matter. I thought it’d be a cool idea, but if there is no interest, then it’s not worth the effort even if the data is already available.

I also think this feature would be useful. Having just setup a new piaware receiver I was just trying to figure out if it was already possible. I live in sight of a couple airports with a number of interesting planes that fly in and out. Would be great to get an alert when my piaware receiver picked one up so I could go outside and watch and maybe even get a photo of it in flight. Plane plotter would be an option, but I use laptop and don’t currently have a computer running 24/7 to monitor. An example might be to alert for any “RA*” tail numbers for large Russian transports.

The idea of alerts via PiAware/FligthFeeder Skyview is something we’d like to do. It is under consideration and dependent on the technical issues involved with implementing it.


I have this little piece of code running on my PiAware box. It will email me whenever a designated aircraft is picked up. It’s not elegant code. In fact, it’s my first attempt at Python, so don’t use this as an example of good code, but it seems to work. It was built on some examples I found by googling around. You will need an STMP server. PiAware doesn’t ship with one so you’ll have to add that. I used PostFix and routed everything to my IPS’s SMTP server using the “send outgoing mail via” option. There is no need to set it up to receive incoming mail because there won’t be any if you block it from having internet access, which is actually a good idea for a mailserver in this situation. There are likely some python classes that will send email so that might be an option for you too.

Feel free to copy and use as you wish, at your own risk. It’s unsupported code.

I would find this indispensable in daily life! I have tried many options but all fail except PlanePlotter BUT, that solution requires a Windows based PC to be powered up and running 24/7, which I do not want to have to have. A RPi solution would be perfect and would allow me to receive an email alert whenever an ‘interesting’ aircraft or flight was picked up on my receiver. The use of wildcards would be a necessary option as I don’t always know the flight number of RCH flights for example so making it like RCH% would alert me to any aircraft with a callsign beginning with RCH, that sort of thing.

Anyway, I look forward to anything the Flightaware team can put together, I’m sure it woul be a hit with at least the ‘spotters’ amongst us with limited resource and funds.

I had a go with this python3 script and it works but as I was not familiar with nor able to set up a local smtp server I wanted to use GMail for that purpose. After some fluffing around and testing this is what I had to change to get the emails goings.


server = smtplib.SMTP('localhost')
server.sendmail ('replace with your', ''], msg_full)


username = ''
password = 'yourgmailpassword'
server = smtplib.SMTP('')
server.sendmail ('', 'recipientemailaddress'], msg_full)

Just add some aircraft or callsigns, startup the script and wait for the news!

I hope this helps someone.


Thanks Michael. This is a better solution than running an SMTP server on the Pi. I just didn’t know how to do it. Thanks for the code. Much appreciated. …John

You’re welcome John. I will need to spend some time looking to see if I can use wildcards for the flights.

Found a little piece of useful info, the HEX codes in the watch list need to be in lower case! For a couple of days I only ever got alerts on callsigns so then converted all my HEX codes to lower case and then got alerts on those as well.


Of course the other issue is that you need to start this task, and restart it if it fails. I have just used a cron job to start it at boot. This works, until the task fails. It will fail if dump1090 fails, your internet goes down, a problem prevents it from connecting to gmail etc. There are many ways to monitor and restart a failed task in Linux. On the newer Debian versions, like Raspbian, Systemctl seems to be the new way to do this. I’m not familiar with Systemctl but I think I need to read up on it.

If anyone writes a Systemctl unit to start/restart a task which depends upon dump1090-fa and the network, like this one does, perhaps they could share it.

The piaware systemd service might be a good starting point: … re.service

Thanks! This seems to work for me:
OK, you’ll have to take my word for it. Every time I post the code, whether in a “code” block or not, I get an error saying I don’t have permission to post. What the heck is with that!

change the titles etc and I needed to added/changed these lines, plus calling the program of course.


1 Like

I would love to be able to get a text or email alert when an aircraft on a list shows up on my receiver as well.

you can already do things like this with my script :smiley: Dump1090 MySQL Database Script - E-Mail-Alert Lat/Lon/Alt/Hex/Flight-Filter - #12 by TomMuc

I would love to see this as well. I was driving down the highway past a local airport and saw C47- Tico Belle (SN 42-100591 (N3239T) on the apron getting ready to take off, engines turning. Would have been fun to watch her go.

This is something I’m going to look into soon. Just working out the details and whether it makes sense to do this on the server or client side