maxux / dashboard-home

Home dashboard central server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dashboard Home Server

Home dashboard central server

WARNING: this repository contains code you can reuse but this project won't works out-of-box for you. I doubt you use the exact same setup as me, since it use lot of custom hardware, monitoring, sensors and custom stuff.

Feel free to take piece of code from this work, it's here for you (and to backup my code).

The new code is inside slaves directory, code on the root directory is there for legacy purpose.

Screenshots

Screenshot 1 Screenshot 2

Installation

  • Copy config-sample.py to config.py
  • Edit config.py with custom parameters
  • Create an empty database: cat db/schema.sql | sqlite3 db/sensors.sqlite3
  • Start the dashboard server: python3 dashboard.py

Workflow

Basicly, this dashboard server listen to two things:

  • One (private) http server, used to update database (push data)
  • One (more public) websocket server, used to send current status and update to clients

A simple web-page connecting websocket and parsing json input can display information easily and in realtime.

Each part of the dashboard (ping, rtinfo, power, ...) runs inside external process and push everything in a redis queue.

About

Home dashboard central server


Languages

Language:JavaScript 74.1%Language:Python 19.6%Language:HTML 5.0%Language:CSS 1.3%