GithubHelp home page GithubHelp logo

juga999 / easy-com-display Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 3.0 5.15 MB

Self hosted and flexible digital signage solution for the RaspberryPi

License: GNU Affero General Public License v3.0

Java 52.88% JavaScript 16.00% HTML 0.17% Vue 30.10% Shell 0.85%
raspberry-pi-3 signage java libreoffice

easy-com-display's Introduction

EasyComDisplay - Self hosted and flexible digital signage solution for the Raspberry Pi

EasyComDisplay is a web application for the display and management of information for small and medium organisations. EasyComDisplay targets the Raspberry Pi as its main platform, but other Linux environments can be used as well.

Requirements

Java 8

EasyComDisplay requires Java 8 to run. For the Raspberry Pi, the official Raspbian distribution ships with a Java SE environment.

PostgreSQL

EasyComDisplay stores its metadata in a PostgreSQL database.

sudo apt-get install postgresql

Next, create the EasyComDisplay database:

sudo -u postgres psql postgres
CREATE USER ecd WITH PASSWORD 'ecd';
CREATE DATABASE ecd;
GRANT ALL PRIVILEGES ON DATABASE ecd TO ecd;
\q

LibreOffice and Universal Office Converter (unoconv)

Those two applications are required to import presentations made with Microsoft Powerpoint or LibreOffice Impress. For the Raspberry Pi, the official Raspbian distribution already ships with LibreOffice.

EasyComDisplay 'talks' to LibreOffice through the unoconv (http://dag.wiee.rs/home-made/unoconv/) application. To install unoconv on the Raspberry Pi:

sudo apt-get install unoconv

Next, as root, install unoconv as a service declared in a unoconv.service file:

vim /etc/systemd/system/unoconv.service
[Unit]
Description=Unoconv listener for document conversions
Documentation=https://github.com/dagwieers/unoconv
After=network.target remote-fs.target nss-lookup.target

[Service]
Type=simple
Environment="UNO_PATH=/usr/lib/libreoffice/program"
ExecStart=/usr/local/bin/unoconv --listener

[Install]
WantedBy=multi-user.target
systemctl enable unoconv.service
systemctl start unoconv.service

ImageMagick

ImageMagick (https://www.imagemagick.org) is used to convert and resize the images used for your information stream.

Installation

TODO

For the developer

Requirements

  • Maven 3
  • npm

Prepare the database

See the requirements above for the PostgreSQL database configuration.

Before building the application, some sources must be generated with these commands:

mvn -f pom-for-generation.xml compile
mvn -f pom-for-generation.xml exec:java -Dexec.mainClass="org.chorem.ecd.Generate"

Frontend development

In the src/main/web directory, type the following command.

npm install

You can then start the development server that will listen on port 808O:

npm run dev

The frontend expects to find the backend on the port 8084.

Backend development

To package the application:

mvn package

To launch the application:

./target/ecd-app/bin/EasyComDisplay

TODOs

  • Detail the installation procedure
  • Translate the application
  • Add acccess controls

easy-com-display's People

Stargazers

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