Sign inSign up

clma/pi-mqtt-timelapse

By clma

Updated about 9 years ago

A timelapse service for the Raspberry Pi for MQTT.

Image
0

111

clma/pi-mqtt-timelapse repository overview

A Raspberry Pi Timelapse Camera

This is a fairly simple implementation of a timelapse service that sends the result to an MQTT broker. A HTTP API for taking pictures "manually" is also available.

Quick Start

Use Docker 😉 docker pull -v /usr/bin/raspistill:/usr/bin/raspistill -p 3000:3000 --device /dev/vchiq clma/pi-mqtt-timelapse:arm...

or just

git pull https://github.com/celaus/pi-mqtt-timelapse/
cd pi-mqtt-timelapse
npm install
npm start
Configuration

Look at config.toml and adjust the properties as needed.

Message

The JSON message pushed to the MQTT Broker looks like this:

[{
    "meta": { 
        "name": "<device name from config>", 
        "role": "<device role from config>" 
    },
    "data": [{ 
        "Binary": { 
            "name": "timelapse", 
            "unit": "image", 
            "value": "base64 encoded image binary" 
        } 
    }],
    "timestamp": 12345678912 // time in milliseconds
}]

License

Apache 2.0

Tag summary

Content type

Image

Digest

Size

36.3 MB

Last updated

about 9 years ago

docker pull clma/pi-mqtt-timelapse:arm