Set Your GitHub Handle
The badge app refuses to fetch data until GITHUB_USERNAME and Wi-Fi credentials exist in /secrets.py. Fill them in so the stats screen lights up with your profile.
Prerequisites
- Wi-Fi SSID and password for a 2.4 GHz network
- Your GitHub username (case-sensitive)
Note that at the Universe event, there is a WiFi access point that you can connect to in the “Hack The Badge” area.
Steps
- Enter USB storage mode (double-tap
Reset). - Open the badger volume in VS Code (
File → Open...and choose the mounted drive). - Locate
secrets.pyat the root of the badger volume and edit it in VS Code, replacing the placeholder values:WIFI_SSID = "your-ssid" WIFI_PASSWORD = "your-password" GITHUB_USERNAME = "your-handle" - Save the file, eject the badger volume, and tap
Resetonce.
What the Badge Checks
from secrets import WIFI_PASSWORD, WIFI_SSID, GITHUB_USERNAME
...
if not WIFI_SSID:
return False
if not GITHUB_USERNAME:
return False
user.handle = GITHUB_USERNAME
Reference: badge/apps/badge/__init__.py.
Verify
- Launch the Badge app.
- Hold
A+Cto force refresh; within ~10 seconds you should see your avatar, follower count, and contribution graph. - If you hit
Connection Failed, double-check the Wi-Fi credentials.
Safety Tips
secrets.pyis plain text. Avoid committing it to Git—it should stay on the badge only.- To revert quickly, delete
/secrets.pyand reboot; the badge falls back to the built-in defaults.