Jump to content

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


  • 0

yet another time check function


Question

Posted (edited)

just share with you :)

 

the function was re-written by @jgab

 

* can work with pre-defined global values for example

"1.SunSet-5.SunRise" where SunSet and SunRise string time values like 16:00, 07:00

 

notice: notation 1.08:00-2.20:00 means Mo: 08:00-20:00 and Tu 08:00-20:00 and not mean from Mo 8:00 till Tu 20:00

Mo 8:00 till Tu 20:00 can decribed as 1.08:00-1.23:59, 2.00.00-2.20:00

Please login or register to see this code.

Hey, Fibaro, when you allow one created global functions/libs for using (including) in all scenes? :roll:

 

 

Edited by 10der
  • Thanks 1

Recommended Posts

  • 0
  • Inquirer
  • Posted

    I want own global (shared) LUA Code library.

    That's just a pipe dream,  an unachievable dream with Fibaro.

    @T.Konopka isn't it? :roll:

    • 0
    Posted
    On 3/11/2018 at 10:40 PM, 10der said:

    I want own global (shared) LUA Code library.

    Do you mean the

    Please login or register to see this link.

    , but regularly updated, etc?

    • 0
  • Inquirer
  • Posted
    24 minutes ago, T.Konopka said:

    Do you mean the

    Please login or register to see this link.

    , but regularly updated, etc?

     

    No! I mean what I can use my own code library

    like require("my.tools").

     

    instead of Ctrl+C / Ctrl+V to all my VD or scenes.

     

     

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...