It shall be unlawful, at any time, to sound any bell, horn, whistle, mechanical device operated by compressed air, or signal device while not in motion, except as a danger signal, for an unnecessary or unreasonable amount of time.