Okay, let’s give this a try then!
Okay, let’s give this a try then!
Den som förespråkar liberal frihet förväntas ofta visa att detta resulterar i att människor väljer klokt och resultatet blir gott. Men människor måste också vara fria att fatta svåra beslut och ta risker.
I made a slight mistake in a previous post. There needs to be two lines in the terminal to play from Spotify:
1 2 3 |
mpc add spotify:track:4uLU6hMCjMI75M1A2tKUQC mpc play |
And yes, things are progressing nicely now.
Right now is my favorite time of the year.
The kids are asleep after a long day of playing in the sun and I’m sitting on the deck, programming and blogging.
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.
My somewhat ridiculous setup for listening to music outdoors today; a Raspberry Pi running PiMusicBox and Spotify Connect connected to an external speaker and being powered by a power bank.
I’ve just uploaded my first Mario Maker 2 course. Feel free to check it out at 2DR-HVB-FRF
!
↪️ Reply to:
Henrik Carlsson took the trouble to record a microcast in reply to my Eating Alone episode and raised a completely new reason for wanting to eat alone: because cooking for and eating with picky children can be a bit of a trial. Good luck with future meals.
Cortex #16: Structural Trust – Relay FM
This made me literally laugh out loud!
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 |
Henrik Carlsson mentioned this note on blog.henrikcarlsson.se.
Replies and comments
Aaron Parecki
3 augusti, 2019 19:12oo this looks like a fun project