Welcome to Smart Home Forum by FIBARO
Dear Guest,
as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.
As a member you can:
- Start new topics and reply to others
- Follow topics and users to get email updates
- Get your own profile page and make new friends
- Send personal messages
- ... and learn a lot about our system!
Regards,
Smart Home Forum by FIBARO Team
Question
candrea77 26
Hello to all the member of the Forum,
i'm starting using LUA script, basically creating some Scene with graphics blocks, then converting it to LUA and reading and optimizing them.
During my test I've noticed that if i want to run a scene at determined time, seems that block to LUA conversion produce an output like this :
Please login or register to see this code.
I've also noticed that on every script created with this method, there is a sleep time :
Please login or register to see this code.
So, for my POV , it seems that this script is running every (second, muinute, cycle ??? I don't know) ...... then it verify that the time is the right time for do the action (and do it in case of truth) and then sleep some times (1 minute?)
Is it true ?
Is this the best way for scheduling a script ?
Working in linux we have cron ...... it permit to run a script at exact time without controlling into the script if is the correct time for do an action ...... Is possibile to do the same things with fibaro and LUA ?
By the way ... excuse for my BAD english
Best Regards
Crippa Andrea
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.