- Run
npm install cordova-res --save-dev - Create
1024x1024pxicon atresources/icon.png - Create
2732x2732pxsplash atresources/splash.png - Add
"resources": "cordova-res ios && cordova-res android && node scripts/resources.js"toscriptsinpackage.json - Copy
resources.jsfile toscripts/resources.js - Run
sudo chmod -R 777 scripts/resources.js - Run
npm run resources
This gist will show how to setup Raspbian Stretch as a headless Bluetooth A2DP audio sink. This will allow your phone, laptop or other Bluetooth device to play audio wirelessly through a Rasperry Pi.
A quick search will turn up a plethora of tutorials on setting up A2DP on the Raspberry Pi. However, I felt this gist was necessary because this solution is:
- Automatic & Headless - Once setup, the system is entirely automatic. No user iteration is required to pair, connect or start playback. Therefore the Raspberry Pi can be run headless.
- Simple - This solution has few dependencies, readily available packages and minimal configuration.
- Up to date - As of December 2017. Written for Raspbian Stretch & Bluez 5.43