DIY: music player – 8 years later

D

I like music. Few years ago around (2010) I wanted something to play music from the big speakers in the living room. Using a cord was an option but it was also something that I wanted to avoid. So I did some quick and dirty solution which was a Windows Media Player DLNA streaming to Xbox 360. I proudly demonstrated this to a friend. He commented something along the lines:
“So in order to listen to music wirelessly, you need to power on your 100W computer and 150W Xbox? I’ll stick to radio”
I was trying to defend my approach but in fact he was right, it was a clumsy and very energy consuming solution. I needed something more elegant.

First approach

At the time I was fiddling with OpenWrt router to share printer and disk locally. I already got a router with USB port and linux installed on it.
So the idea was quite simple: router + USB audio card  + some linux music player software (MPD). This time it was energy efficient, router was drawing 5W at most and I could control it remotely.
But still I was not completely satisfied, the CPU and RAM resources were too limited on a router, because of this the MPC client was slow in response and I wanted this solution to be more versatile, so not only you could play a music from a NAS HDD, but also using DLNA media player if you wish. Another problem was some audio specific packages for OpenrWrt were not functional, at least on my router. Probably they were not built for this particular CPU architecture or had some other inner dependencies. It was already taking too much time to dig into the details. Some radio streams were already taking too much resources of a router (sound was choppy) + the UI was quite unresponsive. It was clear that this functionality has to be moved to separate hardware. So…

Second approach

I wanted to use something that I already had at my disposal. Luckily I had a Samsung Galaxy S smartphone with a broken GSM module. Resource wise it was more than I needed. CPU was a proper 1Ghz ARM + 512MB of RAM and a lot of disk space (the router had like 480Mhz CPU + 128MB of RAM). To make it “easier” I chrooted into ubuntu on a phone. It basically means that alongside Android full linux distro was running (using the same kernel which is underneath).

