Custom alerts when a flight becomes visible and/or disappears from my tracking receiver

I want to setup email alerts when a particular flight becomes visible or disappears from my tracking receiver. It could be for a flight or a set of flights for a day or for range of days. How can I do that?

I don’t know how to write scripts so please pardon my ignorance.

TIA

Did you check this one? Maybe it helps you achieving your goal.

Thanks, yes I did look this up prior to posting my message. @TomMuc 's script writes to a db which I dont want to do as I am running a pi. Moreover, I am interested in both when the plane enters and moves out of my tracking area and from what i read, this script perhaps only alerts when the plane enters the tracking area.

the email alert part shouldn’t be too bad with a very simple mail program like SSMTP and using gmail. You could certainly add to the script an email alert.

Sorry, I have no idea how to write a script. What part of TomMuc’s code should I be looking at?

Gentle nudge for help

You can create the DB on ramdisk and copy it over to the SD card once a day.
That will not have an impact to the SD card