sdr-enthusiasts / docker-planefence Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Need to test configurations:
I'd like to include an additional link in my PA DM's - this could be to a picture or a wiki page. Basically a link that explains why the aircraft is interesting.
Maybe a specific header could be used in the plane-alert-db.txt file to define the field that is to be linked. I would add these to my online list (either full URLs or already shortened) and then users could edit to add their own links.
When doing a query like this:
https://planeboston.com/planefence/plane-alert/pa_query.php?tail=N14.NE&type=csv
More data is returned than is warranted by the query.
Here are the corresponding areas of the code that deals with the actual query and data return:
https://github.com/kx1t/docker-planefence/blob/dev/rootfs/usr/share/plane-alert/pa_query.sh#L82
https://github.com/kx1t/docker-planefence/blob/dev/rootfs/usr/share/planefence/pf_query.sh#L82
Note that I am using awk
's RegEx matching mechanism ($1~tail
) etc.
Insert a new column next to the ICAO (tag3) column and use the information from this ICAO column to pass to a variable and use this to create a link to a file (files probably best stored within the container - or stored in .planefence folder). This would then display a small image of a silhouette for each type of a/c on each line.
Please excuse the crude hack job.
All the silhouettes I use and make are of the name format ICAOTypeCode.bmp and are 85*20 px in size.
eg Boeing C-17 Globemaster = C17.bmp
Ideally has to be a bmp file as this is the standard used by VRS for which I have started making silhouettes. Could probably turn them into png files with a transparent background, but at the moment they are only bmp
Would need to gave a blank image, for those where there is no data in the tag 3 (ICAO) column or for those where a silhouette has not been created yet (I'm still working on making more)
Now that I'm putting together alert lists I have realised that it would be useful to have more data/columns in the alert list, even if they are not used by PA. For example I store the data in this format,
ICAO,Ident,Operator,Type,Mil/Civ/Pol,Tag,Category
As the list grows it would be useful to have this extra data the user knows why the plane is on the list, and to allow for better management of what aircraft should be altered on.
In short - richer tagging of the alert list.
Could planefence send a tweet with an end of day (or 24hr period) report - "Planefence saw Y aircraft today, with XXXX spending the most time within the fence" and then a link to that flght on adsbx ? (Or some other type of relevant summary info as you see fit)
This is possible using headless Chromium or Firefox, but it's very inefficient. A test build including chromium into the docker image bloated the image size from 324 Mb to 724 Mb, which is obviously unacceptable.
Would it be possible to add 2 buttons next to each entry in the plane fence - one to add the entry to the ignore list, and another to add the aircraft to the plane-alert watch list.
Would it be possible to add aircraft to the watch list from the plane alert web interface
Add the ability to also trigger a Plane Alert if any plane (without regard to its presents in the plane-alert-db) squawks in a range.
.env
All posted tweets from my setup are being posted with black map backgrounds. You can see what they look like here: https://twitter.com/msnairspots Planefence and the screenshot container are running on a Synology nas. Let me know what other details I can get you to help troubleshoot this. Thank you!
Heya.
On the planealert page it says that the table will list things in Reverse Chronological order (I take this to mean newest at the top) Each time I go on the plane alert page the newest is at the bottom and I have to manually resort the list. Not a problem, tis only a couple of clicks
Either my understanding of Reverse Chronological order is wrong (highly possible) or there is a bug and the table defaults to chronological order, rather than reverse.
Many thanks.
Could we link the "Flight" column of the Flights in Range table to a service that provides flight plans? FR24 maybe?
I am curious where all those bombardier jets come from which fly right over my house on their way to EDMO
Suggestion for enhancement - send notifications to a self hosted push aggregator service, such as Apprise (https://github.com/caronc/apprise) which would allow users to send notifications to services of their choice, but with only a single integration point for this project to maintain.
Not sure what causes this- observed tonight on N195PS
Generated tracking link was to https://flightaware.com/live/modes/a17c14/ident//redirect
Tail number correctly linking to https://flightaware.com/live/flight/N195PS
Other GA flights have the correct link
feature requested by @rhodan76
Hey
From the documentation it would appear that the ignore list works for PlaneFence. Would it be possible to get a separate ignore list for PlaneAlert??
Many thanks :)
great idea and easy to implement, suggested by @rhodan76
Config value: PF_DISTUNIT=nauticalmile
Discord distance reads as 1.2mi
should be 1.2nm
(assuming the value is correct)
Think of it as the opposite of the ignore list. In this case planefence would not trigger/log/tweet unless the aircraft seen was on the accept list. In my use case I want to trigger/log/tweet only on helicopters over my home city. I appreciate this is similar to how plane alert works, but as I want these tweets to be public I think it is a different use case.
It seems logical to have # control tweeting behaviour and $ to control rendering behaviour. The current implementation is counter-intuitive.
On sunny days the local flying club are setting off the fence repeatedly as they fly in and out all day. Would it be possible to define a list of 'ignore' aircraft that Planefence would NOT tweet about. Or even ignore altogether and not be logged.
Initial release testing
The tag Luftbrücke is being truncated to Luftbrcke - https://twitter.com/AKoeppern/status/1487207837717647365?s=20&t=Nh5jEnWm-RlQKW5Uj07DyA and Vashe Zdorov'ye to Vashe Zdorovye - https://twitter.com/AKoeppern/status/1487207160782241795?s=20&t=Nh5jEnWm-RlQKW5Uj07DyA The same thing happens with the discord notifications. I guess this could be down to how I have formatted my list (but not sure how). The chars are in the entries on Github, so they are not being stripped out when I publish the list. And if this turn out to be a feature/difficult to solve I can just change the Luftbrücke to Luftbrucke and the problem is kinda solved.
Could a link be added to the Plane Alert ignore-list from the PA homepage.
Tweet planes on the alert list if they come within a certain radius. Have a separate radius for plane alert, so planefence tweets all planes within 3 miles and plane-alert tweets all interesting planes with 20 miles.
Idea by @Sportsbadger
Default sort for PlaneFence and Plane-Alert should be newest entry first.
Thanks to @Sportsbadger for finding this.
Low priority / impact
Work around is to do a docker-compose down
or docker stop planefence
and then restart the container.
Send the event to be tweeted about as a json-formatted message to a MQTT server, a client of which in turn can decide whether to tweet about it or notify the home automation or to water plants :)
This could be in addition to the tweet setup, or the tweeting part could be extracted into its own container.
If a running total of the current day / week / whatever could be included in the message, this could tie in well with #21
Hi Kx1t
Would it be possible to have an HTML link between the PF and PA pages (and visa versa)? With the links defined in the .config file.
Rational for the links - it would make for smoother navigating for those users that have both installed. Rather than going into PF and wanting to go to the PA page the user has to back out of the PF page and then navigate to the PA page. If there was a link between the two it would make for a nice user experience. If users don't activate PA then hide the link
Rational for user defined links - as some users run a website behind your reverse proxy container, other webserver or just run locally each address would be different so having the user enter there own link would allow for flexibility.
Thanks
R
Discord alerts are currently failing with an error:
requests.exceptions.InvalidSchema: No connection adapters were found for "['WEBHOOK_URL_HERE']"
This seems to be an issue wiht the discord-webhooks library all up though as running discord_webhook in the container via:
docker exec -it planefence discord_webhook -u WEBHOOK_URL_HERE -c Test
is also throwing an identical error.
Currently can be resolved by iterating through the list of webhook URLs and converting to tuples, then iterating through the tuples to send the alerts. I have code I will work on creating a pull request for.
Hey kx1t,
Suggestion - would it be possible at to add the OpenAIP layer to the planefence map?
Many thanks
rikgale
Add an option to enable PA to send tweets instead of DM's. Options could be - DM, Tweet, Null
Could a user defined tag be added to the plane alert webpage - I have defined tags (choppa, specialist, fighter, absolute unit) against my watch list and it would be nice to see them on the alert page.
If PF_TRACKSVC=flightaware
, the discord message will link to flightaware, but the text will still read "Track on ADS-B Exchange"
The link is correct.
When github went down 30 mins ago, PA lost the column headers, tags and links from the PA webpage. The alert list was also empty whilst github was down. Could this information be cached locally and if there is no response from where it is hosted, the cached version is used.
Feature request by @rhodan76
Currently, planefence tweets whatever height has been reported by readsb (which usually is pressure altitude: https://www.aopa.org/training-and-safety/active-pilots/safety-and-technique/weather/density-altitude#:~:text=Density%20altitude%20is%20pressure%20altitude,airplane%20%22feels%22%20its%20flying. )
If we could have a configurable delta to the height fetched from readsb, we could additionally tweet the height above ground for people who are not well versed in aerospace units. The main purpose is for my neighbours to be informed of any flights below 1000 feet AGL, in units and altitude they are used to (mainly, meters above ground)
If possible, and there is still enough space, this should be in addition to the text alreay in the tweet, with a very short remark that this is AGL.
Park install files directly in /rootfs so they don't need to get copied in place
Add a prebuilt install of socket30003 rather than GIT CLONEing it
As discussed a few days ago,
It would be nice to have the ability to set a speed and / or altitude "trap"
If a plane's altitude is higher than X and / or it's speed exceeds Y, then a tweet / DM with a report about the "incident" is fired. Maybe we get the chance to catch something interesting / out of normal - as long their transponders are on.
Thinking about it, maybe within a fence a threshold of an altitude below Z could be interesting as well (pesky private pilots not obeying limits ;-) )
Those flights could be marked color coded in the /plane-alert list.
Request by @rhodan76
Example:
https://planefence.gofferje.net/planefence-210913.html
4ACA4A NAX2524 Norwegian Air Shuttle
to be prepared for @wiedehopf's change to his fork of readsb
to always render SBS output in UTC
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.