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


net.HTTPClient:request, URL issue sending "Scope"


Recommended Posts

Posted

Hello,

I would like to get some guidance understanding following situation.

 

System: Yubii Home

Software version: 5.140.17

 

What I want to achieve?

- get actual power from my Fronius PV inverter through http get request

- the valid url is following:

Please login or register to see this code.

 

Observation:

a) send url via browser --> all ok, returns expected data (json)

b) using ZeroBrane Studio with HC3 simulator --> all ok, returns expected data (json)

c) placing identical code (as in b) to my Yubii Home scene --> returns error message, ".. Reason" : "CGI-Args: Invalid parameter '' for attribute 'Scope' (use 'System' or 'Device') .. "

 

What I have tested?

a) using a modified url with small letter "scope" instead of "Scope" via browser --> returns error message as per observation c

b) using a modified url with small letter "scope" instead of "Scope" in ZeroBrane Studio with HC3 simulator --> returns error message as per observation c

 

What I would expect?

- json data return example

Please login or register to see this code.

 

And finally the code used in my scene:

Please login or register to see this code.

 

Would appreciate any help to understand what I need to change in my scene Lua code.

  • Topic Author
  • Posted (edited)

    Learning the hard way...😂

     

    found finally this

    ..need to encode the url in scene due to different implementation vs QuickApp.

     

    Using in scene following resolved the issue:

    Please login or register to see this code.

     

    Thanks to @tinman

    Edited by bgs

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