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

Hi

 

At present, I am running 4.033 and have always found that the Event Panel does not hold sufficient history. At max, it seems to hold 2 days worth of data. While trying to scroll thru 2 days worth of events, I find that the Event Panel is non respondant some times.

 

This is wholly insufficient for creating any analytics on temperature/humidity history as well as other alerts. I am sure it would be possible to read this information into a SQL database or even access and then we could use it for creating more analytics.

 

I raised a ticket with [email protected] and their answer was plain and simple. "You cannot check these data. You can check it in Event Panel, or Consumption".

 

Is anyone aware of any ways of running a batch that I can setup which would query this info using LUA and then dumping it into a SQL table?

 

Thanks

Raj

Posted

I certainly don't contradict Fibaro, there is no "export" or "dump" button. But maybe you can use the API. I can't help you with a batch file but I can point you in the right direction. You can query your HC2 doing http requests. The result will be JSON encoded. You can test in your browser:

Please login or register to see this link.

. Timestamp is the decimal representation of a point in time by lua, i.e. number of seconds since 1970

Please login or register to see this link.

For example, on my system:
 

Please login or register to see this link.

Please login or register to see this code.

  • Topic Author
  • Posted

     

    I certainly don't contradict Fibaro, there is no "export" or "dump" button. But maybe you can use the API. I can't help you with a batch file but I can point you in the right direction. You can query your HC2 doing http requests. The result will be JSON encoded. You can test in your browser:

    Please login or register to see this link.

    . Timestamp is the decimal representation of a point in time by lua, i.e. number of seconds since 1970

    Please login or register to see this link.

    For example, on my system:

     

    Please login or register to see this link.

    Please login or register to see this code.

    Thank you.. will have a look at this..

     

    There is a utility that someone has created that allows you to read information about the Fibaro HC2 and all the components like device/scenes etc which are associated with it. I had it on my PC but lost it due to having to rebuild the PC.

    Posted

    Thank you.. will have a look at this..

     

    There is a utility that someone has created that allows you to read information about the Fibaro HC2 and all the components like device/scenes etc which are associated with it. I had it on my PC but lost it due to having to rebuild the PC.

     

    Do you mean this: 

    Please login or register to see this link.

    ?

  • Topic Author
  • Posted

    Do you mean this: 

    Please login or register to see this link.

    ?

    Thanks very much.. that's the one...

    • 4 months later...
    Posted

    Did you already have a solution for this? I am missing a lot of data because the Fibaro doesn't store the data long. 

  • Topic Author
  • Posted

    Did you already have a solution for this? I am missing a lot of data because the Fibaro doesn't store the data long.

    No. Haven't had a chance to investigate this further as other commitments have kept me away from much of the automation...

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