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

Question

Posted

Hi In trying to get deeper integration HC2 with Tasker and I need your help...


 


If I "type" this into the web browser it works, but how to send it from HC2 ?


 


Please login or register to see this link.


 


Thanks in advance


7 answers to this question

Recommended Posts

  • 0
  • Inquirer
  • Posted

    Any advise pls ?

    • 0
    Posted

    Please login or register to see this link.

    • 0
  • Inquirer
  • Posted

    Thanks, I went through still cant get it working, btw in doesn not to be HTTPs, HTTP is OK - can you please code it for me ?

     

    THANKS

    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" />

    • 0
    Posted

    Please login or register to see this code.

    --[[

    %% properties

    %% globals

    --]]

    local http = net.HTTPClient()

    http:request('https://www.google.pl', {

    success = function(resp)

    if resp.status == 200 then

    fibaro:debug(resp.status)

    else

    fibaro:debug(resp.status)

    end

    end

    })

    • 0
  • Inquirer
  • Posted

    Great, it works !

     

    Thanks a lot

    • 0
  • Inquirer
  • Posted

    One Q:

    The delay between I run the scene and the time I get back the response is pretty long - 20 sec...

     

    Is there a way how to make it faster - even not using the HHTPs, but "only" HTTP preferably in a VD ?

     

     

    Thanks again

    • 0
  • Inquirer
  • Posted

    Thanks to all, based on some hints I just made it working in a VD

     

    HTTP = Net.FHttp("autoremotejoaomgcd.appspot.com")
    HTTP:GET("/sendmessage?key=XXXXXXXXXXXXXXXXXXXXXXXXXX&message=This%20is%20a%20test%20message")

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