<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[MMM-InternetRadio] - play internet radio stations]]></title><description><![CDATA[<h2>MMM-InternetRadio</h2>
<p dir="auto">MagicMirror module for playing internet radio</p>
<p dir="auto">This module is based on the idea of using <a href="https://pptr.dev/" target="_blank" rel="noopener noreferrer nofollow ugc">puppeteer</a> taken from <a href="https://forum.magicmirror.builders/topic/9666/mmm-musicondemand-play-music-from-deezer-with-a-browser-in-the-background">MMM-MusicOnDemand</a>.</p>
<p dir="auto">It allows you yo configure most Internet Radio stations using selectors for items on the page to pick up:</p>
<ul>
<li>artist and title of what’s currently playing</li>
<li>play and pause buttons</li>
</ul>
<p dir="auto">Confirmed working environment:</p>
<ul>
<li>Raspberry Pi 3b+ with Raspbian with preinstalled chromium</li>
<li>node 8.15.1</li>
<li>latest <a href="https://github.com/MichMich/MagicMirror" target="_blank" rel="noopener noreferrer nofollow ugc">MagicMirror</a> (v.2.6.0)</li>
</ul>
<p dir="auto">[card:Aruta79/MMM-InternetRadio]</p>
<h2>Installation</h2>
<pre><code>cd ~/MagicMirror/modules/
git clone https://github.com/Aruta79/MMM-InternetRadio.git
cd MMM-InternetRadio
npm install
</code></pre>
<p dir="auto">It installs a puppeteer package with a chromium browser (~100mb-270mb). If you don’t want to use the puppeteer browser or if you’re running on a Raspberry Pi you may want to delete this extra chromium browser:</p>
<pre><code>cd ~/MagicMirror/modules/MMM-InternetRadio/node_modules/puppeteer
rm -r .local-chromium
</code></pre>
<h2>Configuration</h2>
<p dir="auto">Copy the following to your config.txt:</p>
<pre><code>		{
			module: "MMM-InternetRadio",
			position: "middle_center",
			config: {
			 }
		 },
</code></pre>
<h4>The module is by default configured to play <a href="https://www.rmfon.pl/play,7" target="_blank" rel="noopener noreferrer nofollow ugc">RMF Classic</a>, <a href="https://www.rmfon.pl/play,7" target="_blank" rel="noopener noreferrer nofollow ugc">RMF Celtic</a> and <a href="https://www.encoreradio.co.uk/radioplayer/" target="_blank" rel="noopener noreferrer nofollow ugc">Encore</a></h4>
<h2>Additional configuration</h2>
<p dir="auto">Additional stations can be configured using the following syntax:</p>
<pre><code>		stations: [
			{
				name: "RMF Classic",
				url: "https://www.rmfon.pl/play,7",
				titlePath: '#content &gt; #player-box-container &gt; div &gt; #player-box &gt; #player-infos &gt; div &gt; #player-texts &gt; #now-playing &gt; div.title',
				artistPath: '#content &gt; #player-box-container &gt; div &gt; #player-box &gt; #player-infos &gt; div &gt; #player-texts &gt; #now-playing &gt; div.artist',
				coverPath: '#content &gt; #player-box-container &gt; div &gt; #player-box &gt; #player-infos &gt; div &gt; #cover-container &gt; #cover &gt; img',
				playPath: '#player-icon',
				pausePath: '#player-icon',
				footerWait: '#footer',
			}],
</code></pre>
<ul>
<li><strong>name</strong> - name of station</li>
<li><strong>url</strong> - link to “Listen live” or similar page that actually plays the sound</li>
<li><strong>titlePath</strong>, <strong>artistPath</strong>, <strong>coverPath</strong> - selectors for, respectively, title, artist and cover image - should point to some elements of the page to dislay appropriate info about what’s playing</li>
<li><strong>playPath</strong>, <strong>pausePath</strong> - selectors for clickable buttons to play and stop sound - may, in many cases, point to the same item</li>
<li><strong>footerWait</strong> - item on the page to wait for to ensure page has finished loading - should be any item towards the end of the page, or empty string to disable waiting - usually good to have one defined, but not needed with decent connections</li>
</ul>
<p dir="auto">The module also has two icons to control volume, sending <strong>VOLUME_UP</strong> and <strong>VOLUME_DOWN</strong> notifications, usually for use with <a href="https://github.com/eouia/MMM-Volume.git" target="_blank" rel="noopener noreferrer nofollow ugc">MMM-Volume</a></p>
<h2>Troubleshooting</h2>
<p dir="auto">See <a href="https://forum.magicmirror.builders/topic/9666/mmm-musicondemand-play-music-from-deezer-with-a-browser-in-the-background">MMM-MusicOnDemand</a> for info about using <em>puppeteer</em> and <em>chromium</em>.</p>
]]></description><link>https://forum.magicmirror.builders/topic/10014/mmm-internetradio-play-internet-radio-stations</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 01:33:34 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/10014.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 10 Mar 2019 21:23:09 GMT</pubDate><ttl>60</ttl></channel></rss>