Read the statement by Michael Teeuw here.
How Can I Display Live Qibla Direction on My MagicMirror Without Lag?
-
@Munya-Pualani Without location services this would be near impossible. You can get a GPS module and add that onto the PI and maybe integrate that. As the Raspberry Pi does not have built-in location services you will not be able to auto determine the position of the mirror. If you change the location of the mirror, you will have to manually update the module with the new facing direction. You can possibly use your location, lat and lon but that would not 100% determine direction either. Using the Embedded URL module will not work either as the page relies on location services running.
The only way I can see is to get a GPS module and add that onto the PI.
-
@mumblebaj google maps will give your gps coordinates to 6 decimal places . i don’t know how you tell the web page
-
@sdetweil How do you get the coordinates if the Pi does not have location services for Google Maps to determine your location? It will give it if you tell it where you are.
-
@mumblebaj i just look up my address and the gps is in the url
-
@mumblebaj i dont know how it does it. but the position is correct for where i am standing in the house, one side or the other. none of my computers have gps
the MagicMirror system is not moving around, and if you were using a remote browser, then gps on the server side would be wrong too
-
@Munya-Pualani this site
https://www.movable-type.co.uk/scripts/latlong.html#:~:text=const Bx = Math.cos(,kmhas the formulas for bearing and distance using two gps locations.
drawing an arrow pointing on that bearing using web technologies is also well known