GithubHelp home page GithubHelp logo

balena-holy-sound's Introduction

HolySound - Pi-hole and balenaSound mashup

Mix Pi-hole and balenaSound to single balenaCloud application, following the Two projects, one device: turn your Raspberry Pi into a multitool! blog post.

Features

  • Custom hostname

  • Static IP and CloudFlare DNS

  • Unbound (recursive DNS) and fbcp (display driver) removed from Pi-hole

Setup application in balenaCloud

  • Create new application holy-sound in balenaCloud

  • Set the following Fleet (application) Variables

    Name Value Note
    PIHOLE_DNS_ 208.67.222.222;208.67.220.220 Upstream DNS (where a non-blocked DNS queries will be forwarded)
    SOUND_MODE STANDALONE Disable Multi-room (only single device playing)
    SOUND_SPOTIFY_BITRATE 320 Spotify playback bitrate (default is 160)
    SOUND_SUPERVISOR_PORT 8081 Port for API and UI of Sound supervisor (default is 80 what collide with Pi-hole UI)
    TZ Continent/City Timezone
  • Add device

  • Set the following Device Variables

    Name Value Note
    BLUETOOTH_DEVICE_NAME balenaSound How the device will be shown in Bluetooth connections
    ServerIP 192.168.1.2 Device IP address
    SOUND_DEVICE_NAME balenaPlayer Spotify Connect and AirPlay name
    SOUND_SPOTIFY_ENABLE_CACHE true Enable caching (only for devices with enough disk space)
    WEBPASSWORD secret Password to access Pi-hole Web Interface at http://<ServerIP>/admin/
  • Set the following Device Configuration (in CUSTOM CONFIGURATION VARIABLES section)

    Name Value Note
    BALENA_HOST_CONFIG_dtoverlay hifiberry-dacplus Value from supported DAC boards
  • Download and flash balenaOS image

Deploy

  • Clone this repo

  • Pull submodules

      git submodule update --init
    
  • Mount SD Card

  • Patch image settings with

      ./patch-balena-settings.sh --hostname <HOSTNAME> --ip <ServerIP>/<RANGE> --gw <IP> <MOUNT_POINT>
    

    E.g. ./patch-balena-settings.sh --hostname spongebob --ip 192.168.1.2/24 --gw 192.168.1.1 /mnt/balenaOS

  • Unmount SD Card

  • Power on RPi and wait until device appears in balenaCloud

  • Build and push holy-sound application to balenaCloud

      balena push holy-sound --multi-dockerignore
    

Update

Links

balena-holy-sound's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

iansoper nbwdk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.