Skip to content

Commit

Permalink
homegear repo install as per official instructions; removed wiringPi
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Storm <[email protected]>
  • Loading branch information
mstormi committed Oct 4, 2024
1 parent 800129a commit e2368e1
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions functions/packages.bash
Original file line number Diff line number Diff line change
Expand Up @@ -220,17 +220,27 @@ homegear_setup() {

if ! add_keys "https://apt.homegear.eu/Release.key" "$keyName"; then return 1; fi

# need to use testing repo to get v0.8
# need to use testing repo
# repo https://apt.homegear.eu/raspberry_pi_os/bookworm/homegear/{testing,stable}/dists/bookworm/
echo "deb [signed-by=/usr/share/keyrings/${keyName}.gpg] https://apt.homegear.eu/${myOS,,}/${myRelease,,}/homegear/testing ${myRelease,,} main" > /etc/apt/sources.list.d/homegear.list

#echo "deb [signed-by=/usr/share/keyrings/${keyName}.gpg] https://apt.homegear.eu/${myOS,,}/${myRelease,,}/homegear/stable ${myRelease,,} main" > /etc/apt/sources.list.d/homegear.list

# Add Homegear's repository to APT
# Please copy the whole next block from "if" to "fi". The script then automatically chooses the right repo
# depending on whether your system is 32 or 64 bit.
if [ $(dpkg --print-architecture) == 'arm64' ]; then
# 64-bit Raspberry Pi OS:
echo 'deb [signed-by=/usr/share/keyrings/homegear-archive-keyring.gpg] https://apt.homegear.eu/debian/bullseye/homegear/testing/ bullseye main' > /etc/apt/sources.list.d/homegear.list
else
# 32-bit Raspberry Pi OS
echo 'deb [signed-by=/usr/share/keyrings/homegear-archive-keyring.gpg] https://apt.homegear.eu/raspberry_pi_os/bullseye/homegear/testing/ bullseye main' > /etc/apt/sources.list.d/homegear.list
fi
echo -n "$(timestamp) [openHABian] Installing Homegear... "
if ! cond_redirect apt-get update; then echo "FAILED (update apt lists)"; return 1; fi
if is_raspios; then
wget -O "$temp" https://github.com/WiringPi/WiringPi/releases/download/2.61-1/wiringpi-2.61-1-armhf.deb
dpkg -i "$temp"
rm -f "$temp"
fi
# if is_raspios; then
# wget -O "$temp" https://github.com/WiringPi/WiringPi/releases/download/2.61-1/wiringpi-2.61-1-armhf.deb
# dpkg -i "$temp"
# rm -f "$temp"
# fi
if cond_redirect apt-get install --yes -o DPkg::Lock::Timeout="$APTTIMEOUT" homegear homegear-homematicbidcos homegear-homematicwired homegear-max homegear-management; then echo "OK"; else echo "FAILED"; return 1; fi
echo -n "$(timestamp) [openHABian] Setting up Homegear user account permissions... "
if ! cond_redirect adduser "${username:-openhabian}" homegear; then echo "FAILED"; return 1; fi
Expand Down

0 comments on commit e2368e1

Please sign in to comment.