API Access for Current Playing Info - MicroPython Integration Request
Hi All,
I'm working on a project to display current internet radio station information on a small LCD screen (2.8" display pack) using a Raspberry Pi Pico W with MicroPython. I've successfully enabled the "Metadata file" option in MPD Config, but I'm running into some challenges accessing the current playing information programmatically.
What I'm trying to achieve:
via HTTP requests from MicroPython, I get:
Questions:
Hi All,
I'm working on a project to display current internet radio station information on a small LCD screen (2.8" display pack) using a Raspberry Pi Pico W with MicroPython. I've successfully enabled the "Metadata file" option in MPD Config, but I'm running into some challenges accessing the current playing information programmatically.
What I'm trying to achieve:
- Display current song info (for local files) or station name (for radio streams) on a Pico W display
- Update the display when tracks/stations change
- Works with both local music files and internet radio streams
- Metadata file is enabled in Audio Config → MPD Options
- Local network access to Moode web interface works fine
- WiFi connectivity from Pico W to Moode device is working
Code:
/var/local/www/currentsong.txt
- Local music files: Works as expected, returns JSON with song metadata
- Radio streams: Always returns HTTP 302 redirect to
/images/default-album-cover.png
Questions:
- Is there a reliable API endpoint to get the current station name for radio streams, even when song metadata isn't available?
- Are there any plans to include basic station info (station name, stream URL) in the currentsong.txt file for radio streams?
- Would it be possible to have an additional endpoint like
/currentstation.txt