Skip to content

Romans-Tools/Home-Dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Home Office TV Dashboard

A TV-friendly dashboard that shows local time, weather, nearby aircraft, and Homebridge status/accessories.

Features

  • Full-screen dark dashboard layout designed for readability from a distance.
  • Current date/time (updates every second).
  • Weather for ZIP 76012 via National Weather Service (updates every 10 minutes).
  • Aircraft near 32.735, -97.122 within 50 miles via adsb.lol (updates every 30 seconds).
  • Homebridge status + accessories via backend proxy (updates every 60 seconds).
  • Homebridge credentials stay server-side in .env and are never exposed in frontend JavaScript.

Project Structure

  • server.js - Express server + API proxy endpoints.
  • public/index.html - Dashboard markup.
  • public/styles.css - Dark TV-friendly styling.
  • public/app.js - Frontend data fetching/rendering logic.
  • .env.example - Environment variable template.

Setup

  1. Install dependencies:
    npm install
  2. Create your env file:
    cp .env.example .env
  3. Edit .env and fill in Homebridge credentials.

Environment Variables

PORT=3000
DASHBOARD_LAT=32.735
DASHBOARD_LON=-97.122
AIRCRAFT_RADIUS_MI=50
HOMEBRIDGE_URL=http://192.168.1.88:8581
HOMEBRIDGE_USERNAME=
HOMEBRIDGE_PASSWORD=

Run

  • Production:
    npm start
  • Development (auto-reload):
    npm run dev

Open http://localhost:3000.

Backend API Endpoints

  • GET /api/weather
  • GET /api/aircraft
  • GET /api/homebridge/status
  • GET /api/homebridge/accessories

If Homebridge authentication or connectivity fails, backend endpoints return graceful JSON errors and the UI shows Homebridge unavailable.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors