Irrigation control forcast based


#1

1) Give a description of the problem
(Constructed my own irrigation controller using z-wave devices. Want to add precipitation forecast)

2) What is the expected behavior?
(want to create a piston that will pause the irrigation control if predicted precipitation is x amount for the day)

3) What is happening/not happening?
(Not sure how to pull data and apply to piston, just need to pull data on current day to pause or resume irrigation piston which will run at 4 am on certain days of the week)


#2

Lots of ways you could do this, but here’s one example. This (or something like it) could easily be worked into your original piston that runs the irrigation so you don’t have multiple pistons to contend with.


#3

That will report rainfall already happened today. He is looking for rainfall predicted. Need to use Forecast not current observation.


#4

Good catch, pulled that from the wrong part of my piston by mistake. Replace that string with “right($weather.forecast.forecast.simpleforecast.forecastday.qpf_allday[0],5)” without the quotation marks and all should be well. The ‘right’ function will drop off the preceding mm measurement and only return a decimal value.


#5

What service does this pull data from?


#6

Weather underground


#7

Just wondering how it knows to pull my local forecast.


#8

It’s based on your hub location.


#9

That is what I figured. I just created a separate piston and added the information. I currently have it set to control only 1 zone for now. I will eventually have 4 once my system installation is complete.

Here is what I have so far:


#10

If you use :

$weather.forecast.forecast.simpleforecast.forecastday.qpf_allday[0].mm It will return mm measurement
Or
$weather.forecast.forecast.simpleforecast.forecastday.qpf_allday[0].in It will return inches measurement.

No need for the right(‘string’,’length’) part.

Just an fyi


#11

Thank you. That’s what I’ve been looking for. Unfortunately I’m a newbie so not sure how to set “switch 22”. I’m using a fibaro double relay to operate 2 zones.