. "In all causes tried by a justice of the peace, the right of appeal shall be secured under such rules and regulations as shall be prescribed by law, and no justice of the peace shall preside at the trial of any cause where he may be interested, or the parties or either of them shall be connected with him by affinity or consanguinity, except by the consent of the justice of the peace and of the part" . . . .