Skip to content

Pigeon-Tech/Live-Camera-Replay-Balena.io-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

balena + python + raspberry pi camera module

This is a simple app that demonstrates how to get started with the raspberry pi camera module. All it does is take one video, and store it in the /data directory.

You will need to make some changes to the Raspberry Pi device configuration to enable the camera, instructions here -> https://balena.io/docs/learn/develop/hardware/i2c-and-spi/#raspberry-pi-camera-module

The /data directory allows the data, in this case the image, to persist between code deployments with balena. Then you can use the web terminal session to poke around on the pi itself and see that your photo was successfully saved in the /data directory.

A file server is running on the device, by using python's simplehttpserver. That way you can view the image taken by simply using the public url of the device.

This option can be found in the Actions tab in your device dashboard.

This example makes use of the awesome picamera python module, which natively controls the camera module and does not depend on raspistill.

About

Using the picamera and Balena to create the camera server

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published