-
Notifications
You must be signed in to change notification settings - Fork 1
HowTo Update WebGUI
This guide explains how to update Glitchy's web interface files stored on the SD card.
- SD card reader (built-in or USB adapter)
- Latest web GUI files (from releases or build)
- FAT32 formatted SD card
- Go to Releases
- Download the web GUI archive (e.g.,
webgui-v2.0.0.zip) - Extract the archive to a temporary folder
- Power off Glitchy
- Remove SD card from Glitchy
- Insert SD card into computer
-
Delete existing web files from SD card:
index.html-
*.jsfiles -
*.cssfiles -
assets/folder (if present)
-
Copy new files from extracted archive to SD card root
Your SD card should now contain:
SD Card/
├── index.html
└── assets/
├── index-[hash].js
├── index-[hash].css
└── [other asset files]
Note: Vite uses hashed filenames (e.g.,
index-HjK8x2.js) for cache busting. The exact filenames will vary with each build.
- Safely eject SD card from computer
- Insert SD card into Glitchy
- Power on Glitchy
- Connect to WiFi network
- Open browser to
http://192.168.4.1 - Clear browser cache (Ctrl+Shift+R or Cmd+Shift+R)
- Verify the interface loads and functions correctly
If you want to build the web GUI yourself:
- Node.js 16+ and npm
- Git
# Navigate to web GUI repository (separate from main glitchy repo)
cd glitchy-vue-app
# Install dependencies
npm install
# Build for production
npm run build
# Output files are in dist/ folderNote: The web GUI source is in the
glitchy-vue-apprepository, which is separate from the mainglitchyfirmware repository.
Copy contents of dist/ folder to SD card root. The Vite build produces:
dist/
├── index.html
├── favicon.ico (if present)
└── assets/
├── index-[hash].js
├── index-[hash].css
└── [other chunks]
- File System: FAT32 (format the entire card)
- Cluster Size: Default (usually 4096 bytes)
- Minimum Size: Any size works (web files are small)
Windows:
- Right-click SD card in File Explorer
- Select "Format"
- Choose FAT32
- Click "Start"
macOS:
- Open Disk Utility
- Select SD card
- Click "Erase"
- Choose MS-DOS (FAT)
Linux:
sudo mkfs.vfat -F 32 /dev/sdX1Web GUI and firmware should be from the same release. Mismatched versions may cause:
- WebSocket connection failures
- Missing features
- JavaScript errors
Best practice: Always download firmware and web GUI from the same GitHub release to ensure compatibility.
See Reference: Version Compatibility
"Connection refused" or blank page:
- Verify SD card is inserted properly
- Check file names are correct (case-sensitive)
- Try reformatting SD card as FAT32
- Verify
index.htmlexists at root level
Browser cache issue:
- Hard refresh: Ctrl+Shift+R (Windows/Linux) or Cmd+Shift+R (Mac)
- Clear browser cache completely
- Try incognito/private browsing mode
- Try different browser
Version mismatch:
- Ensure firmware and web GUI are from the same release
- Download both components from the same GitHub release
- Update both if versions don't match
File system issue:
- Reformat SD card as FAT32
- Ensure no hidden files causing issues
- Try different SD card