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

How can I create hour meter Quick App?


Prokopis Bor

Question

I want to create a quick app in HC3 that displays the time that a switch is on. Can anyone please give me guidelines how to do that or have something similar ? Thank you.

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0
8 minutes ago, Prokopis Bor said:

I want to create a quick app in HC3 that displays the time that a switch is on. Can anyone please give me guidelines how to do that or have something similar ? Thank you.

Please login or register to see this link.

Link to comment
Share on other sites

  • 0
  • Inquirer
  • Thank you very much! I will try to use your code in my QA. 

    I create a lua program that every second add 1 in a global variable. I used the temperature template of fibaro and used updateView function for the "value" and now I can see the time in seconds on my home screen of fibaro HC3. The problem is that the device is for temperature and the value presented in Celsius. But I have to measure time and the value must be in Seconds.

    1. Is it possible to find a similar template? 

    2. Is it possible to create my template for use in my HC3 for this app? Where can I find documentation for creating such templates? 

     

    Thanks again!

    Link to comment
    Share on other sites

    • 0
    8 minutes ago, Prokopis Bor said:

    is for temperature and the value presented in Celsius. But I have to measure time and the value must be in Seconds.

     

     

     

    yeah?

    Please login or register to see this image.

     

    a399dcZ8YL.png

     

     

     

     

     

    • Thanks 1
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • It was so simple...!!!

    Please login or register to see this link.

     

    Please login or register to see this link.

     
    Thank you very very much!! It is perfect! 

    Is it possible the unit of measurement i.e. "s" for secs or "h" for hours?

    How can I find documentation to develop my own template?

    Thanks again!

     

    Edited by Prokopis Bor
    Link to comment
    Share on other sites

    • 0
    17 minutes ago, Prokopis Bor said:

    It was so simple...!!!

    Please login or register to see this link.

     

    Please login or register to see this link.

     
    Thank you very very much!! It is perfect! 

    Is it possible the unit of measurement i.e. "s" for secs or "h" for hours?

    How can I find documentation to develop my own template?

    Thanks again!

     

    the unit of measurement may also be displayed

     

        self:updateProperty("log", "Έλληνες σούπερ")

     

     

    Quote

    How can I find documentation to develop my own template?

    you can't!

    Edited by 10der
    • Thanks 1
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Українці дивовижні! і чудові розробники !!

    (Ukrainians are amazing! and great developers !!)

     

    Thanks for all!

    Edited by Prokopis Bor
    • Thanks 1
    Link to comment
    Share on other sites

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