brickbots / PiFinder

A plate solving telescope finder based around a Raspberry PI and RPI HQ Camera
Creative Commons Zero v1.0 Universal
145 stars 27 forks source link

Get GPS coords from phone browser #137

Open mrosseel opened 4 months ago

mrosseel commented 4 months ago

The implementation of this is ready, but needs the website to be served over HTTPS.

@HeyApos said: would it be possible to also take the GPS location of the handy, if using the browser based GUI to transfer to the pifinder? This is not a big deal with google geolocation API (http://dev.w3.org/geo/api/spec-source.html). There are a lot of devices, that can do this (e.g. the OnStep program WebGui, Stellarmate, https://artyom-beilis.github.io/astrohopper.html ,...) I find a hole bunch of ready to use code for this: https://www.google.com/search?q=browser+program+get+gps+from+handy A "one click button" on the main page for setting time/location would be great. So the GPS dongle would be more or less totally optional.

local cert using letsencrypt: https://thriveread.com/ssl-localhost-certificate-for-https-local-domain/

apos commented 4 months ago

Hi Mike, thanks a lot. This is Axel / HeyApos (Discord) from Germany/Ludwigshafen :-)

apos commented 3 months ago

The problem which most users will have, that they have to manually deploy the self-signed local domain SSL certificate to their browser to use it (step 9 / 10). This is for 127.0.0.1 (localhost). If the local domain is other than localhost, here pifinder.local it has to be publically available (chapter "Let’s Encrypt SSL Certificate for Local Domain (Not Localhost)"), which is not the case for us, as far as I understand.