Testing your addon locally
Symlink workflow
cd ~/magicmirror2os/addons
ln -s ~/dev/crypto-tracker ./crypto-tracker
pm2 restart m2c2Hot reload
Enable Settings → Developer → Addon hot reload (if present) or restart PM2 after webpack watch rebuilds dist/widget.js.
💡 Tip: Keep a fixtures/ JSON file with sample API responses so UI work does not depend on flaky public APIs.
Mock SDK
import { createMockAddonProps } from "@m2c2/sdk/dev";Use in Storybook / Vitest component tests.
Voice testing
Use Piper debug console to replay WAV clips for consistent STT results.
Troubleshooting
CORS errors in dev
Addon fetches must go through http bridge, not raw fetch, to inherit signing + allowlist.
Last updated on
Was this helpful?