A timelapse service for the Raspberry Pi for MQTT.
111
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.
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
Look at config.toml and adjust the properties as needed.
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
}]
Apache 2.0
Content type
Image
Digest
Size
36.3 MB
Last updated
about 9 years ago
docker pull clma/pi-mqtt-timelapse:arm