How to Play Freecodecamp radio on the command line

Hello. No question here, I just wanted to share.

The FreeCodeCamp radio is very nice, but the browser itself (plus stream and animation) uses a lot of resources on a Raspberry Pi 3. So I looked for a command line solution to play this audio stream…

The first Google hit is this exact question, but unresolved: How to stream coderadio.freecodecamp.org via CLI?

Since it’s too late to add an answer there, here is what you do:

  1. Install a lightweight http stream client like: GitHub - mpv-player/mpv: 🎥 Command line video player
  2. run: mpv [url]
  3. If needed you can get the mp3-stream URL from View Source.
    … ex: mpv https://coderadio-admin-v2.freecodecamp.org/listen/coderadio/radio.mp3

This works pretty good on Mac too (via ‘homebrew’). My fan no longer kicks in when playing. Hope this helps.

Original asker, FYI @jahway603
(603? Hey… another user in New Hampshire? :smiley: )

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.