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

Question
Kime 0
Hello everyone.
I 'm trying to build my own html site as front end.
But i can't seem to figuer out how to get the json data back from the api into html
Things like :
http:///api/weather?callback=?
and
http:///api/rooms
i've tryed thingslike :
$.getJSON("http:///api/weather?callback=?", function(data) {
// Get the element with id summary and set the inner text to the result.
$('#summary').text(data.result);
});
but what ever i'm trying i dont get any data back. Only when i put the url directly into the browers. so the HCL is giving me the data but i cant get them into my HTML code
Does any of you have a working sample ?
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.