How I built a fully-automated system that restocks my kitchen's coffee from Amazon