-
Notifications
You must be signed in to change notification settings - Fork 91
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
Extend crontab value to eval expression? #478
Comments
Evals are always good ;) Anyhow for the specific use case.. what about having a "7" for day in week to assign a "holiday"? |
The problem with extending with a day like 7 is that there is no mechanism to
Have a look at a situation where someone needs to open the blinds every morning, except for e.g. Easter Monday but also on Easter Sunday (has to work then :-)). Thanks for your thoughts! |
Sure, if you want to define that quite detailed you need an eval. Just thought a "7" might be quite intuitive for "all holidays in general" because that might also be a relevant use case and is easier then evals (just additionally). |
@onkelandy in case of 7 as holiday: where should this info come from? |
shtime.is_holiday? Or what do you mean? |
If that is enough then it should be no problem to implement this... |
Eval parsing is implemented in develop. The same eval's can be used as everywhere else for the value part. If the crontab is attached to an item, relative item references can be used. @bmxp Do we need to work on the crontab part syntax/features? Otherwise, this can be closed. |
If the extension of crontab is really needed, we should open a new feature request. For now I think this Issue is finally solved by the new implementation. |
There is the wish to extend the existing crontab expression with an eval to react on a ubiquitous expression like eval.
syntax could be like
Any further ideas regarding this?
The text was updated successfully, but these errors were encountered: