279 lines
17 KiB
HTML
279 lines
17 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>PRRPC | Pico Real Rich Presence - Desktop Setup</title>
|
|
<meta name="description" content="PRRPC - Physical status monitor for Linux using RP2040+LCD screen. Auto monitoring V1 and MacroDeck with web control V2.">
|
|
<link rel="stylesheet" href="styles.css">
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
|
|
</head>
|
|
<body>
|
|
<nav class="navbar">
|
|
<div class="nav-container">
|
|
<div class="nav-brand">
|
|
<span class="brand-icon">◇</span>
|
|
<span class="brand-text">PRRPC</span>
|
|
</div>
|
|
<div class="nav-links">
|
|
<a href="#features">Features</a>
|
|
<a href="#gallery">Gallery</a>
|
|
<a href="#specs">Specs</a>
|
|
<a href="https://github.com/jrodriiguezg/PRRPC" target="_blank" rel="noopener noreferrer" class="nav-btn">GitHub</a>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<main>
|
|
<section class="hero">
|
|
<div class="hero-content">
|
|
<div class="version-badge">V1 — Auto Monitoring | V2 — MacroDeck</div>
|
|
<h1>Pico Real Rich Presence</h1>
|
|
<p class="hero-subtitle">Physical status monitor for Linux environments. Displays contextual active application information on a secondary LCD screen powered by RP2040.</p>
|
|
<div class="hero-actions">
|
|
<a href="https://github.com/jrodriiguezg/PRRPC" target="_blank" rel="noopener noreferrer" class="btn btn-primary">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg>
|
|
View on GitHub
|
|
</a>
|
|
<a href="https://jrodriiguezg.link" class="btn btn-secondary">Portfolio</a>
|
|
<a href="https://ko-fi.com/jrodriiguezg" target="_blank" rel="noopener noreferrer" class="btn btn-secondary">Support on Ko-fi</a>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section id="features" class="section features-section">
|
|
<div class="section-container">
|
|
<div class="section-header">
|
|
<span class="section-tag">Capabilities</span>
|
|
<h2>Two Modes of Operation</h2>
|
|
<p>PRRPC adapts to your workflow with automatic monitoring or manual macro control.</p>
|
|
</div>
|
|
|
|
<div class="features-grid">
|
|
<div class="feature-card">
|
|
<div class="feature-icon">⟁</div>
|
|
<h3>V1 — Auto Monitoring</h3>
|
|
<p>Automatically detects the active application on your Linux desktop and displays contextual status on the LCD screen. Zero manual input required.</p>
|
|
<ul class="feature-list">
|
|
<li>GNOME focus event detection via pyatspi</li>
|
|
<li>Serial port communication (zero CPU polling)</li>
|
|
<li>Real-time application switching</li>
|
|
<li>Session time tracking</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="feature-card">
|
|
<div class="feature-icon">⊞</div>
|
|
<h3>V2 — MacroDeck</h3>
|
|
<p>Transforms into an interactive MacroDeck with local web control. Send emoji reactions and manually override the display status from any browser.</p>
|
|
<ul class="feature-list">
|
|
<li>Flask web server on localhost:5000</li>
|
|
<li>Multi-thread architecture</li>
|
|
<li>Emoji selector UI</li>
|
|
<li>100x100px optimized assets</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="features-grid">
|
|
<div class="feature-card wide">
|
|
<div class="feature-icon">↻</div>
|
|
<h3>Client-Server Architecture</h3>
|
|
<p>The system operates via a robust Client-Server architecture over serial port, combining software detection with hardware rendering for reliable performance.</p>
|
|
<div class="architecture-flow">
|
|
<div class="flow-step">
|
|
<span class="flow-label">Host (PC - Linux)</span>
|
|
<span class="flow-desc">Python service monitors GNOME desktop focus events using pyatspi</span>
|
|
</div>
|
|
<div class="flow-arrow">→</div>
|
|
<div class="flow-step">
|
|
<span class="flow-label">Serial Port</span>
|
|
<span class="flow-desc">Native integration, no polling, zero CPU consumption</span>
|
|
</div>
|
|
<div class="flow-arrow">→</div>
|
|
<div class="flow-step">
|
|
<span class="flow-label">Client (RP2040)</span>
|
|
<span class="flow-desc">Renders graphical interface using raw RGB565 icons</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section id="gallery" class="section gallery-section">
|
|
<div class="section-container">
|
|
<div class="section-header">
|
|
<span class="section-tag">Gallery</span>
|
|
<h2>Device in Action</h2>
|
|
<p>The PRRPC device integrates seamlessly into your desktop workflow, reacting instantly to open applications.</p>
|
|
</div>
|
|
|
|
<div class="gallery-grid">
|
|
<div class="gallery-card">
|
|
<div class="gallery-img">
|
|
<img src="https://github.com/user-attachments/assets/acb33cca-38ba-4fd6-97c8-8df39ad331aa" alt="VS Code Demo" loading="lazy">
|
|
</div>
|
|
<div class="gallery-info">
|
|
<h4>Development Environment</h4>
|
|
<p>Visual Studio Code active. Device displays the corresponding icon and session timer.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="gallery-card">
|
|
<div class="gallery-img">
|
|
<img src="https://github.com/user-attachments/assets/35271944-9dcd-47d4-8dce-dedabe273c94" alt="Firefox Demo" loading="lazy">
|
|
</div>
|
|
<div class="gallery-info">
|
|
<h4>Web Browsing</h4>
|
|
<p>Focus switches to Firefox — device instantly updates to reflect web activity status.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="gallery-card">
|
|
<div class="gallery-img">
|
|
<img src="https://github.com/user-attachments/assets/0c21cdd2-856f-4a4f-9339-7f9949d71b95" alt="Terminal Demo" loading="lazy">
|
|
</div>
|
|
<div class="gallery-info">
|
|
<h4>System Terminal</h4>
|
|
<p>Fedora terminal detected — native system status displayed on the LCD screen.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="gallery-card">
|
|
<div class="gallery-img">
|
|
<img src="https://github.com/user-attachments/assets/8b5ba6d3-3349-43c8-a1fb-fc6c89d868b9" alt="Music Playback" loading="lazy">
|
|
</div>
|
|
<div class="gallery-info">
|
|
<h4>Media Playback</h4>
|
|
<p>Reacting to YouTube Music — tracking current listening session on the display.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="gallery-card">
|
|
<div class="gallery-img">
|
|
<img src="https://github.com/user-attachments/assets/1320a7ed-cf56-4fd9-a7f6-4c8132280aa8" alt="Web Interface V1" loading="lazy">
|
|
</div>
|
|
<div class="gallery-info">
|
|
<h4>Web Control UI (V1)</h4>
|
|
<p>Initial web-based remote control panel for selecting active emojis in MacroDeck mode.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="gallery-card">
|
|
<div class="gallery-img">
|
|
<img src="https://github.com/user-attachments/assets/421658ce-7132-4da3-a833-19ac9887a6d1" alt="Web Interface V2" loading="lazy">
|
|
</div>
|
|
<div class="gallery-info">
|
|
<h4>Web Control UI (V2)</h4>
|
|
<p>Evolved layout with 100x100px assets and improved manual reaction system.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section id="specs" class="section specs-section">
|
|
<div class="section-container">
|
|
<div class="section-header">
|
|
<span class="section-tag">Hardware</span>
|
|
<h2>Specifications</h2>
|
|
<p>Minimal hardware requirements for a complete physical status monitor setup.</p>
|
|
</div>
|
|
|
|
<div class="specs-grid">
|
|
<div class="spec-card">
|
|
<div class="spec-icon">
|
|
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="4" width="16" height="16" rx="2" ry="2"/><rect x="9" y="9" width="6" height="6"/><line x1="9" y1="1" x2="9" y2="4"/><line x1="15" y1="1" x2="15" y2="4"/><line x1="9" y1="20" x2="9" y2="23"/><line x1="15" y1="20" x2="15" y2="23"/><line x1="20" y1="9" x2="23" y2="9"/><line x1="20" y1="14" x2="23" y2="14"/><line x1="1" y1="9" x2="4" y2="9"/><line x1="1" y1="14" x2="4" y2="14"/></svg>
|
|
</div>
|
|
<h4>RP2040-Zero</h4>
|
|
<p>Microcontroller or compatible Raspberry Pi Pico running MicroPython firmware.</p>
|
|
</div>
|
|
|
|
<div class="spec-card">
|
|
<div class="spec-icon">
|
|
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>
|
|
</div>
|
|
<h4>1.69" IPS LCD</h4>
|
|
<p>ST7789 controller, 240x280 resolution, SPI interface with vibrant color output.</p>
|
|
</div>
|
|
|
|
<div class="spec-card">
|
|
<div class="spec-icon">
|
|
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2v6M12 18v4M4.93 4.93l4.24 4.24M14.83 14.83l4.24 4.24M2 12h6M18 12h4M4.93 19.07l4.24-4.24M14.83 9.17l4.24-4.24"/></svg>
|
|
</div>
|
|
<h4>USB-C Connection</h4>
|
|
<p>Single cable for both data interface and power supply. Plug and play setup.</p>
|
|
</div>
|
|
|
|
<div class="spec-card">
|
|
<div class="spec-icon">
|
|
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>
|
|
</div>
|
|
<h4>Linux (GNOME/Wayland)</h4>
|
|
<p>Tested on Fedora with GNOME desktop environment. Python with pyatspi required.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="code-section">
|
|
<div class="code-header">
|
|
<span class="code-dot"></span>
|
|
<span class="code-dot"></span>
|
|
<span class="code-dot"></span>
|
|
<span class="code-title">monitor_pc.py — App Mapping</span>
|
|
</div>
|
|
<pre class="code-block"><code><span class="code-comment"># Example: Adding a new app in monitor_pc.py</span>
|
|
<span class="code-keyword">APPS_MAPPING</span> = {
|
|
<span class="code-string">"Code"</span>: <span class="code-string">"VSCODE"</span>,
|
|
<span class="code-string">"Firefox"</span>: <span class="code-string">"FIREFOX"</span>,
|
|
<span class="code-comment"># Map window focus keyword to an internal ID</span>
|
|
<span class="code-string">"Obsidian"</span>: <span class="code-string">"NOTAS"</span>
|
|
}
|
|
|
|
<span class="code-comment"># V2: Web control API snippet</span>
|
|
<span class="code-keyword">@app.route</span>(<span class="code-string">'/set_emoji/<emoji_id>'</span>)
|
|
<span class="code-keyword">def</span> set_emoji(emoji_id):
|
|
<span class="code-comment"># Sends manual Emoji command via serial</span>
|
|
send_to_serial(emoji_id.upper())
|
|
<span class="code-keyword">return</span> {<span class="code-string">"status"</span>: <span class="code-string">"success"</span>}
|
|
|
|
<span class="code-comment"># V2: RP2040 optimized image loading</span>
|
|
<span class="code-keyword">if</span> comando <span class="code-keyword">in</span> EMOJI_MAP:
|
|
arch = EMOJI_MAP[comando]
|
|
mostrar_imagen(arch)</code></pre>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="section cta-section">
|
|
<div class="section-container">
|
|
<div class="cta-content">
|
|
<h2>Build Your Own PRRPC</h2>
|
|
<p>Open source, fully documented. Get started with minimal hardware and bring physical status monitoring to your Linux desktop.</p>
|
|
<div class="cta-actions">
|
|
<a href="https://github.com/jrodriiguezg/PRRPC" target="_blank" rel="noopener noreferrer" class="btn btn-primary">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg>
|
|
View Source Code
|
|
</a>
|
|
<a href="https://ko-fi.com/jrodriiguezg" target="_blank" rel="noopener noreferrer" class="btn btn-secondary">Support Development</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
|
|
<footer>
|
|
<div class="footer-container">
|
|
<p>© 2026 Juan Raul Rodriguez Gil. Built with passion for Linux & Hardware.</p>
|
|
<div class="footer-links">
|
|
<a href="https://jrodriiguezg.link">Portfolio</a>
|
|
<a href="https://github.com/jrodriiguezg">GitHub</a>
|
|
<a href="https://www.instagram.com/jrodriiguezg.link/?hl=es" target="_blank" rel="noopener noreferrer">Instagram</a>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html>
|