mirror of
https://github.com/myronblair/jarvis
synced 2026-06-30 17:50:23 -05:00
85d3447ccca61076b29cb580b38c76174c7c9e11
Root cause 1: Notification.requestPermission() on startup (3s delay) opened a browser permission dialog while JARVIS was still speaking the welcome greeting. This aborted the SpeechRecognition session. Because isSpeaking=true at that moment, onend did not reschedule a restart — mic went permanently silent. Fix: removed the startup requestPermission() call entirely. Root cause 2: Same requestPermission() inside _focusWindow() called on every enterVoiceMode() — could abort the recognition session on each wake. Fix: only create notification when permission already granted, never request. Root cause 3: SLEEP_CMDS matched bare words like offline and sleep that appear in normal commands (check if server is offline, put device to sleep, etc.) Fix: tightened to require explicit phrasing — go offline, sleep mode, shut down jarvis, good night jarvis, etc.
JARVIS
Iron Man-style AI assistant for home and network management.
Features
- Home Assistant control (lights, climate, scenes, switches)
- Proxmox VM management (start/stop/status)
- 4-tier chat: KB intents > Groq cloud > Ollama local > Claude API
- Real-time status bar (HA, Proxmox, DigitalOcean)
- Iron Man HUD at jarvis.orbishosting.com
Stack
- PHP 8.x / Apache / MySQL on Ubuntu 24.04
- Ollama VM at 10.48.200.95 (llama3.2:1b)
- Groq API (llama-3.3-70b / compound-mini with web search)
- Claude API (Anthropic) final fallback
Setup
cp api/config.example.php api/config.php Fill in all credentials in config.php before running.
Key Files
- public/index.html Iron Man HUD frontend
- public/api.php API router
- api/config.example.php Config template
- api/endpoints/chat.php 4-tier chat handler
- api/endpoints/facts_collector.php HA entity sync cron
- api/lib/kb_engine.php KB intent engine
- api/lib/db.php PDO database wrapper
Description
Languages
PHP
43.3%
Python
29.9%
JavaScript
14.9%
CSS
6.2%
Shell
2.2%
Other
3.5%