GithubHelp home page GithubHelp logo

zalhadad / package-mjpeg-viewer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from info-beamer/package-mjpeg-viewer

0.0 1.0 0.0 464 KB

A mjpeg viewer for info-beamer hosted

Home Page: https://info-beamer.com/pkg/8464

License: Other

Python 86.89% Lua 13.11%

package-mjpeg-viewer's Introduction

Display up to 16 MJPEG streams

Import

This package can be used to display MJPEG streams generated by a lot of IP-connected cameras like those from Axis.

You can add multiple camera urls to show multiple cameras at once. Right now the limit is 16 cameras. Cameras are always aligned in a 2x2, 3x3 or 4x4 grid.

If you use four or more cameras, it's recommended to limit the capture size as well as the framerate to reasonable values so all camera images can be realistically updated fast enough by the Pi. For Axis cameras you can use urls like the following to control framerate and resolution:

/axis-cgi/mjpg/video.cgi?resolution=cif&fps=5

You can specify an HTTP username/password per camera if your camera is password protected. Both BasicAuth and DigestAuth authentication schemes are supported.

Each camera can have a name that is visible in the bottom left corner of each image.

Usually the text in the corner should show Live. This means that the image shown is up-to-date. If the streaming process couldn't update the image for a few seconds, the text instead reads Last updated ..s ago. info-beamer will automatically try to reconnect to cameras after a few seconds.

Privacy

An info-beamer device usually doesn't store the retrieved images, although retrieved images are temporarily stored in the filesystem. The info-beamer operating system is configured so it doesn't immediately persist written data and images are constantly overwritten by newer versions. This usually means that images are not persisted at all and only kept in the filesystem cache. In a future update, a RAM disk might be used to completely avoid storing the images at all.

The captured images are visible on the device detail page in the live view. This captured screen output isn't stored by info-beamer hosted.

Automation

info-beamer hosted has a powerful API. It allows you to automate almost every action on our platform. Here's how you can use this feature to automate this package.

Switching to different camera

If you have cameras you want to switch to during the night, you can automate this. The easiest way is to create two different setups: One configured for all the day-time cameras and another one for the night-time camera. With just using the web dashboard you can then easily switch between them by assigning them to a device. With the API you can of course automated this.

Let's say your setups have the IDs 12345 and 23456 and you want to switch between those on a device with ID 4567. Here is a curl based command line you can use:

# Switch device 4567 to setup 12345
curl -u:$API_KEY https://info-beamer.com/api/v1/device/4567 -d setup_id=12345

# Switch device 4567 to setup 23456
curl -u:$API_KEY https://info-beamer.com/api/v1/device/4567 -d setup_id=23456

package-mjpeg-viewer's People

Contributors

dividuum avatar

Watchers

James Cloos avatar

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.