Section 31. Any person aggrieved by any act, rule, order or decision of the head of a fire department, or other person or persons acting or purporting to act under authority derived from this chapter, except section five, or any rule or regulation thereunder, may appeal to the marshal, who shall make all necessary and proper orders thereon, but only in so far as the appeal presents a direct question of fire or explosion hazard. Such appeal shall be filed with the marshal not later than ten days following the act, rule, order or decision appealed from.