Coder Social home page Coder Social logo

security_cam_display's Introduction

Image Display

Display recent images from a folder to the screen.

Setup

Install the python requirements: pip install -r requirements.txt.

Run

Start manually:

  • nohup python front_end.py &
  • Set the display: export DISPLAY=:0
  • Show full-screen in Firefox: firefox --kiosk --private-window http://127.0.0.1:123
  • Or Chromium: chromium-browser --kiosk http://127.0.0.1:1234

If there is no local archive, it needs to be updated. Run: nohup python update_archive.py &

Or, start with systemd: This will start the program when the computer starts and revive it when it dies. Copy the contents of front_end.service to /etc/systemd/system/front_end.service (via sudo vim /etc/systemd/system/front_end.service).

Start the front-end service using the commands below.

  • sudo systemctl daemon-reload
  • Start it on boot: sudo systemctl enable front_end.service
  • Start it right now: sudo systemctl start front_end.service
  • Stop it right now: sudo systemctl stop front_end.service
  • Get logs: sudo journalctl -u front_end | tail

Move the contents of update_archive.service to /etc/systemd/system/update_archive.service: sudo vim /etc/systemd/system/update_archive.service:

  • sudo systemctl daemon-reload
  • Start it on boot: sudo systemctl enable update_archive.service
  • Start it right now: sudo systemctl start update_archive.service
  • Stop it right now: sudo systemctl stop update_archive.service
  • Get logs: sudo journalctl -u update_archive | tail

TODO: this should be run as a standalone file: file://display.html in the browser! TODO: browser should open on startup! /usr/bin/chromium-browser --kiosk http://127.0.0.1:1234

About

In front_end.py edit TRACKED_CAMERAS to add or remove cameras from the display.

security_cam_display's People

Watchers

Cameron Smith avatar  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.