A system and a method include a medicine container having a bottle and a cap. The medicine container includes a controller and can include a camera located in the cap. The container can include a scale in the base. The controller controls the camera to take an image of the inside of the container to detect the contents, along with a weight measurement to determine usage of the content. A memory connects with the camera and the scale to store the image and weight data. The container can communicate data with a backend server using a wired or wireless connection upon a trigger event. Multiple containers can be connected to form a network of containers.