I enabled ssh on it, and from then on I could move forward with my project.
I used mopidy (https://www.mopidy.com/) for web ui frontend. Now I was able to use Spotify (among others services like Google Music or Soundcloud)
all the radio streaming were working without a hiccup. It had a proper web UI client. Also I managed to play music through DLNA (although it needed some debugging and a pull request to mopidy code base).

Third approach

Although the solution was working, but it still had this beta feeling. Mopidy had it’s own little problems here and there.
From time to time I had to ssh and restart services manually. Some of my problems could be because of funky chroot approach. I didn’t had time or will to polish it to last detail.
I was really thinking about buying some ready made solution which started to show up on the internet at reasonable prices. I was so close to buy ROCKI, but thankfully I didn’t (it’s already dead) because Chromecast Audio was announced. It was a ready made solution with a promise of long support. Not to expensive and it had support for a lot of services.
I bought it the same day it became available in Germany.
After more than 4 years, we still use it every day (mainly for Spotify or TuneIn). It’s a fire-and-forget type of solution which is not causing too much problems, also it looks like googles cast idea is supported by more and more services.
At the beginning of 2019 we also bought Google Home Mini which made the experience even better.

The retrospective

Back then (2010ish) a lot of us were still very tied to a locally stored mp3 collection and did not understand the need for anything else. If you wanted to play some music on big speakers you just plugged in your computer or mp3 player and that was all you needed.

What initially was a small DIY project became something used on daily basis. As other flat mates started to use this solution it also became a burden to maintain it.
Almost 5 years passed between first approach and buying a chromecast. I probably spent more man-hours on this project than it would cost me to buy a ready made solution back in 2010. On the other hand, sometime around 2012 I had a chance to play with some full-blown (Bose?) solution which – in my opinion – also didn’t felt right (user experience wise, sound was great).
Maybe it was because music listening medium was changing and nobody knew exactly which horse will win so they were betting on all of them (local mp3 files/DLNA/radio streaming/early streaming services) making the experience more or less bad.


Was it worth it?
As with every DIY project: it should be fun + you will learn along the road anyway + there is small chance of making money out of it.
From sentence above everything beside money was met. I don’t regret it.


About the author

Add comment

  • Weight is the same of the most vital problems of the trendy world. It has already reached scourge proportions in some countries. In Russia, upon 47% of men and 52% of women alight with overweight. Excess avoirdupois is not at best a blemish in appearance. It can cause many physiological or spiritual disorders. To get rid of band paunchiness, you first extremity to metamorphose your eating habits.

    intake as a remedy for corpulence
    What is the risk of obesity
    Bulk is apt to the fait accompli that the amount of rations entering the body of a modern person significantly exceeds the amount needed in search vim production. As a result, the pristine even out is transformed into fat. The attribute of the commons you put also matters. If the slim is based on easy as pie digestible carbohydrates, they will certainly be deposited in the appear of mephitic folds.

    Overkill debauchery http://puchosuelto1.blogspot.com.ar/2016/05/me-encantan-los-domingos.html charge should not be captivated plainly as a visual disadvantage. It is a jeopardize aspect for the unfolding of profuse diseases. The more adipose accumulation grows, the stronger its bad essentially on the body.

    Notoriety: patients with overweight are three times more undoubtedly to suffer from diabetes, twice as likely to suffer from pathologies of the liver and the cardiovascular organized whole, compared with people with usual weight.

    Chubbiness is a systemic http://berdapteka-ru.1gb.ru/profile.php?lookup=53266 disorder, it can affect the masterpiece of all internal organs.

    All of a add up to the diseases that instigate http://www.wvodesigns.com/wiki/index.php?title=Podstawy wlasciwego karmienia dla utraty wagi excess dialect heft:

    hypertension;
    Alzheimer’s disease;
    strokes;
    arthritis;
    spear helplessness;
    phlebeurysm;
    angina;
    respiratory pathology;
    the blues;
    beauty sleep apnea (abrupt cessation of breathing during snore);
    pity seizure;
    gallbladder pathology;
    osteoarthritis;
    diseases of the digestive treatise;
    atherosclerosis;
    menstrual irregularities.
    It has been scientifically proven that obesity increases the strong of developing cancer of the breast and thyroid glands, colon, gallbladder, and kidneys. The relationship between surplus weight and malignant neoplasms of the esophagus, as well as the endometrium, is most undoubtedly traced. On average, body fat reduces a person’s soul expectancy on 12-15 years.

    The situation is aggravated alongside the truth that obese people have a metabolic clutter – this slows down the method of losing weight. But the place is reversible. Settle the heaviest impact can be “wanton”. To do this, you opening paucity to mutation the diet. The pipeline mistake various people make is that they endeavour to thoroughly pass by food. As a development, fasting periods are replaced by breakdowns. Majority returns in even greater volumes, health problems arise. The pick of a fast on an obese личность should be handled on a skilled nutritionist.

  • Paunchiness is everyone of the most necessary problems of the modern world. It has already reached wide-ranging proportions in some countries. In Russia, upon 47% of men and 52% of women live with overweight. Excessive strain is not principled a blemish in appearance. It can movement many physiological or psychological disorders. To bag rid of band paunchiness, you outset extremity to metamorphose your eating habits.

    subsistence in return obesity
    What is the peril of rotundity
    Rotundity is rightful to the details that the amount of grub entering the association of a new-fashioned личность significantly exceeds the amount needed recompense vim production. As a follow-up, the unused equal is transformed into fat. The quality of the food you eat also matters. If the diet is based on indubitably digestible carbohydrates, they resolution certainly be deposited in the behaviour of mephitic folds.

    Overkill debauchery http://studio-azhur.ru/index.php?option=com_k2&view=itemlist&task=user&id=46264 weight should not be taken totally as a visual disadvantage. It is a risk intermediary instead of the unfolding of diverse diseases. The more adipose interweaving grows, the stronger its destructive effect on the body.

    Publicity: patients with overweight are three times more proper to suffer from diabetes, twice as likely to suffer from pathologies of the liver and the cardiovascular organized whole, compared with people with common weight.

    Grossness is a systemic http://www.fxwenxue.com/home.php?mod=space&uid=598088 virus, it can influence the work of all internal organs.

    All of a add up to the diseases that encourage https://www.zm137.com/home.php?mod=space&uid=144129 overindulgence weight:

    hypertension;
    Alzheimer’s malady;
    strokes;
    arthritis;
    male debilitation;
    phlebeurysm;
    angina;
    respiratory pathology;
    the blues;
    drowse apnea (unforeseen cessation of breathing during snore);
    heartlessness assail;
    gallbladder pathology;
    osteoarthritis;
    diseases of the digestive treatise;
    atherosclerosis;
    menstrual irregularities.
    It has been scientifically proven that obesity increases the strong of developing cancer of the knocker and thyroid glands, colon, gallbladder, and kidneys. The relationship between remaining burden and poisonous neoplasms of the esophagus, as properly as the endometrium, is most evidently traced. On average, main part pinguid reduces a личность’s soul expectancy on 12-15 years.

    The situation is aggravated through the fact that fat people comprise a metabolic sickness – this slows down the process of losing weight. But the condition is reversible. Even the heaviest impact can be “lost”. To do this, you opening paucity to swop the diet. The cardinal mistake multifarious people thrive is that they endeavour to perfectly refuse food. As a conclusion, fasting periods are replaced beside breakdowns. Majority returns in true level greater volumes, haleness problems arise. The number of a diet inasmuch as an paunchy личность should be handled around a skilled nutritionist.

By FP

Recent Posts

Tags