Skip to content

josegarglex72/fullpagedashboard-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FullPageDashboard Client v2 (0.2.1 experimental)

New features in 0.2.1 experimental:

  • Upgraded Electron to version 5.0.0 to solve major security flaw in older Chromium versions.

0.2.0 experimental release features:

  • Raspberrry Pi 3 Electron Integration
  • Rotation of dashboards according to a default duration setting and/or an item specific duration setting.
  • Updated admin dashboard according to new data model
  • Initial code move towards ES6. Still using callback functions.

FullPageDashboard Client is an Electron app for full screen display of web apps / dashboards. It is practically a remote controlled browser and is a parallel development of our FullPageOS distribution for Raspberry Pi, which runs a regular Chromium browser in full screen.

FullPageDashboard Client can run on Linux(x86, ARM), Mac OS and Windows, however, we are mainly targeting the Raspberry Pi as a deployment environment.

We are currently working on integrating it into an unofficial Raspbian Pi distribution, using CustomPiOS as a base.

FullPageDashboard Client has a built-in admin companion app that acts as a remote control. Use it to add/remove/edit URLs and push a URL to the screen. Please note: Admin app is insecure at the moment. Use at your own risk.

We are currently working on a companion cloud control app, to allow you to control a network of device displays from your mobile browser, over the cloud. This will allow administrators (and potentially app servers) to control the content on a network of screens without being on the same local network.

Table of Contents

  1. Roadmap
  2. Implementation - Installation, Usage, etc'.
  3. Contributing
  4. License MIT
  5. Changelog

Roadmap

These (radical) changes are expected (but not promised) in future releases:

  1. Admin dashboard - Mobile friendly and built with React instead of Angular. In development.
  2. Admin dashboard - Moved to the cloud for remote control, grouping and performance purposes. In development.
  3. Player data model - Move to something a bit more standard, with playlists and timing. Player will rotate independently. - started to roll out.
  4. Security - Implementation of login mechanism for admin dashboard. In development.
  5. Security - Disable use of keyboard and mouse on the player machine.
  6. Multiple device management - Admin dashboard will list all devices managed by the admin. In development.
  7. Location awareness - Each FullPageDashboard Client will have an exact location on a map.
  8. Development - This project will follow best practices for Git branching and versioning. - started to roll out. Using semantic versioning
  9. Player - Pages will be displayed fully loaded.

Implementation

Installation

  1. Clone the git repository and install the node dependencies: npm install. Please ensure having at least NodeJS 4.4 (actually, 4.x should be fine).
  2. Start the app with npm start.

Configuration and data

  • The dashboard app will load and store information at ~/.fullpagedashboard-client/.session.json.
  • The dashboard app will load default settings from ~/.fullpagedashboard-client/config.json.

The actual folder is decided in Config.js according to package.json `name` setting.

Rules

  • If the file .session.json is available, it will be preferred.
  • The file default.json will be read only.
  • A configuration file can contain three entries: dashboards, server and window.

Example config

{
    "dashboards": {
      "active": "red",
      "defaultDuration": 30000,
      "items": [
        {
          "id": "red",
          "display": "Red",
          "url": "https://simple-milliseconds-counter.herokuapp.com/index.html?bgcolor=red",
          "duration": 5000
        },
        {
          "id": "green",
          "display": "Green",
          "url": "https://simple-milliseconds-counter.herokuapp.com/index.html?bgcolor=green",
          "duration": 10000
        },
        {
          "id": "blue",
          "display": "Blue",
          "url": "https://simple-milliseconds-counter.herokuapp.com/index.html?bgcolor=blue",
          "duration": 7000
        }
      ]
    },
    "server": {},
    "window": {}
}

dashboard options

active is the current selected id of a dashboard. No value means no default, and an invalid one will be removed on startup automatically.

items[] is an array within dashboards{}.

Each item (or individual dashboard) within items[] contains

  • id is a unique identifier like red or green.
  • display is the title.
  • url is the actual URL of the site. Can be any valid URL a browser/webview can display.
  • duration is how many milliseconds to display the URL before the next item.
  • description is an optional field only for the control app.

server options

port is the control webserver's port. Default is 33333.

