8000 GitHub - why-pengo/sprinkler: Raspberry Pi Sprinkler ][
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

why-pengo/sprinkler

Repository files navigation

Raspberry Pi Sprinkler ][

See the documentation on building the hardware

Details

  • OS: Raspbian GNU/Linux 11 (bullseye) armv7l
  • Host: Raspberry Pi 3 Model B Rev 1.2
  • CPU: BCM2835 (4) @ 1.200GHz
  • Memory: 1Gb

Testing

pytest --cov=.

The Shoulders I Stood On.

Would have been much harder and taken a lot longer without these resources.

GPIO to Relay pins

Wire color phy GPIO Relay
white 1 3.3V 10 VCC
brown 2 5V JD-VCC
black 6 GND 1 GND
grey 7 GPIO7 9 IN8
purple 11 GPIO17 2 IN1
blue 12 GPIO18 3 IN2
green 13 GPIO27 4 IN3
yellow 15 GPIO22 5 IN4
orange 16 GPIO23 6 IN5
red 18 GPIO24 7 IN6
brown 22 GPIO25 8 IN7

poetry

  • sudo apt install build-essential libssl-dev libffi-dev python3-dev cargo
  • pip install --user poetry
  • poetry install # to setup virutalenv with requirements set in Pipfile
  • poetry shell # to start working on project
  • exit # when you are done

Warning about PinFactoryFallback

https://gpiozero.readthedocs.io/en/stable/faq.html#why-do-i-get-pinfactoryfallback-warnings-when-i-import-gpiozero

Nginx

Generate a self-signed certificate

As I am using this only on my local private network, I'll use a self-signed cert. I followed this Digital Ocean guide

Docker compose for nginx

cd nginx
docker-compose up

Django startup

poetry shell
python manage.py collectstatic
gunicorn --bind 0.0.0.0:8000 controller.wsgi

About

Raspberry Pi Sprinkler ][

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0