-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Nicholas Penree edited this page Mar 2, 2022
·
8 revisions
Welcome to the homebridge-tidbyt wiki!
I’m running Homebridge on a Raspberry Pi 4 using the official image based on Raspbian.
First, determine if you are on a 32-bit or 64-bit operating system. From the command line, run uname -m
. If you get a response like arm64
, you're on 64-bit. If you see something like armv6l
or armv7l
, you're running on 32-bit.
If you are on a 64-bit Linux distribution for your Pi, you can use the official arm64 binary provided by Tidby:
https://github.com/tidbyt/pixlet/releases
If you are on running 32-bit, you'll need to install Go and build Pixlet from source following these steps:
- To download the latest stable Go for 32-bit arm, run:
> curl -L https://golang.org/dl/$(curl -s https://api.github.com/repos/golang/go/git/matching-refs/tags/go | grep '/ref' | sed -e '/beta/ d' -e '/rc/ d' -e 's/.*\(go[0-9.]*\).*/\1/' | tail -1).linux-armv6l.tar.gz | sudo tar -xzC /usr/local
- With Go & Node.js installed, we can now install the Pixlet dependencies:
> sudo apt update && sudo apt install git libwebp-dev -y
- Now, clone the Pixlet source code:
> git clone https://github.com/tidbyt/pixlet
- And finally, build from source:
> cd pixlet && \
npm install && \
npm run build && \
PATH=$PATH:/usr/local/go/bin GOPATH=$HOME/golang make build
- Move the built pixlet binary to /usr/local/bin (which is in the $PATH):
> sudo mv pixlet /usr/local/bin/