The seismometer that Zhang Heng invented in 132 AD was an urn with some type of pendulum apparatus contained within it. We don't know the exact mechanics because they were lost in history. The pendulum was extremely sensitive to vibration. When it swung it released a ball from the mouth of one of eight dragons and the ball fell into the mouth of a patiently waiting frog. The loud clang that resulted notified attendants of some sort of seismological event. It is said that one day the ball fell but people in the court felt nothing. A few days later a runner arrived from a village 400 miles away to inform the Emperor that his area had been devastated by an earthquake. While Zhang Heng's seismograph couldn't predict a quake it could notify the court when one occurred so that aid could be sent.
Maybe Jinsha had a problem with illegals...and they failed also. Did Jinsha give out free handouts to them?
A very cool invention.