If this is a city problem and not a HOA, Discover what you are really being charged with. The citation must contain an exact citation of the law/ordinance. That will tell you how to fight it. And exactly what you did wrong if anything. It could also point out exceptions to the ordinance.