Active Use Cases - Fako Cluster in Action

Table of Contents

This section documents real-world use cases and practical applications of the Fako cluster services. Each use case includes detailed walkthroughs, screenshots, and implementation details.

๐Ÿ“‹ Table of Contents

AI/ML Use Cases

Development & Automation

Personal Productivity

Infrastructure Management


๐Ÿค– Personal AI Assistant

Overview

A comprehensive AI assistant setup using Open WebUI, Ollama, and GPUStack for various AI models.

Components Used

  • Open WebUI: User interface
  • Ollama: Local model hosting
  • GPUStack: GPU acceleration
  • PostgreSQL: Conversation storage

Implementation

[Detailed implementation will be added here]

Screenshots

AI Assistant Interface Model Selection


๐ŸŽค Voice-Controlled Home Automation

Overview

This implementation demonstrates a complete voice assistant pipeline using Wyoming Satellite with Home Assistant, achieving a successful voice interaction where a user queries smart home status and receives an AI-generated response in 17 seconds.

Components Used

  • OpenWakeWord: Wake word detection (“Hey Jarvis”)
  • Whisper: Speech-to-text transcription
  • Ollama (Llama 8B): Natural language understanding and response generation
  • Piper TTS: Text-to-speech synthesis
  • Home Assistant: Smart home orchestration and pipeline management
  • Wyoming Satellite: Voice satellite software on Raspberry Pi

Hardware Setup

  • Raspberry Pi 5 (2.4GHz, 4GB RAM) - Voice satellite device
  • ME6S USB Microphone - Audio input device
  • Bluetooth Speaker (88:92:CC:5D:CB:79) - Audio output via BlueALSA
  • Mini PC - Home Assistant server
  • Kubernetes Cluster - Container orchestration for AI services

Voice Assistant Architecture Figure 1: Overall voice assistant architecture showing component interconnections

Implementation

Example Interaction

User Query: “Any lights on in the master bathroom?”
System Response: “Based on the live context, there are no lights currently on in the master bathroom. The Master Bathroom Lights are off.”
Total Time: 17 seconds

Pipeline Stages

Voice Pipeline Flow Figure 2: Complete voice pipeline flow from wake word to response

1. Wake Word Detection (0-1 second)

  • Microphone continuously captures audio at 16kHz
  • Audio streams to Wyoming Satellite service
  • Satellite forwards to OpenWakeWord pod (K8s NodePort 30400)
  • Detection confirmed for “hey_jarvis” with confidence threshold

2. Speech Recognition (1-4 seconds)

  • User speech captured and streamed to Home Assistant
  • Audio forwarded to Whisper STT pod (NodePort 30300)
  • Real-time transcription returns: “any lights on in the master bathroom”

3. Intent Processing & AI Response (4-7 seconds)

  • Home Assistant identifies intent: query light status
  • State query retrieves: light.master_bathroom_lights (state: off)
  • Context sent to Ollama pod running Llama 8B
  • LLM generates natural response with current state information

4. Text-to-Speech Synthesis (7-9 seconds)

  • Response text sent to Piper TTS pod (NodePort 30200)
  • Speech synthesized using ’en_US-ryan-high’ voice model
  • Audio generated at 22050Hz sample rate

5. Audio Playback (9-17 seconds)

  • Audio streamed back through Wyoming Satellite
  • BlueALSA manages Bluetooth A2DP protocol
  • Real-time playback through Bluetooth speaker

Performance Metrics

StageDurationPercentage
Wake Word Detection1s6%
Speech Recognition4s24%
AI Processing3s18%
TTS Generation2s12%
Audio Playback8s47%
Total Pipeline17s100%

Key Optimizations

  • CPU Governor: Performance mode (2.4GHz constant)
  • WiFi Power Save: Disabled for consistent latency
  • Network Timeouts: Increased to 30s (handles 700ms spikes)
  • Audio Buffers: 4096 frames for smooth playback

Network Configuration

_PONG_TIMEOUT: Final = 30  # Increased from 5
_PING_SEND_DELAY: Final = 5  # Increased from 2
_WAKE_INFO_TIMEOUT: Final = 10  # Increased from 2

Success Indicators

โœ… Reliable “Hey Jarvis” detection
โœ… Accurate speech-to-text conversion
โœ… Correct intent extraction
โœ… Natural, contextual AI responses
โœ… Clear TTS playback via Bluetooth
โœ… No disconnections despite 37% packet loss
โœ… 17-second end-to-end response time

Data Flow Architecture

Linear Flow Diagram Figure 3: Linear representation of the data flow through the system

