I have been thinking about building something like this also. I work from home and so I open the fridge throughout the day for 3 meals, snack, lunch for kids etc.
And I noticed how much is thrown out despite attempts to not do so, because different items have different shelf life.