[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116248":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":15,"starSnapshotCount":15,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},116248,"spotify-deck-esp32","jayesh-cmd\u002Fspotify-deck-esp32","jayesh-cmd","Spotify BAG CHARM",null,"Python",73,3,55,1,0,7,16,29,62.41,false,"master",true,[],"2026-11-21 14:15:12","2026-11-23 16:27:08","# Spotify Deck\n\nA tiny physical Now Playing display — ESP32 + TFT screen styled like the iOS Lock Screen widget. Shows song title, artist, album art, and a live progress bar. Works with Spotify, YouTube, Apple Music, and a demo mode.\n\n**Platform support:** macOS (full) · Windows (Chrome\u002FEdge + Spotify) · Linux (playerctl\u002FMPRIS)\n\n---\n\n## Hardware\n\n| Part | Detail |\n|------|--------|\n| ESP32 Dev Board | Any standard 30\u002F38-pin board |\n| ST7735 TFT | 1.8\" 160×128 SPI display |\n| Jumper Wires | Male-to-female dupont wires |\n| USB Cable | Data-capable Micro-USB |\n| Battery *(optional)* | LiPo 3.7V + TP4056 module for wireless use |\n\n---\n\n## Wiring\n\n| Display Pin | ESP32 GPIO |\n|-------------|-----------|\n| VCC | 3.3V |\n| GND | GND |\n| CS | GPIO 5 |\n| RST | GPIO 4 |\n| DC \u002F A0 | GPIO 2 |\n| SDA \u002F MOSI | GPIO 23 |\n| SCK | GPIO 18 |\n| LED | 3.3V |\n\n**Optional buttons** (connect to GND, internal pull-ups active):\n\n| GPIO | Action |\n|------|--------|\n| 0 (BOOT) | Play \u002F Pause |\n| 13 | Next track |\n| 14 | Previous track |\n| 27 | Play \u002F Pause |\n\n---\n\n## Setup\n\n### 1. Flash ESP32\n\nOpen in **VS Code + PlatformIO**, connect ESP32, click **Upload**. `platformio.ini` handles everything automatically.\n\n### 2. Install Python deps\n\n```bash\npip install -r requirements.txt\n```\n\nExtra for **Windows** (YouTube\u002FSpotify detection):\n```bash\npip install pywin32 pyautogui\n```\n\nExtra for **Linux** (universal MPRIS detection):\n```bash\nsudo apt install playerctl   # or: sudo pacman -S playerctl\n```\n\n### 3. Run\n\n```bash\npython3 spotify_deck.py\n```\n\nThe ESP32 port is **auto-detected** — no config needed. If it picks the wrong port:\n```bash\npython3 spotify_deck.py --port \u002Fdev\u002FttyUSB0   # Linux\u002FmacOS\npython3 spotify_deck.py --port COM3            # Windows\n```\n\n---\n\n## Usage\n\n| Command | What it does |\n|---------|-------------|\n| `python3 spotify_deck.py` | Auto-detect what's playing |\n| `--player youtube` | Force YouTube |\n| `--player spotify` | Force Spotify |\n| `--player apple` | Force Apple Music (macOS only) |\n| `--demo` | Offline demo mode |\n| `--setup` | Configure Spotify Web API credentials |\n\n**Keyboard shortcuts while running:** `Space` play\u002Fpause · `n` next · `p` prev · `q` quit\n\n---\n\n## Spotify Web API (Optional)\n\nOnly needed for controlling Spotify on **phone \u002F browser \u002F speakers**. Desktop app works automatically.\n\n1. Create an app at [developer.spotify.com\u002Fdashboard](https:\u002F\u002Fdeveloper.spotify.com\u002Fdashboard)\n2. Set Redirect URI → `http:\u002F\u002F127.0.0.1:8888\u002Fcallback`\n3. Run `python3 spotify_deck.py --setup` and enter your credentials\n\n---\n\n## YouTube Exact Timeline (macOS only)\n\nIn **Chrome:** View → Developer → Allow JavaScript from Apple Events  \nIn **Safari:** Develop → Allow JavaScript from Apple Events\n\nWithout this, playback time is estimated locally.\n\n---\n\n## Troubleshooting\n\n| Problem | Fix |\n|---------|-----|\n| Port not found | Use `--port` to specify manually |\n| Blank screen | Check wiring pins against `platformio.ini` |\n| No art showing | Needs internet for Spotify\u002FYouTube art |\n| Linux not detecting | Run `playerctl status` to verify playerctl works |\n| Windows YouTube missing | Install `pywin32`, open YouTube in Chrome\u002FEdge |\n","这是一个基于ESP32的物理音乐播放状态显示器，可实时显示当前播放的歌曲标题、艺术家、专辑封面和进度条。项目通过Python后端（支持macOS\u002FWindows\u002FLinux）采集Spotify、YouTube、Apple Music等主流音频源的播放信息，并经串口通信驱动ST7735 TFT屏幕（1.8英寸），支持物理按键控制及离线演示模式。硬件依赖低，采用标准ESP32开发板与常见SPI屏，配置自动化，端口自动识别。适用于桌面音乐可视化、极客DIY音频控制面板或嵌入式多媒体交互场景。",2,"2026-11-24 04:53:18","CREATED_QUERY"]