patrickhallek / automated-irrigation-system Goto Github PK
View Code? Open in Web Editor NEWThis is the software of an open source automated irrigation system. The complete setup including hardware can be found in the README.
This is the software of an open source automated irrigation system. The complete setup including hardware can be found in the README.
Hi.
First off, thanks for the Project. Exactly what i was looking for. I am an absolute Coding noob and have no idea what im doing, building this. But i like the challenge.
When im trying to docker-compose up it runs through nearly all steps, except this:
[automated-irrigation-system_backend internal] load metadata for docker.io/library/node:10:
failed to solve: rpc error: code = Unknown desc = node:10: no match for platform in manifest sha256:59531d2835edd5161c8f9512f9e095b1836f7a1fcb0ab73e005ec46047384911: not found
From the other posts i'm guessing i have to switch to node:10-alpine, but i have absolutly no idea how.
when i start a docker-compose services, it gets its own DNS and set of IP will be configured to all containers. I found that the REACT_APP_BACKEND_URL variable is referring to a static IP address "192.168.178.50" while node container has got different IP.
can you explain why this particular IP address is chosen ?
Linechart.js uses the host rpi IP address to fetch data from the node container.
you may have to name the container using "container_name" in docker-compose.yml
also while get calls are made to the node container through the host raspberry-pi IP means if my pi has "192.168.178.51" the call will be made to "http://192.168.178.51:5000/undefined/measurements/day/..."
is it not simple to connect the two containers by giving some name?
as they will be in same network they can ping using these names as the DNS in docker will take care of that.
I really love this project and the detail and work that you put into this. It would be even more helpful if you had time to include pictures or a video walking people through your actual setup.
Hi, when i run "sudo docker-compose up" i get two errors.
"automated-irrigation-system_mongodb_1 exited with code 132"
"Connection to database failed!"
I try to run it on a Raspberry PI Zero W with Raspberry Pi OS Lite - Kernel version: 5.4
I build it with these steps:
curl -sSL https://get.docker.com | sh
sudo usermod -aG docker pi
sudo apt-get install -y libffi-dev libssl-dev
sudo apt-get install -y python3 python3-pip
sudo apt-get remove python-configparser
sudo pip3 install docker-compose
sudo apt install git
git clone https://github.com/PatrickHallek/automated-irrigation-system
cd automated-irrigation-system
sudo nano docker-compose.yml #change ip adress
sudo nano Dockerfile #change from issue https://github.com/PatrickHallek/automated-irrigation-system/issues/14#issuecomment-656077450
cd Backend
sudo nano Dockerfile #change from issue https://github.com/PatrickHallek/automated-irrigation-system/issues/14#issuecomment-656077450
sudo docker-compose up
Thanks
When I issue the build command I have this error, following by several others:
make: Entering directory '/src/node_modules/rpio/build'
CXX(target) Release/obj.target/rpio/src/rpio.o
CC(target) Release/obj.target/rpio/src/bcm2835.o
../src/bcm2835.c: In function 'bcm2835_gpio_pad':
../src/bcm2835.c:487:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (bcm2835_pads == MAP_FAILED)
When attempting to, sudo docker-compose up
I get:
`Building backend
Step 1/6 : FROM node:10
---> 5097189edcdc
Step 2/6 : COPY . /src
---> Using cache
---> 6553134477ae
Step 3/6 : WORKDIR /src
---> Using cache
---> 8f4aaa1bbc70
Step 4/6 : RUN npm install
---> Running in 34f24dadfe6c
ERROR: Service 'backend' failed to build: The command '/bin/sh -c npm install' returned a non-zero code: 139
`
I checked to verify I had npm installed and I do.
Any ideas?
I would like to modify my MCP3008 setup to take advantage of this awesome UI and reporting.
However, at a bit of a loss of where to start.
Hi,
I get an error message with the command "sudo docker-compose up". The message is the following:
ERROR: Top level object in './docker-compose.yml' needs to be an object not '<class 'str'>'.
Do you have an idea?
Thanks
I`m opening an issue to bring up a large change I would like to create a pull request for.
I`m adding some features to the system and would like to check if it would be ok to initiate a pull request.
A summary of the new features (Its been a couple years since I forked it, so I might have missed a couple small things)
To do / WIP:
This is very nice! Maybe some more info on isolation, tubing, electricity?
I found e.g. this 3d printable box which very nicely combines the capacitor with the wifi:
https://www.thingiverse.com/thing:4256595
Maybe include in the README?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.