The capsule machine is located in front of the item shop, the one that turns into a bar in the evenings ;)
It only works when it's raining, because the rain loosens the screws. Simply go there when it rains and spend some time buying something from the machine.