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
iS21 2
Hello,
I'm new to LUA and guessing or using manual is not really working as expected.
In the manual
Please login or register to see this link.
, it give an example to post or get an http url and then decode the result, but it's not working for me, and I don't know what's wrong.Most help I found on that is for HC2 and not really working/helping.
Please login or register to see this code.
On this, it debugs the "Rien"... so the if isn't working.
The result of the page (so the content) is :
Please login or register to see this code.
So I'm not sure about the "if data.contents and data.contents.quotes and data.contents.quotes[1] then"
If I debug the response.data, I successfully see the line of the content {"result":"success","version":"1.0.1","mac":"00:00:00:00:00:00","position":100}
But after, it's a mystery !
Thanks
10 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.