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

Issue with saving of conditional settings #226

Closed
cohe4ko opened this issue Mar 25, 2017 · 6 comments
Closed

Issue with saving of conditional settings #226

cohe4ko opened this issue Mar 25, 2017 · 6 comments

Comments

@cohe4ko
Copy link

cohe4ko commented Mar 25, 2017

Mycodo Issue Report:

  • Specific Mycodo Version:5.0.13

Problem Description

Doesn't saves email and camera selection:
2017-03-26 01 21 48

@kizniche
Copy link
Owner

That functionality is current;y not working. I added the framework, but didn't finish the stuff in the backend. I figured if I allowed it to save, it would give people a false sense of security that it would work. I'll get around to working on that soon (days, weeks in future).

@cohe4ko
Copy link
Author

cohe4ko commented Mar 25, 2017

Ok. Thank you.
What about conditionals with two or more conditions? if 1- then if2 - then if3 -> do something.

@kizniche
Copy link
Owner

That doesn't exist in Mycodo. Maybe in the future.

@kizniche
Copy link
Owner

kizniche commented Apr 2, 2017

I'm trying to think of a way to implement a new conditional section of Mycodo that allows multiple conditions with and and or operators. I still need to figure out how to group them.

For example:

if A and (B or C) and D

is different from

if (A and B) or (C and D)

is different from

if ((A and B) or C) and D

@cohe4ko
Copy link
Author

cohe4ko commented Apr 5, 2017

Maybe you can do this by making this statements manually.
the first step - create few simple conditions:
temp1 = if temperature on sensor1 less than 20C.
hum1 = if humidity on sensor2 greater than 80%
time1= if currentHour > 6 and currentHour < 20
The second step - manually make formula:
complexCondition = if ((hum1 or temp1) and time1)

@cohe4ko
Copy link
Author

cohe4ko commented Apr 5, 2017

and I think it can be very good idea to add as a statement relay status. because I can turn on/off relay from outside Mycodo. And this can be one more trigger in use scenario.

kizniche added a commit that referenced this issue Apr 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants