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

Conversation

imvectech
Copy link

@imvectech imvectech commented Nov 3, 2018

What's this recipe about?

Witty pi mini is a Uugear RPi shield capable of managing energy of the RPi together with keeping time using an embedded RTC.

https://github.com/uugear/Witty-Pi-2

Together with the Calafou community we are working on a timelapse camera for river monitoring. First test are being carried out at the Anoia river close to Barcelona.

The intention is to turn on the rpi 5 minutes every hour and take a picture. Simple as that. The Witty pi controls the On/OFF of the RPi sending zero voltage to the Pi to fully turn it off. After 55 minutes the Witty sends a electrical signal and the Pi boots up.

011

Set up of the very first ANOIAcam prototype over the Anoia river:
anoiacam_setup_anoia

First picture of the Anoia river:
21-38-20

Download instructions
Generating the image will take a few minutes. Once the image is prepared, and if it succeeded, you'll see a green checkmark at the bottom of the pull request. To download the image go to https://gitlab.com/publiclab/image-builder-rpi/pipelines/#47/builds and click the green checkmark.
On this page, click the Jobs tab, next to Pipeline
Click the green Passed button
Click Download in the right-hand sidebar
Unzip the artifacts.zip file, and also the hypriotos-rpi-camera_web.img.zip within it
Use a program like https://etcher.io/ to flash it to an SD card
You'll also be able to read the output of the image generation in this window.

We hope to create a bot to report back the completed image URL in each pull request. If you can help create such a bot, please contact us at:

#16

Thanks!

@jywarren
Copy link
Member

jywarren commented Nov 3, 2018

Hmm, @icarito no rush as this is a weekend, but it didn't seem to start here either... I wonder if it's limited to only some users?

@imvectech
Copy link
Author

Absolutely no rush friends. Have just discovered some of the power of git so playing around. Also downloading the infragram recipe and trying Witty pi software manual install ;D Sooooo excited!!

@icarito
Copy link
Member

icarito commented Nov 4, 2018

Hi! Exciting to see this development and eager to help. For now I've gone thru https://docs.gitlab.com/ee/ci/ci_cd_for_external_repos/github_integration.html once again and still unable to fix. Possibly due to repo rename. I'll try again asap, meanwhile will push to Gitlab branch and share build output here!

@imvectech
Copy link
Author

Hi @icarito! Great to hear! So excited!!!!

@icarito
Copy link
Member

icarito commented Nov 4, 2018

1 similar comment
@icarito
Copy link
Member

icarito commented Nov 4, 2018

@imvectech
Copy link
Author

ooohhh!!! Thanks! Testing tomorrow at breakfast! ;D

@imvectech
Copy link
Author

imvectech commented Nov 5, 2018

The build passed but software didn't installed. I2C-tools was not found using the witty pi script so I've put it before. Let's see ;D

@jywarren
Copy link
Member

jywarren commented Nov 5, 2018

Hi, i'm sorry, i'm working on using the autorebase bot to try to help keep all PRs rebased on top of the latest master branch. We should be able to run it on this branch, but i'm currently testing it in #50 and for now, perhaps best to do rebasing manually if required here. But you seem to be OK for now!


# 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.

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 :-)

@jywarren
Copy link
Member

jywarren commented Nov 9, 2018

We have done some testing and tweaking and think that if you open a new PR, this will start building properly. Still not 100% sure but it worked in #54 -- would you mind giving it a try?

you could actually make a new branch named witty if you wanted, in case you want to have other versions too - instead of the master branch:

From your own repository page, at https://github.com/imvectech/pi-builder --

image

@imvectech
Copy link
Author

Sorry for the delay. I've created a new one at #59

@jywarren jywarren changed the base branch from master to main June 24, 2020 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants