Make a variable that change on how good grass grows?

Posted on
Fri Aug 25, 2017 5:40 am
Gusten offline
Posts: 171
Joined: Dec 30, 2015
Location: Sweden, Gothenburg

Make a variable that change on how good grass grows?

Hi

I have control over my automower by indigo so i can stop, start and dock it from indigo

Now the automower runs on a schedual in the automower and its the same regarding
and sometimes when the grass dont grow very well, the automower is still out and cuts the grass, even if its not nessesary

But i was thinking of making three differnet Schedules in indigo depending on how good grass grows, so my plan was to create a variable with Three different states "Good, Normal and Bad"
then run the automower differnt depending on how that variables states.

I was thinking of using averege temperatur for the last five days and total rainfall for the last five Days

I have Netatmo rainsensor, there i have a state sum_rain_24 were i can see the last 24hours of rain

I altso have the Netatmo outdoor sensor, but there i dont have any average temperatur states

I did look at WUnderground, but cant find any average temperatur states


So my question is there any script or plugin that can help me calculate the avarage temperatur for five Days back and altso sum up the last five Days of rain?

OR

Any other idea about this "concept"

and if anyone is a good gardener and can Point me to whats the most ideal conditions for grass to grow, feel free too comment


Thanx

/Martin

Posted on
Fri Aug 25, 2017 6:05 am
Different Computers offline
User avatar
Posts: 2534
Joined: Jan 02, 2016
Location: East Coast

Re: Make a variable that change on how good grass grows?

Here I was hoping you had found a way for Indigo to control the way grass grows. :P

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Fri Aug 25, 2017 6:21 am
DaveL17 offline
User avatar
Posts: 6744
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Make a variable that change on how good grass grows?

Gusten wrote:
I did look at WUnderground, but cant find any average temperatur states

Yes, there is not an average temperature state value but you could construct one in Python and using Indigo's UI.

Make 6 variables: one to hold the average, and 5 for history.
Run a schedule every day (say, at 01:00) that:
Sets v5 equal to the value of v4.
Sets v4 equal to the value of v3.
Sets v3 equal to the value of v2.
Sets v2 equal to the value of v1.
Sets v1 equal to yesterday's high temperature from WUnderground (or whatever source you use).

And then run an embedded Python script that looks something like:
Code: Select all
v1 = float(indigo.variables['Foo01'].value)
v2 = float(indigo.variables['Foo02'].value)
v3 = float(indigo.variables['Foo03'].value)
v4 = float(indigo.variables['Foo04'].value)
v5 = float(indigo.variables['Foo05'].value)

avg = (v1 + v2 + v3 + v4 + v5) / 5

# All variable values are strings, so we need to convert the number to a string.
indigo.variable.updateValue('Foo06', str(avg))


Or something like that.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sat Aug 26, 2017 12:30 pm
Gusten offline
Posts: 171
Joined: Dec 30, 2015
Location: Sweden, Gothenburg

Re: Make a variable that change on how good grass grows?

Perfect, thanks I will try :)

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 4 guests