rszimm / sprinklers_pi

Sprinkling System Control Program for the Raspberry Pi
GNU General Public License v2.0
310 stars 100 forks source link

basic GreenIQ functionality added #142

Closed mafes closed 5 years ago

mafes commented 5 years ago

Support of the basic valve functions of the GreenIQ Smart Garden Hub Gen2. Currently the six valve outputs are supported (Cable 1) and mapped to zone 1-6. The option "Pump" in the zone settings activates the master valve.

To enable the function you have to uncomment "#ifdef GREENIQ" in config.h file and select "GreenIQ" in settings (browser).

mafes commented 5 years ago

Thank you for your quick reply! I introduced OT_GREEN_IQ because the hardware should be selectable via the web interface. The pins (7,0,2,3) for OpenSprinkler should not be used twice. I plan to support the analog sensors via MCP3008 of the GreenIQ Gen2 later. I can describe the activation after the merge in the Wiki.

nhorvath commented 5 years ago

Thank you for your quick reply! I introduced OT_GREEN_IQ because the hardware should be selectable via the web interface. The pins (7,0,2,3) for OpenSprinkler should not be used twice. I plan to support the analog sensors via MCP3008 of the GreenIQ Gen2 later. I can describe the activation after the merge in the Wiki.

But there's functionally no difference between selecting direct positive and greeniq. Are you saying in the future there will be?

mafes commented 5 years ago

Right, at the moment there is practically no difference between the selection direct positive and greeniq. In the future, for example, you could activate a rain sensor or short-circuit protection for the valves via the selection. But if you insist, I will remove the selection for now.

mds49fr commented 5 years ago

Hello I have well uncommenting the line for my greeniq and for darksky in config.h, but the darksky setting in settings does not want to appear?

nhorvath commented 5 years ago

try running make clean make sudo make upgrade

This will fully rebuild the project to make sure the settings are applied.

On Thu, May 23, 2019 at 5:07 AM mds49fr notifications@github.com wrote:

Hello I have well uncommenting the line for my greeniq and for darksky in config.h, but the darksky setting in settings does not want to appear?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/rszimm/sprinklers_pi/pull/142?email_source=notifications&email_token=AABIJXESQZI4AXZ7GIUZLYLPWZNFLA5CNFSM4HNPTVEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWBSHAY#issuecomment-495133571, or mute the thread https://github.com/notifications/unsubscribe-auth/AABIJXF2KGL3TZDC2WKZM3TPWZNFLANCNFSM4HNPTVEA .

mds49fr commented 5 years ago

Actually, it works better after these commands. Thank you