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.
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.
Slightly simplified the music player for the kids has two jobs:
zbarcam
) andAt 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:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
#!/bin/bash # Start scanning for QR Codes # Use either of the lines below depending on wheter it's running in an # environment where it can show a live preview or not. zbarcam /dev/video0 --nodisplay | while read line ; do # zbarcam /dev/video0 | while read line ; do # When something is found, verify that it indeed is a QR Code IFS=':' read -r id string <<< "$line" if test $id == "QR-Code" then # Check if it is a Spotify URI IFS=':' read -r id theRest <<< "$string" if test $id == "spotify" then echo "Run this: mpc -h musicbox.local play $string" fi fi done |
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.
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.
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.
Henrik Carlsson mentioned this note on blog.henrikcarlsson.se.
🎞 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.
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.
🔖 Bookmarked Massaman curry- Lättlagad thailändsk gryta – ZEINAS KITCHEN
🔖 Bookmarked Tikka masala med kyckling eller oumph – ZEINAS KITCHEN
🔖 Bookmarked Kyckling karahi- Pakistansk gryta – ZEINAS KITCHEN
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.
Replies and comments
Henrik Carlsson
26 juli, 2019 01:54Henrik Carlsson mentioned this note on blog.henrikcarlsson.se.