This is called a wall quadrant. Astronomers have used such devices over the years to make accurate measurements of the positions of the moon, planets, and stars.
Photo album created with Web Album Generator