This webapp uses geolocation and device orientation to simulate a sundial.
It uses SunCalc to find the sun's location, Full Tilt to smooth out the quirks in how various devices report their orientation, geomagnetism to calculate magnetic declination, and freegeoip.net for IP address geolocation.