window options

Window is hard coded to full screen at the moment. Other window options will be added later.

Usage

The player display should be full screen. It tells you the URL for the admin dashboard and even displays a QR code you can scan with your phone to reach it.

Open the admin dashboard in any browser and add/remove/edit URLs in it.

A screenshot will be presented in the admin dashboard once an item is loaded.

Overview

See more screenshots

Current Features (from original software + fixed bugs)

  • URLs are rotating according to their item.duration or according to dashboards.defaultDuration.
  • Session data is persisted between restarts.
  • A complete "hands free" mode: after the first configuration, all configurations can be applied by the control interface remotely.
  • Sites/dashboards can be created and removed.
  • Simultaneous control app interface users (note: there is currently no security applied).
  • The control app provides live feedback between all connected control app users (new active dashboard, online status, ...).

Dependencies

This is an Electron App. It used some non-native modules in it which may or may not run in your environment.

npm modules

"dependencies": {
    "angular": "~1.5.9",
    "angular-animate": "~1.5.9",
    "angular-aria": "~1.5.9",
    "angular-material": "^1.1.12",
    "angular-messages": "^1.7.2",
    "electron": "^3.0.13",
    "eventemitter3": "^2.0.2",
    "express": "^4.14.1",
    "qrcode": "^1.3.3",
    "socket.io": "^2.2.0",
    "underscore": "^1.9.1"
  }

engines

    "node": "^4.7",
    "npm": "^3"

build

    "electron-packager": "^8.5.0"

System should be able to build Electron app versions for Windows and Linux x86 architectures at the moment. It has not been tested.

for a Windows x86 architecture build, use:

$ npm build-windows 

for a Linux x86 architecture build, use:

$ npm build-linux 

API

None at the moment, but maybe in the future due to move to React.

Back to top

Screenshots

Admin dashboard and full screen display of content

Overview

Splash screen displayed full screen when no URL is set yet.

Player App Splash Screen

Admin dashboard control app with a URL set in it.

Dashboard Control App

Back to top

Contributing

Open an issue to discuss potential changes/additions. Fork and send pull requests.

Git repository is managed according to Vincent Driessen's Git branching model

This project uses semantic versioning.

Back to top

Changelog

[0.2.0 experimental] - 2019-02-27

Added

  • Updated to use Electron 3.0.13 or greater (3.1.4 ATM)
  • Server.rotateItems(itemIndex, fn): Rotation of dashboards according to a default duration setting and/or an item specific duration setting.
  • Added site/example-playlists folder and two playlists with duration in them.
  • Deployed milliseconds counter test app to Github and Heroku.

Changed

  • Pushed version to 0.2.0 due to data model modification.
  • Server: New dashboard data model.
  • Angular admin updated accordingly. Will be completely replaced later. Added duration and removed Description fields from CreateDashboardDialog.html.
  • Initial code move towards ES6. Still using callback functions in server. Will move to Promises in the future.

Removed

  • Fullscreen button in admin dashboard.
  • Admin set current URL.

[0.1.0] - 2018-12-16

Added

  • Admin dashboard dynamic IP address and port on app/index.html (player).
  • QR code of admin dashboard URL on app/index.html (player).
  • underscore.js to server.

Changed

  • This Readme.md file 😄
  • New design of player welcome page to match the FullPageOS experience.
  • Security: Updated socket.io to the latest version to prevent potential DoS attacks.
  • Bugs: Screenshot mechanism was broken. It has been completely rebuilt.
  • Bugs: Initial URL loading problems fixed.
  • package.json updated to reflect current development status.

Removed

  • electron-screenshot.js module - Old screenshot mechanism.

Back to top

License

Credit

This software is a fork of electron-remote-dashboard by knalli.

Some rights reserved to Jan Philipp on his parts of the codebase.

Versioning has been completely restarted because the original project did not have semantic versioning and the product roadmap aims to completely rebuild most of the solution with FullPageOS in mind.

(The MIT License)

Copyright (c) 2014 Bill Gooch

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be

included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF

MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Back to top

About

Easily rotate web dashboards in full screen on Raspbian

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 54.7%
  • CSS 37.3%
  • HTML 8.0%