Automated Script to install Homebridge and a few other things on a Raspberry Pi. This script was inspired by the Smartapfel.de Community.
This script provides the following things in an automated way:
- Installation of available Raspbian Updates (apt-get update/apt-get upgrade) Optional you can update the Raspberry Firmware (rpi-update)
- Checks the Raspberry Version and considers this for the NodeJS Installation.
- NodeJS in desired Version will be installed. If no Version is provided 9.11.2 will be installed.
- Libavahi DNS package Installation
- The latest Version of NPM
- The latest Version of Hombridge Application
- After the first steps you will be asked to install some Homebridge Plugins. Provide the name (e.g. for homebridge-harmonhub provide harmonyhub) and teh desired version of the plugin (no provided Version means latest available)
- You are able to provide your own config.json (in case of backup for example). If not a default config.json will be copied to /var/homebridge. You need to edit this config.json if you want to make the pluginconfiguration
- Next step ist the configuration of the systemd Service (Start of Homebridge App after every boot and failure). This scripts creates a new user called homebridge to start the Homebridge service. Every needed file will be copied to the correct destination.
- The script creates a few desktop shortcuts to start, stop and restart the Homebridge Service and to view the current log from Homebridge (Journalctl) on the desktop of the signed in user.
- Cleanup of Installation leftovers and old configuration files
- At least the script asks you to restart the Raspberry Pi
Call the HomebridgeInstall File via Terminal by calling "bash <path to the script>" or make the file executable and call it with a doubleclick and start with the terminal