The Greeks were building computers back in 60 BC according to a 1901 finding that the world failed to notice at that time. According to this link, the 60 BC computer was used to predict lunar and solar eclipses and what colours of eclipses were going to take place.
The astronomical calculator or the Antikythera Mechanism, is an intricate system of bronze gears. It was found in a shipwreck off the Greek island of Antikythera in 1901. It’s just recently that a 10-year-old study has been carried out and the results of the study have been announced.
The 60 BC computer, which is easily the oldest computer the humankind ever made displayed planets as well as showed the position of the sun and the moon in the sky. It practically mirrors the positions of the planets, the sun and the moon through the device.
The 60 BC computer was also used for astrological purposes. Different colours of the eclipses represented different omens. So if red colour of the eclipse could be predicted, precautions could be taken accordingly.