1. Audio Input:    User โ†’ Microphone โ†’ Pi
2. Wake Detection: Pi โ†’ WiFi โ†’ K8s Wake Pod
3. Transcription:  Pi โ†’ HA โ†’ K8s Whisper Pod
4. Processing:     HA โ†’ K8s Ollama Pod (Llama 8B)
5. Synthesis:      HA โ†’ K8s Piper Pod
6. Audio Output:   Pi โ†’ Bluetooth โ†’ Speaker โ†’ User

Simplified Sequence Diagram Figure 4: Simplified sequence diagram showing the interaction between components

Key Achievement

Despite operating over WiFi with significant latency variations (38-700ms) and packet loss (37%), the system maintains stability through optimized timeouts and performance tuning, delivering a reliable voice assistant experience capable of understanding context, querying smart home devices, and generating natural language responses.

Additional Architecture Views

System Architecture Figure 5: Detailed system architecture showing all components and their relationships

Component Diagram Figure 6: Component-level view of the voice assistant system


๐Ÿ“„ Document Analysis Pipeline

Overview

Automated document processing using AI for summarization, extraction, and insights.

Components Used

  • n8n: Workflow orchestration
  • Ollama: Document analysis
  • PostgreSQL: Results storage
  • Blog: Publishing insights

Implementation

[Detailed implementation will be added here]

Screenshots

Document Pipeline


๐Ÿ” Multi-Model AI Comparison

Overview

Comparing responses from different AI models for the same prompts.

Components Used

  • KAgent: AI agent framework
  • Multiple Models: Via Ollama/GPUStack
  • Open WebUI: Comparison interface

Implementation

[Detailed implementation will be added here]

Screenshots

Model Comparison


๐Ÿš€ GitOps Workflow Management

Overview

Complete GitOps setup with automated deployments and security scanning.

Components Used

  • Gitleaks: Secret scanning
  • Kube-bench: Security compliance
  • n8n: Automation workflows
  • Blog: Documentation

Implementation

[Detailed implementation will be added here]

Screenshots

GitOps Flow


๐Ÿ”’ Automated Security Scanning

Overview

Continuous security monitoring and compliance checking.

Components Used

  • Kubescape: Security scanning
  • Kube-bench: CIS benchmarks
  • Gitleaks: Secret detection
  • n8n: Alert automation

Implementation

[Detailed implementation will be added here]

Screenshots

Security Dashboard


๐Ÿ“Š Health Data Analytics

Overview

Personal health tracking and analytics using Oura Ring data.

Components Used

  • Oura Collector: Data ingestion
  • Oura Dashboard: Visualization
  • PostgreSQL: Data storage
  • n8n: Health insights automation

Implementation

[Detailed implementation will be added here]

Screenshots

Health Dashboard Sleep Analytics


๐Ÿ“š Knowledge Management System

Overview

Personal knowledge base with AI-powered search and insights.

Components Used

  • Linkding: Bookmark management
  • Blog: Documentation
  • Ollama: AI search
  • PostgreSQL: Data storage

Implementation

[Detailed implementation will be added here]

Screenshots

Knowledge Base


๐ŸŽฌ Media Server Setup

Overview

Complete media server with audiobook support and AI recommendations.

Components Used

  • Audiobookshelf: Media server
  • n8n: Download automation
  • Ollama: Content recommendations

Implementation

[Detailed implementation will be added here]

Screenshots

Media Library


๐Ÿ–ฅ๏ธ Multi-Node GPU Scheduling

Overview

Efficient GPU resource allocation across multiple nodes.

Components Used

  • Node Labeling: GPU node identification
  • GPUStack: GPU management
  • Ollama: Model deployment

Implementation

[Detailed implementation will be added here]

Screenshots

GPU Dashboard


๐ŸŒ Secure Remote Access

Overview

Zero-trust access to cluster services via Cloudflare Tunnels.

Components Used

  • GPUStack Proxy: Cloudflare tunnel
  • Keycloak: Authentication
  • OAuth2 Proxy: Service protection

Implementation

[Detailed implementation will be added here]

Screenshots

Access Flow


๐Ÿ’พ Automated Backup Strategy

Overview

Comprehensive backup solution for all cluster data.

Components Used

  • PostgreSQL Cluster: Database backups
  • n8n: Backup automation
  • AWS S3: Offsite storage

Implementation

[Detailed implementation will be added here]

Screenshots

Backup Dashboard


๐Ÿ“ Contributing Use Cases

To add your own use case:

  1. Create a new section in this README
  2. Add screenshots to the images/ directory
  3. Include:
    • Overview of the use case
    • Components used
    • Step-by-step implementation
    • Configuration examples
    • Screenshots
    • Lessons learned

๐Ÿ–ผ๏ธ Image Guidelines

When adding screenshots:

  • Use PNG format for clarity
  • Recommended size: 1200x800px
  • Include captions
  • Blur any sensitive information
  • Use consistent naming: use-case-description.png

This documentation is a living document. Please contribute your own use cases and experiences!