Some serious over engineering going on here. The fridge should be set to the coldest possible temperature without the food freezing, as close to 1 °C as possible an run whenever there is solar power available. The only software need I see would be a warning if the internal temperature got too warm.
Instead of smarter software, the focus should be on insulation and adding mass to hold the heat. For example, I put a foam insulating board over my 22 cu. Chest Freezer to improve it's efficiency.