A Next.js application for controlling Astromech components.
- Install dependencies:
npm install- Create a
.env.localfile with:
NEXT_PUBLIC_API_URL=http://pi:3030
- Run the development server:
npm run dev- Servo Control
- Audio Playback
- Controller Status Monitoring
- Real-time Updates
- Next.js 14
- TypeScript
- Tailwind CSS
- shadcn/ui
- Axios
GET /api/servos- List all servosPOST /api/servos/{name}/move- Move a servoGET /api/controllers- List all controllersGET /api/audio- List audio filesPOST /api/audio/play- Play audio file