I have long imagined a DIY project for a self-adjusting sundial. You put it down on any flat surface and it uses a magnetometer and a small motor to find north and orient itself correctly, and then uses a GPS and another small motor find the latitude and set the angle of the gnomon.