Cities of the second class and villages shall have power to regulate the construction of and order the suppression and cleaning of fireplaces, chimneys, stoves, stovepipes, ovens, boilers, kettles, forges, or any apparatus used in any building, business, or enterprise which may be dangerous in causing or promoting fires and to prescribe the limits within which no dangerous or obnoxious and offensive business or enterprise may be conducted.