publiclab / pi-builder

Developing a reproducible build script system for making Raspberry Pi .img files
MIT License
22 stars 15 forks source link

Installing Witty Pi energy manager software #44

Open imvectech opened 6 years ago

imvectech commented 6 years ago

Hi all. We've been trying to install Witty pi software and we don't exaclty know how to make a pull request. We are unable to connect to internet using the combined image turning off the ap0 default acces point. This script installs the Witty Pi energy manager software (done on a raspbian) plus two tricks we arrived to after fighting a lot with it (one realted to the gpio4 and the other the lack of a scheadule.wpi file) . First time we write a script so maybe is quiet a bit rough ;D (we don't even know if sudo su is necessary) ;)

echo "Installing Witty pi mini packages" sudo su mkdir /home/wittypi git clone https://github.com/uugear/Witty-Pi-2.git /home/wittypi chmod +1 /home/wittypi/installWittyPi.sh ./home/wittypi/installWittyPi.sh wget https://gitlab.com/imvec/anoiacam/blob/8dc8b9c798d2d6c79ec4267b90b8175fd84c7682/schedule.wpi /home/wittypi/wittyPi rm -rf /home/wittypi/wittyPi/daemon.sh wget https://gitlab.com/imvec/anoiacam/blob/11d387a98e0283f91e9ae7118a6456a4360caa7c/daemon.sh /home/wittypi/wittyPi

wittypi.txt

jywarren commented 6 years ago

Super! So you can click the ✏️ next to the top right on this file, and begin adding your content -- probably near the bottom:

https://github.com/publiclab/pi-builder/blob/master/builder/chroot-script.sh

We can debug as it builds and make necessary adjustments gradually! Awesome! 🎈 📷 ⚡️

jywarren commented 6 years ago

Excited so I started us off here: https://github.com/publiclab/pi-builder/pull/45

jywarren commented 6 years ago

...it's building!!!!

imvectech commented 6 years ago

O_o great!! So no need of adding it t the bootom of chroot?

jywarren commented 6 years ago

I'm not sure, i think i did that here? https://github.com/publiclab/pi-builder/pull/45/files

jywarren commented 6 years ago

and if you want you can open your own PR with this so you can keep modifying it. I usually do the modifications in the online editor, actually!

imvectech commented 6 years ago

Yeah there it is! So in a while a new image would be ready?¿

imvectech commented 6 years ago

"pipeline failed with gitlab" I did something wrong ;D It says I need "push" acces to edit the file.

jywarren commented 6 years ago

Yes - there are instructions in the PR to fetch it. We want to add a bot that pastes in the final link when ready, but haven't figured out how yet. :-)))

On Thu, Nov 1, 2018, 3:33 PM IMVEC <notifications@github.com wrote:

Yeah there it is! So in a while a new image would be ready?¿

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/publiclab/pi-builder/issues/44#issuecomment-435158747, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ-JvzRwLmRAoSTlp43zLXkjav4v1ks5uq0xcgaJpZM4YIcEu .

imvectech commented 6 years ago

Just created my first pull request at https://github.com/publiclab/pi-builder/pull/46 ;D