Patrick Harvie has been branded a hypocrite after being caught breaking the law during his commute from Holyrood.