Camera Configuration (Raspberry Pi)

MudPi also supports PiCamera allowing you to take photos of your plants. To enable the camera you should include the camera configuration object in the config file and connect a camera to your raspberry pi. Make sure you enabled camera support through raspi-config for your pi if you have not done so.

Below is an example of a camera configuration.

{
    "camera": {
        "path":"/home/pi/images",
        "topic": "garden/pi/camera",
        "delay": {
            "hours":0,
            "minutes":10,
            "seconds":0
        },
        "resolution": {
            "x":1920,
            "y":1080
        }
    }
}

Settings

OptionTypeRequiredDescription
path[String]YesFull path where MudPi should save the images. Make sure proper write permissions are set.
topic[String]YesChannel that MudPi broadcasts new images events via redis.
delay[Object]NoThe interval for the camera to take photos. Photo taken every X hours, X minutes, X Seconds.
delay.hours[Integer]NoInterval in hours for camera to wait between photos. Default 0
delay.minutes[Integer]NoInterval in minutes for camera to wait between photos. Default 0
delay.seconds[Integer]NoInterval in seconds for camera to wait between photos. Default 0
resolution[Object]NoThe resolution to take photos at. Larger resolution = larger filesize. Can only support max resolution of camera.
resolution.x[Integer]NoWidth to save image at in pixels. Default 1920
resolution.y[Integer]NoHeight to save image at in pixels. Default 1080