Start by looking at the low cost solutions that are on the market: https://www.menards.com/main/doors-w...4423378396.htm.
It only has temperature control but get creative on the rain closure by making it automatic as well. Or design it as rain proof from the start with a bottom vented cover.