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


Recommended Posts

Posted

I’d like to share a small application that searches for a specified string in the Lua code in all quickapps stored in hub.

The text to search for should be entered in the SEARCH_TEXT variable. Case sensitive.

If there will be interest, I can expand this program further whenever I have some free time. 

Please login or register to see this attachment.

  • Like 1
  • Topic Author
  • Posted (edited)

    This is an extended version.
    It supports regular expression in search pattern - and, or, not, () and wildcards, like: &, I, !, (), *, ?. The regex parser is taken from 

    Please login or register to see this link.

    project. Please see there for reference of regular expression. One change is that wildcard is not necessary at both ends of phrase.

     

    Ex.
    var & (!tonumber | tostring)
    This lists all QA files containing the phrase var and either not containing the phrase tonumber or containing the phrase tostring.

     

    Also 'whole word' and 'case sensitive' buttons are added.

    As anyone can see, even a needle can be found...

    Second feature is ability to compare Quickapp states - recorded once to current. Press 'Make image' to generate a snapshot of all Quickapps (not scenes) in the hub.
    Press "Compare" to see the structure of all QAs and their files, as well as which files were modified, deleted, or added from time of snapshot generation to now. 


    Please login or register to see this attachment.

     

    Please login or register to see this attachment.

    Edited by Łukasz997
    • Like 1

    Join the conversation

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

    Guest
    Reply to this topic...

    ×   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...