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

Hello all,

 

Has anyone tried to get the temperature data out from the home center 2 using the REST API because I am struggling. I can get other panel details such as the events etc which is using same format as the temperature but I get a parameter error. I have tried various things from such as with date settings and without with no success

 

In the developer guide (although seems incomplete) it has the following information in:

Temperature panel

URL: /api/panels/temperature

Methods: GET

Description: Returns Temperature panel data

Response: ?

Events panel

URL: /api/panels/event

IP/api/panels/event?from=xxx&to=yyy

IP – Home Center IP address

xxx – start date timestamp

yyy – end date timestamp

Methods: GET

Description: Returns events history from defined time, device states, state changes, their old and new values, etc.

Response: Gets an object containing events panel settings.

 

Please find attached images of what I am trying to explain.

 

Please login or register to see this attachment.

Please login or register to see this attachment.

 

Any ideas would be greatly appreciated.

Thank you in advance.

 

Trevor

Posted

Hi Trevor

 

Try using this API:

 

/temperature/{timestampFrom}/{timestampTo}/{dataSet}/{type}/temperature/{id}

 

Here's an example:

 

http://<HC IP Address>/api/temperature/now-36000/now/summary-graph/devices/temperature/135

 

The response is an array of values, eg:

 

[[1488009368000,18.40],[1488025027000,18.50],[1488025923000,18.40],[1488026818000,18.50],[1488027715000,18.60],[1488029508000,18.70],[1488031301000,18.80],[1488035783000,18.90],[1488036681000,18.80],[1488037576000,18.90],[1488039369000,19.00],[1488041163000,18.90],[1488043852000,19.00],[1488044748000,19.60],[1488045368000,19.60]]

 

Dave

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