GithubHelp home page GithubHelp logo

balena-motion's Introduction

balena-motion

Live stream your device's webcam using Motion to create your own motion-detecting cat cam like my TuckerCam.

Getting started

The default deployment uses Debian.

/balena-motion/
├── Dockerfile.template
├── motion-template.conf
├── README.md
├── start.sh

This application uses a standard USB webcam. Some older versions don't play nice, but most do, and are successfully found by the system on /dev/video0.

All the motion directives in motion-template.conf can be modified, including the port on which your feed is available. When using Deploy with balena all the key variables are pre-configured as shell variables for you, but can be changed during set-up or from the balenaCloud dashboard device variables. Those variables include DAEMON which is set to off so the container service starts and remains running. If daemon is not set to off your container will start and quit.

In addition to setting the EXPOSE_PORT variable, the balena.yml sets the streaming port (8081 by default), output resolution, framerate, remote access, video device, stream quality, video palette and other variables. To set additional motion configuration settings, add shell variables to motion-template.conf and either add the key/value pairs to balena.yml or manually via the balenaCloud dashboard. Add these variables before adding a device for faster launch, particularly on the Raspberry Pi Zero.

Deploy with balena

Alnerate manual balena build and deploy

$ git clone [email protected]:balenalabs-incubator/balena-motion.git
$ balena push my-motion-app

To view the live stream, visit http://device-ip-address:your-port.

balena-motion's People

Contributors

jtonello avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

jamstooks zoobot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.