Another thing I’ve been tinkering on for awhile but should be in a good enough state for use. If you have a Melnor Raincloud device/devices, this lets you incorporate the valves as virtual valves in Hubitat. I use mine with Simple Irrigation. Unfortunately there is no API for Raincloud, so this also requires a daemon to interface/scrape the website. It should support multiple valves and multiple controllers, but I only have one to test with.
https://github.com/bdwilson/hubitat/blob/master/Raincloud/README.md
This will be in the package manager soon.
3 Likes
Trying to set this up and I get an error on pip3 install json
ERROR: Could not find a version that satisfies the requirement json (from versions: none)
ERROR: No matching distribution found for json
Linux newb - running on a mac mini.
You can ignore that. I believe json is available by default.
Ok that did not work so now I'm trying via docker and I get
Bizarre. If you clone the repo, then run this command from that location does it say the same thing?
docker build -t raincloudy-flask --build-arg EMAIL='your@email.address' --build-arg PASSWORD='your_password' .
Don’t forget the dot at the end.
Same error. Dumping these and getting Bhyve now that dman got them working with HE. Thanks for your efforts.
1 Like
Bizarre. Here is what I get:
[12:39][pi@pi:/var/docker/raincloudy]$ ls
Dockerfile
[12:39][pi@pi:/var/docker/raincloudy]$ more Dockerfile
FROM debian:buster-slim
ARG EMAIL
ARG PASSWORD
ARG PORT=5059
RUN mkdir /code
WORKDIR /code
RUN apt-get update -y && \
apt-get install -y python3 python3-pip git && \
pip3 install flask && \
pip3 install flask-jsonpify && \
git clone https://github.com/bdwilson/raincloudy && \
git clone https://github.com/bdwilson/raincloudy-flask && \
sed -i "s/EMAIL/${EMAIL}/" /code/raincloudy-flask/raincloudy_flask.py && \
sed -i "s/PASSWORD/${PASSWORD}/" /code/raincloudy-flask/raincloudy_flask.py && \
sed -i "s/PORT/${PORT}/" /code/raincloudy-flask/raincloudy_flask.py
#ADD . /code/
WORKDIR /code/raincloudy
RUN /usr/bin/python3 setup.py install
EXPOSE ${PORT}
CMD [ "python3", "/code/raincloudy-flask/raincloudy_flask.py" ]
[12:39][pi@pi:/var/docker/raincloudy]$ sudo docker build -t raincloudy-flask --build-arg EMAIL='your@email.address' --build-arg PASSWORD='your_password' .
[sudo] password for pi:
Sending build context to Docker daemon 2.56kB
Step 1/11 : FROM debian:buster-slim
---> 43e3995ee54a
Step 2/11 : ARG EMAIL
---> Using cache
---> 5e89553d88c2
Step 3/11 : ARG PASSWORD
---> Using cache
---> 87c352cd8f13
Step 4/11 : ARG PORT=5059
---> Using cache
---> c6a169ecceb6
Step 5/11 : RUN mkdir /code
---> Running in 8e5f5c3e67f7
Removing intermediate container 8e5f5c3e67f7
---> 50b0879384a3
Step 6/11 : WORKDIR /code
---> Running in 6c194cad8d88
Removing intermediate container 6c194cad8d88
---> 1cb1fc406203
Step 7/11 : RUN apt-get update -y && apt-get install -y python3 python3-pip git && pip3 install flask && pip3 install flask-jsonpify && git clone https://github.com/bdwilson/raincloudy && git clone https://github.com/bdwilson/raincloudy-flask && sed -i "s/EMAIL/${EMAIL}/" /code/raincloudy-flask/raincloudy_flask.py && sed -i "s/PASSWORD/${PASSWORD}/" /code/raincloudy-flask/raincloudy_flask.py && sed -i "s/PORT/${PORT}/" /code/raincloudy-flask/raincloudy_flask.py
---> Running in 6736f8fdc869
My Docker is running on a Synology NAS, not Pi, maybe that is the issue. I got Node Red running fine via docker so figure this might, not sure why it fought me all weekend.
system
Closed
September 23, 2022, 3:43pm
11
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.