Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Looking for idea's on how to to solve my "problem" #239

Unanswered
stefanuytterhoeven asked this question in Q&A
Discussion options

I don't have a real problem. I'm just curious what are your ideas to solve next "problem"
What I want:
I want to call a service.
When?
well, during a PERIOD (from-to date), for example every TUEsday (in that period), at a certain time.
I'm creating a "vacation script".
So, i want during my vacation (this is the PERIOD), every MON,TUE,WED,THU,FRI (in the weekend something else), turn on a light at a certain time (or turn it of)
So, I'm creating an "app", with the configuration, and trigger closures.
Now, I'm in my script a the moment that I have "PERIOD FROM", "PERIOD TO", Dayname, service(service name+attr),entityid, startTime
calling the service is no problem. It's the combination of PERIOD,DayOfWeek,starttime that i'm looking into, and I want to find
the best way to accomplisch this.
I already found "CRON" , RANGE,....
Any idea? thx!

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /