Hello @iot
You might want to check for the battery output/voltage before deciding whether to use it or change to a longer lasting battery supply or even a switch. Bear in mind that the weather conditions such as heavy rain should be taken into consideration as there are devices and wires involved because you don't want to shock the device/battery. Another tip is that the material of the box should withstand any weather and temperature. All the best in your project!
@david-bethesda mentioned Solar parts, which is a good idea too.