Henrik Carlsson's Blog

All things me.

posted this note on and tagged it with The Kid's Music Player ΠiFi Music Player

Apparently it’s more or less impossible to install additional software on an instance of Pi MusicBox, so I’ll try to get Mopidy working on a ”vanilla” Raspian Lite instead.

More progress on the music player for the kids

posted this note on and tagged it with The Kid's Music Player ΠiFi Music Player

Slightly simplified the music player for the kids has two jobs:

  1. Scan for QR codes using the camera and identify the ones that contains a Spotify URI (using zbarcam) and
  2. send that URI to the MPD that plays the music from Spotify.

At the moment I am able to set up separate tests for the two jobs and both works, on there own. The problem is that I’m currently not able to set up MPD with Spotify and the zbar tools at the same time. It seems to have something to do with different operating systems and/or other kinds of conflicting requirements that I need to lock into.

For the tests right now, I use standard Raspbian plus zbar for bullet point number one and Pi MusicBox for point number two.

For my own memories sake, this is the very simple (and probably quite brittle) shell script that I’m using for bullet point 1:

Replies and comments

posted this note on and tagged it with The Kid's Music Player ΠiFi Music Player

I’m making progress on the music player for my kids. Using Pi MusicBox on the Pi, I can control playback using mpc on my Mac.

A music player for the kids

posted this note on and tagged it with The Kid's Music Player ΠiFi Music Player

My kids, Iris and Ebbe, are four and a half, and two years old respectively. Both of them loves to listen to music and dance. Compared to when I was a kid they have access to tremendous amounts of music. If I wanted to listen to a song as a child, I had to have it on a cassette or later in life a cd. Today’s kids have access to ”all the world’s music” in Spotify, Apple Music or similar.1

The problem with the modern world in this regard is that a cassette deck and a box of cassettes is much more kid friendly than a smart device like a phone or tablet with Spotify and possibly also a smart speaker connected via bluetooth, AirPlay or a Chromecast.

Spotify has a nice solution for this in there Spotify Codes. It wouldn’t be to hard to make a whole box of cards, one for each album and/or playlist that the kids want, and teach them how to scan the cards with Spotify. The problem is that it requires them to use their iPad (or my phone, or their mother’s phone).

Why is that a problem? Because if they use the iPad they will undoubtable be sidetracked by YouTube or something similar. Sometimes having them watching videos is great. I’m certain that the reason Iris know quite a few words in English, despite being a Swede with Swedish parents, is that she’s watched a lot of English videos on YouTube. But sometimes I want them to just listen to music and not having to have a discussion about why they are allowed to use the iPad but not the apps they want.

So I’ve started toying with the idea of building them a music player that works as simple or simpler than Spotify Codes but that is a dedicated hardware device, a Raspberry Pi. The plan is for it to use either QR codes or NFC tags to control what is being played, so that way the kids can have a box of cards with artwork, similar to the box of cassettes that I had as a kid.

I think it will work.

Right now I’m going to test various setups for it and document my progress here on the blog, under the tag The Kid’s Music Player.

Some links to similar projects


  1. Yes, I am being Captain Obvious here, I know. 

Replies and comments

posted this note on and tagged it with True Detective

🎞 Watched: True Detective – The Great War and Modern Memory (S3E01)

Season 2 of True Detective was a massive drop in quality compared to season 1 however based on the first episode it seems like season three is a return to form.

posted this note on and tagged it with Porrfritt

Vilken censurtjänst från ett kommersiellt it-företag ska Dalarnas kommuner köpa in för att särskilja filmen Fifty shades of grey från ett BDSM-klipp på Pornhub?

Antiliberalt censurkrav från Liberala kvinnor Dalarna – Evelyn Schreiber

Bra ledarartikel om hur feltänkt det blir när moralismen ska få styra vad vi får se på internet.

posted this note on and tagged it with Recept

🔖 Bookmarked Massaman curry- Lättlagad thailändsk gryta – ZEINAS KITCHEN

posted this note on and tagged it with Recept

🔖 Bookmarked Tikka masala med kyckling eller oumph – ZEINAS KITCHEN

posted this note on and tagged it with Recept

🔖 Bookmarked Kyckling karahi- Pakistansk gryta – ZEINAS KITCHEN

Strömstad 2019

posted this note on and tagged it with Strömstad 2019

Linn och jag är för närvarande i Strömstad, på en semesterresa utan barnen. Ebbe är hos Linns föräldrar och Iris hos min mamma.

Varken Linn eller jag har varit i Strömstad förut. Linn har heller aldrig varit på västkusten förut, undantaget Göteborg och för min del har västkusten mestadels varit synonym med Hunnebostrand. Så därför hamnade vi här, helt enkelt för att ingen av oss varit här förut.

Vi passade på som en del i vår Arvikaresa, så att vi kunde lämna bort barnen några dagar och åka själva. Det är sällan vi kommer iväg på saker utan barnen, så när det väl blir av är det jätteskönt. Tanken var från början att boka ett spahotell här men vi var för sega med att bestämma allt, så när vi väl fick tummen ur så var det fullbokat. Därför hamnade vi på Strömstad Camping, ett äventyr i sig eftersom jag inte varit på en camping sen jag var barn och Linn aldrig har campat. Hur som helst så bokade vi en stuga och det är där jag nu sitter och skrivet det här.

Idag har vi gjort själva resan hit från Arvika och sen har vi flanerat på ett shoppingcenter innan vi åkte till campingen. Sen satt vi länge på altanen i solen och drack vin, prosecco och öl och åt chips innan vi slutligen gick on mot Strömstads centrum, promenade bland pirerna och åt middag på The Dubliner at Skagerack. God mat och väldigt mysigt läge!

Under resans gång har jag meckat lite med att posta platsinformation tillsammans med bilder, så därför har det blivit lite extra blogginlägg vilket är kul. Exakt hur jag ska använda platsinformationen på sikt vet jag inte men det är kul att ha det sparat, särskilt när vi är på nya ställen som nu.

Jag försöker även tagga alla inlägg härifrån med Strömstad 2019.