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

Fibaro Event Panel data to a MySQL Database


Question

Posted

I really don't like the eventpanel of the Fibaro interface. It's slow and unable to get good statistics.

I want to store this data into an own database to get statistics and show information about my system to other users. Has somebody already created a php or other solution to get the data into a database? I have seen the Excel macro, but I want to have a direct input.

thanks

5 answers to this question

Recommended Posts

  • 0
Posted
I really don't like the eventpanel of the Fibaro interface. It's slow and unable to get good statistics.

I want to store this data into an own database to get statistics and show information about my system to other users. Has somebody already created a php or other solution to get the data into a database? I have seen the Excel macro, but I want to have a direct input.

thanks

One possibility is to root the HC2 and get direct access to the MySQL database that Fibaro already stores the information in and have your "php or other solution" connect to fibaro's mysql database to retrieve the latest info.

  • 0
Posted

Lockzi, hc2 don't use mysql :]

and what about using api?

last y events (example for 30 records)

Please login or register to see this code.

records from x time to y time (x and y in timestamp)

Please login or register to see this code.

when you got php you only download json and you working on it

  • 0
Posted

I built a script which does what you want - but you should be aware that it puts quite a bit of strain on your system. Especially as event log handling seems quite labor intensive on the HC2.

But it is quite simple to set up a script which will request the last hours events and then input it into a MySQL database for handling afterwards. If you are using a linux box as your server, you just set up a CRON job which runs hourly and then forward the last hours data to the database.

I can see if I have the script somewhere - unfortunately it got lost in a server crash, and that particular script (along with the entire MySQL database) was not part of my backup

Please login or register to see this image.

/emoticons/default_icon_redface.gif" alt=":oops:" />

Otherwise, just create a php script something like this:

Please login or register to see this code.

Very simple code and some good tutorials available on the web in case your php'sk isn't too strong. But I'll just check if I should have the script lying around somewhere.

  • 0
  • Inquirer
  • Posted

    Dalle1985,

    I am not a programmer, so if you have the example

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" /> I am running a synology, so I can run php

    • 0
    Posted

    remcoploeg - did you get the script? Im interested in making something for my Synology NAS aswell :)

    Event Panel sucks - tbh!

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