Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only request watering between the hours of X & Y #15

Closed
2 tasks done
michaeljolley opened this issue May 21, 2019 · 3 comments
Closed
2 tasks done

Only request watering between the hours of X & Y #15

michaeljolley opened this issue May 21, 2019 · 3 comments
Labels
🏷️ claimed Claimed by an awesome contributor! ✨ enhancement New feature or request 📚 good first issue Good for newcomers

Comments

@michaeljolley
Copy link
Owner

michaeljolley commented May 21, 2019

Current Situation

When the baby bird sends moisture level and mother bird determines whether to water, the decision is make irrespective of the time of day. To prevent mold & fungi, we only want to water during daylight hours.

Goal

  • Need way to store a start and end hour in 24 hr format on mother bird
  • Mother bird should consider the start and end hour and always return false if outside of those hours
@michaeljolley michaeljolley added ✨ enhancement New feature or request 📚 good first issue Good for newcomers labels May 21, 2019
@michaeljolley
Copy link
Owner Author

@michaeljolley michaeljolley added the 🏷️ claimed Claimed by an awesome contributor! label May 23, 2019
@michaeljolley
Copy link
Owner Author

I'm doing it myself

@michaeljolley
Copy link
Owner Author

Mother Bird now defaults to watering only between 6AM & 6PM CDT but you can override those settings by sending a JSON payload of:

{ 
  "startHour": 5, 
  "endHour": 12
}

where those numbers represent the UTC hour.

The device will keep those as variables to use in determining whether to water and also save them to EEPROM so on start up it will reinitialize for the correct timespan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ claimed Claimed by an awesome contributor! ✨ enhancement New feature or request 📚 good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant