ketilmo / balena-ads-b

ADS-B Flight Tracker running on balena with support for FlightAware, Flightradar24, PlaneFinder, OpenSky Network, RadarBox, ADSB Exchange, Wingbits, and UAT.
MIT License
159 stars 43 forks source link

[Feature Request] Implement GPS-Module support #19

Open MiBatu opened 3 years ago

MiBatu commented 3 years ago

Hi Ketil,

Based on my experience with Stratux receiver, I thought it might be useful to add GPS module support to your project. For example VK172 USB or similar module for GPS/GLONASS. It cost ±5$ and gives mobile users, who use run receiver from a car or vessel, flexibility with GEO Variables. No need to set LAT and LON if GPS module detected on the device.

B.R. Michael

ketilmo commented 3 years ago

Thanks for your input, @MiBatu!

DanBuBerlin commented 3 years ago

Hi,

heres a good work around

https://gist.github.com/hsiboy/a24933ec63c004d10e2377d93aae80f6

Daniel

janipewter commented 1 year ago

Is there any update on this?

ketilmo commented 1 year ago

Thanks for reaching out, @janipewter.

Not at this stage, as I still need to get a suitable GPS device to implement this functionality.

shawaj commented 4 months ago

I have been looking into this a little bit as I have one of the cheap GPS receivers in question.

The issue I think is going to be that dump1090-fa does not support a GPS input net connector. Whereas readsb does support --net-connector localhost,2947,gpsd_in - ref

So whilst it is possible to get GPS location to work with some services (the ones that are using readsb here and a couple custom ones), there are some things to consider before adding this:

So adding gpsd support is fairly simple, it's just a case of whether to do so, it is ok to make piaware, rbfeeder, adsbexchange and wingbits containers privileged?

ketilmo commented 3 months ago

Thanks for the writeup, @shawaj! This is very interesting and something we should consider if it gives enough value/solves a given use case. The announced changes at Wingbits might make something like this (or similar) highly relevant. Another question that arises: Should we consider a move to readsb? It seems alive as a project, with a steadily increasing feature set. Again, thanks for all your efforts on this.

shawaj commented 2 months ago

Just had an idea here... One other useful feature could be that if you have the USB it updates the LAT/LON/ALT environment variables for you as well

kanokc commented 2 months ago

I shared my ADSB data with FlightAware, FightRader24 and ADSB Exchanged from a P3+ with GPS Hat for over 2 years. The GPS hat also provides time source and PPS for this RPi as a NTP sources on my house.

Moving to Balena-ads-b to be able to share to Wingbits. And found that the GPS no longer works.

I'm not good at Docker and Balena is very new to me but willing to help troubleshooting the implementation.

Thanks.

shawaj commented 2 months ago

Thanks @kanokc

I've got a few ideas on how this can work I just need to find some time to implement it

Your help with testing would be appreciated though

kanokc commented 2 months ago

@shawaj This Balena project might be a good start for getting GPS data off the receiver and use gpsd to translate into useful information eg. time inc PPS, LAT, LONG, ALT https://github.com/nmaas87/gpsTime

Update: I have had more success implementing this project than the above. Now the GPS hat is running and I can see the gpsd providing the coordinates and time. ntp also acts as timesource and allows other ntp clients to sync to. I believe what we need now is to provide the GPS data to service needed. https://github.com/misterpeee/balena-gps-ntpsecd