jarvis-monitor
Sci-fi style system monitor with real-time status display.
What It Does
Provides a visual dashboard for monitoring:
- Service health status
- Gateway connection status
- Last command/event timestamp
- Response time metrics
- System component status
- Activity log
Features
- 🎨 Sci-fi HUD interface (Orbitron font, neon green theme)
- 🌐 Chinese/English bilingual toggle
- 🔄 Auto-refresh every 10 seconds
- 📱 Responsive design
Installation
Prerequisites
- Any web service with
/healthzendpoint returning JSON like:
{
"status": "ok",
"gateway": "connected",
"gateway_last_event_ts": 1234567890
}
Setup
-
Host
monitor.htmlon your web server:cp monitor.html /path/to/your/server/templates/ -
Add endpoint to your server:
from fastapi.responses import HTMLResponse @app.get("/monitor") async def monitor(): with open("templates/monitor.html", "r") as f: return HTMLResponse(content=f.read()) -
Update the API endpoint in the HTML:
- Find
http://192.168.31.19:8000/healthzand replace with your server URL
- Find
Usage
Open in browser:
http://your-server:port/monitor
Language Toggle
Click the button in top-right corner to switch between Chinese and English.
Customization
Colors
Edit CSS variables:
--primary: #00ff88; /* Neon green */
--secondary: #00ccff; /* Cyan */
--bg: #0a0a0f; /* Dark background */
API Endpoint
Find and replace:
const res = await fetch('http://192.168.31.19:8000/healthz');
Expected JSON response:
{
"status": "ok",
"gateway": "connected",
"gateway_last_event_ts": 1234567890
}
Files
monitor.html- Main dashboard (single file, no dependencies except Google Fonts)
Credit
Inspired by JARVIS from Iron Man / Marvel movies.