Coder Social home page Coder Social logo

docker-planefence's People

Contributors

76rhodan avatar battlelettuce avatar dependabot[bot] avatar dziban303 avatar fredclausen avatar jdipierro avatar johnex avatar kx1t avatar mikenye avatar phaeton avatar pmd5700 avatar sportsbadger avatar wiedehopf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-planefence's Issues

Release testing noisecapt

Need to test configurations:

  • in same docker-compose
  • in different docker-compose on same host
  • on different host
  • on arm64 and armhf
  • Recruit someone to test it on amd64

Add additional link to PA tweets

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.

PF_QUERY / PA_QUERY incorrectly match some records

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.

**Feature Request: Plane Alert Webpage - addition of Silhouette of aircraft**

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.

image

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)

Allow more detail/columns in alert list

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.

End of Day/period report

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)

Add screenshot of map to tweet and/or webpage

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.

Reverse Chronological Order - plane alert ??

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.

Some flightaware links missing tail number

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

Ignore list for plane alert

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 :)

Only trigger planefence when specified aircraft are seen - Accept list

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.

List of aircraft to ignore

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.

Text accents being removed from tweets

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.

Add option to tweet interesting plane close by

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.

Send events over MQTT too

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

User customisable links between PF page and PA page

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 Throwing Error

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.

Add tags to plane alert list

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.

Cache online list to cover Github failure

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.

(additionally) tweet height above ground level

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.

Tweet / DM as speed / altitude "alert"

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.

Make Planefence tweet behavior configurable

Request by @rhodan76

  • Add PF_TWEET_BEHAVIOR to toggle between tweeting after FIRST or after LAST observation of plane in the Fence
  • Make MINTIME (the time elapsed before a tweet is sent) configurable (as PF_TWEET_MINTIME)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.