GithubHelp home page GithubHelp logo

t08094a / alarmdisplay Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 1.45 MB

Displays alarm notifications on a monitor

License: GNU General Public License v3.0

Python 93.08% Shell 6.92%
feuerwehr alarm-panel

alarmdisplay's Introduction

AlarmMonitor

Projekt zur Darstellung von Alarmen auf einem Monitor. Dies ist die Ergänzung zum AlarmPublisher

Eingehende Alarme werden vom AlarmPublisher verarbeitet und vom AlarmMonitor dargestellt.

Neben reinen Alarmen ist es auch möglich Meldungen darzustellen.

Die Plattform hierfür ist für RaspberryPi ausgelegt. Zum Testen auf Entwicklungsrechnern gibt es einen Bereich x86.

Es wird mindestens ein RaspberryPi für den Monitor benötigt. Auf diesem läuft ein Kiosk System, welches einen Webbrowser im Vollbildmodus startet und den Alarm darstellt.

Submodule

Klonen des Repositories

  • Klonen mit allen Submodulen git clone --recurse-submodules https://github.com/t08094a/alarmDisplay.git

  • Nachträgliches Laden der Submodule Nach dem Klonen des Repositories müssen die Submodule noch geladen werden: git submodule init && git submodule update

Aktualisierung der Submodule

git submodule update --remote

Betriebssystem für RaspberryPi um Docker Container auszuführen

resinOS Getting Started

Verwaltung von Containern

Portainer

Image: portainer/portainer:latest

Hilfe: https://portainer.readthedocs.io/en/latest/deployment.html

Start: Verwaltung lokaler Container

docker run -d -p 9000:9000 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /opt/dockerData/portainer/portainer \
-H unix:///var/run/docker.sock

Start containers with docker-compose

Configuration

To configure the services you need to create a link to either docker-compose.development.env or docker-compose.production.env based on your system with

ln -s docker-compose.development.env .env

After that modify the values in the correct *.env file.

To get a google key for the maps service use the following link: https://developers.google.com/maps/documentation/javascript/get-api-key

  • ADA_DATASERVER_URL

    Contains the server url of the datacenter-app service. If you are in development mode, this would be localhost otherwise the hostname of the host system running docker-compose, e.g. http://alarmmonitor-worker

  • ADA_DATASERVER_REST_RESOURCE_CURRENT_ALARM_INFO

    Defines the resource key to query a current active alarm info. This value should not be changed. This must be the same value in both services alarmdisplay-app and datacenter-app

  • ADA_DATASERVER_WEBSOCKET_ALARM_INFO_EVENT_KEY

    Defines the websocket key to update alarm infos. This value should not be changed. This must be the same value in both services alarmdisplay-app and datacenter-app

Update images

Go to the directory containing the docker-compose.yml and call

docker-compose pull
docker-compose up -d --remove-orphans

This will update the images used in that Docker Compose setup and restart the container.

alarmdisplay's People

Stargazers

 avatar

Watchers

 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.