Automatic earthquake system