astroberry-server icon indicating copy to clipboard operation
astroberry-server copied to clipboard

Add ability to set location from web page.

Open setnes opened this issue 3 years ago • 2 comments

This is an enhancement request to add a user interface that can populate the location.conf file from a web panel.

This would be very handy. A web page can get location coordinates from the browser. If using a device with GPS (almost any phone), the Astroberry coordinates could be set without needing to ever type them.

I have attached example client side code that fetches browser coordinates and displays text that could be used inside a location.conf file. I did not attempt to write any server side code.

location.html.txt

Getting the browser's location requires https. This example html shows how to get and display the location.

I also know about NMEA. This could be an alternative that doesn't require a phone app.

setnes avatar Mar 24 '21 02:03 setnes

Thanks for reporting. This is good point

rkaczorek avatar Apr 06 '21 08:04 rkaczorek

👍

miceno avatar Jul 14 '21 08:07 miceno