nucleus-ffm / foss_warn

An unofficial open source application to get emergency alerts from https://warnung.bund.de/meldungen.
GNU General Public License v3.0
100 stars 6 forks source link

Allow to use <current location> #26

Open davidak opened 2 years ago

davidak commented 2 years ago

Other location based apps like Suntimes allow to use the current location based on GPS instead of a manually set static location.

That would be a very useful feature for people that move a lot.

Maybe it should even be the default mode, so it just works.

nucleus-ffm commented 2 years ago

I have already thought about that. GPS would be a bit overkill, since we only need the nearest city. I was thinking of location tracking via IP address or mobile-based tracking. But I don't know how that would work.

petrarca-arezzo commented 2 years ago

IP-based geo-location is probably a bad idea - just think about people using a VPN on their mobile...

nucleus-ffm commented 1 year ago

today we are one step closer to the whole thing. Inspired by the TinyWeatherForecastGermany I found the right data from destatis and created a csv with the geocodes, the place name and the coordinates. With this data we can now check the GPS position and select the closest place to this position. The question now is whether FOSSWarn should actively search for GPS data or just passively use the data when it is available.

nucleus-ffm commented 1 year ago

I have now implemented this function for a prototype in the allowUseOfCurrentLocation branch. I am not sure if it works yet. I will test it for a few days.

nucleus-ffm commented 1 year ago

Does anyone have experience with openCellID? I was thinking about how to use that in addition to GPS.