Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Witty pi energy manager #47

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions builder/chroot-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ disable_camera_led=1
gpu_mem=128
" >> boot/config.txt

# enable i2C
echo "
dtparam=i2c1=on
" >> boot/config.txt

# /etc/modules
echo "snd_bcm2835
" >> /etc/modules
Expand Down Expand Up @@ -220,3 +225,13 @@ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
echo "HYPRIOT_DEVICE=\"$HYPRIOT_DEVICE\"" >> /etc/os-release
echo "HYPRIOT_IMAGE_VERSION=\"$HYPRIOT_IMAGE_VERSION\"" >> /etc/os-release
cp /etc/os-release /boot/os-release

# install Witty pi energy manager software
echo "Installing i2c-tools"
apt-get install i2c-tools
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See apt has no package lists at line 231 because they were cleaned up on line 222.
Instead you should add i2c-tools to line 150 (with escaping the prior newline).
I'll try to debug why our PR building didn't work again now.

mkdir /home/imvec
cd /home/imvec
echo "Installing Witty Pi 2 software"
wget http://www.uugear.com/repo/WittyPi2/installWittyPi.sh
sh installWittyPi.sh
apt-get update
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be necessary (it will fetch package lists once again after cleanup). If apt is needed perhaps we should move apt cleanup further down :-)