Mimic icon indicating copy to clipboard operation
Mimic copied to clipboard

Need to add an input option on the settings screen for user location

Open streadgold opened this issue 4 years ago • 1 comments

Currently the ISS pass predictions are hard coded for Houston. This is an issue because not every person on Earth lives in Houston.

How should this be done?

-Text input of lat/lon? -Nearest city selection? -Fancy map type thing I definitely won't have time to learn -Automatic wifi ip location?

streadgold avatar Nov 21 '20 06:11 streadgold

For location, I think it would be nice to have a screen where the user could select a city or type in a latitude and longitude. Giving both options would be ideal.

We could also reuse that config.json file I made for serial ports to add in a way to save a latitude and longitude so the user wouldn’t have to select it every time they open the GUI. To do that, I’d have to expand my code so it knows not to use the serial ports in the config if they just want to use the location in the config, but that won’t be hard, and I planned to do that eventually. We could even save the config file to use Houston’s latitude and longitude by default since that’s our current default. Then, ideally, the user screen would have the current settings filled in, but the user could override them by selecting a city or filling in a new latitude and longitude. I don’t think overriding them should change the config.json. If they want the config changed, they can change it manually since JSON is human-readable.

I could probably figure out how to do a map, but I don’t think we really need to.

I don’t think we should do IP because people may want to try various cities, some people use things like VPNs, etc.

dallasbrittany avatar Nov 21 '20 14:11 dallasbrittany