I've laid out the key steps below on how to set up the HyperPixel display. Once it reboots try visiting again to see that it's started automatically. ![]() Now save everything down and reboot: pm2 save sudo reboot This instructs the system to run PM2 on boot every time, which we can then use to start the programs we want to run all the time. This last command generate something which looks a bit like: sudo env PATH=$PATH:/usr/bin /usr/local/lib/node_modules/pm2/bin/pm2 startup systemd -u pi -hp /home/piĬopy what your Pi generates (not the exact text above - yours may be different) and enter it into the command line. Check it's working by going to in your web browser again.Īssuming it's all good let's get it to run on start: pm2 startup systemd This should start the server again, but this time in the background. sudo npm install -g pm2 cd node-sonos-http-api pm2 start npm - start ![]() Now we will install something called PM2 which will start the server every time we boot our system. Go back to the terminal and kill the server with C. You should see a nice Sonos interface in your web browser, which shows that the API is working: If you want to connect from your PC/Mac/iPhone then replace localhost with the IP address of your Pi.) Open a web browser on your Raspberry Pi desktop and navigate to (Note this will only work on the Pi itself. This should install and start the Sonos API server. Now let's install the actual Sonos API code: git clone cd node-sonos-http-api npm install -production npm - start Open up a Raspberry Pi command line and type the following to install the pre-requisites. The http-sonos-http-api is the bit of software that actually interfaces with our Sonos system. Run these commands at the command line to ensure everything is up to date on your Raspberry Pi: sudo apt update sudo apt upgrade You can also use the included spacers if you are using a B+ model or want more space. What is required is that you unplug it from the power first to protect yourself and the hardware. No soldering or messing around is required. The HyperPixel sits right on top of the Pi. The ideal one in my view is the Pi 3A+ as it's the thinnest. I recommend using a Pi 3 or Pi 4 for this project. It takes max one hour and assumes zero prior knowledge (promise). If you don't, then go through my super-simple, no-prior-knowledge-assumed, every-single-step-explained tutorial on how to set one up here. If you have a setup and running Raspberry Pi then skip to Step 2. Also note that this tutorial only works with the HyperPixel 4.0 Square, not the rectangular one) (Note: I am using the non touch version of the HyperPixel 4.0, which is cheaper and does everything we need. You can build the whole thing for £75 and I will talk you through every single step in the tutorial below: literally no prior experience required. ![]() This project will put this lovely little display to work to display the album art from whatever is currently playing on your Sonos system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |