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

LUA read historical data from temperature panel


Question

Posted

Hello, I want to read historical data from temperature panel.

I want to know maximal temperature from sensor in last 24 hours. Can I read "last 24h" from temp. panel and find maximal value?

Thanks for support.

  • Like 1

10 answers to this question

Recommended Posts

  • 1
Posted

UPD: 

Please login or register to see this link.

Please login or register to see this attachment.

  • 0
Posted (edited)

Yes, you can.

http://iphc2/docs 

topic panels waiting for you.

if not, ask me again ;) 

Edited by 10der
  • 0
  • Inquirer
  • Posted
    On 10/27/2019 at 8:42 PM, 10der said:

    UPD: 

    Please login or register to see this link.

     

     

    Thank you very much!

    Last one is perfect.

    • Like 1
    • 0
    Posted
    W dniu 27.10.2019 o 20:36, 10der napisał:

    Yes, you can.

    http://iphc2/docs 

    topic panels waiting for you.

    if not, ask me again ;) 

    Hi, @10der!

    When I tried this:

    http://192.168.1.2:80/api/temperature/now-3600000/now/summary-graph/devices/temperature/249

    it only shows me data from the last 10 hours. How can I configure fibaro to get temp historical data from even past months?

    • 0
    Posted
    Cytat

    now-3600000

    change value

    now - from today

    3 600 000 - time how much you want go back

     

     

     

     

    • 0
    Posted
    25 minut temu, A.Socha napisał:

    change value

    now - from today

    3 600 000 - time how much you want go back

     

     

     

     

    @A.Socha,

    yes, but, as I wrote, the issue is that whatever value I set, I get temp historical data from the past 10 hours only. My question is: is there any configuration I can make in HC2 to have longer period of temp historical data?

    • 0
    Posted

    @mmklos actually HCx (IMHO) unallotted for using as DataBase server ;) 

    please poll HCx endpoints and grab periodically interesting for u data and stroring it locally.

    otherwise sorying a big data in SQLite it's not a good idea and can make some arteffacts in system.

    IMHO again

    • Thanks 1
    • 0
    Posted

    Ok, thanks for clarification ?

    • 0
    Posted

    There is a limit on HCL how much energy event you can have. If i remember good that is 40 000 records so if you got there more  report it is shorter time what we keep on device, if you want keep all data you can easy send them to other service every for example 2 weeks

    • 0
    Posted

    A related question with some suggestions to work around the limited data storage on the HC...

     

     

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