I would recommend that you check with your local shop to see if they have either cable in stock then bring it over and test fit.
However, even if you get a cable that fits, not knowing what bike it comes from means that the drive ratio might not match your gauge. Does the drive from the stock wheel fit?
Part of the downside of an unknown junk yard purchase, trial and error getting it to work.