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

How to Send Curl in Scene


hoschi_66

Question

Hallo,

i nee help to set a Curl Post in a Scene (Lametric)

 

the Curl is

 

curl -X POST -u "dev:APIKEY" -H "Content-Type: application/json" -d " { \"model\": { \"frames\": [ { \"icon\":\"a2867\", \"text\":\"Hello\!\"} ] } }" http://192.168.178.50:8080/api/v2/device/notifications

 

can someone help me

 

many TNX

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

another extension question, is it possible to send this type of script with HCL using VD?

Link to comment
Share on other sites

  • 0

Please login or register to see this code.

 

Please login or register to see this image.

 

 

Edited by 10der
Link to comment
Share on other sites

  • 0
  • Inquirer
  • 13 hours ago, 10der said:

    Please login or register to see this code.

     

    Please login or register to see this link.

     

     

     

     

    ???? API-KEY user ?? i have found someone in French Forum that works with Lametric very Fine  it is in French but google Translator works :-)

    Please login or register to see this link.

     

     

     

    Link to comment
    Share on other sites

    • 0

    -u switch AFAIK it' turn on basic auth...

    like 

    Please login or register to see this code.

     

    so, 

    Please login or register to see this code.

     

    before call

     

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • sorry Don't understand, im a noob :-)  i need a Running String for that....

     

    this ist the String to change Lametric APPS in terminal

     

    curl -X PUT -u "dev:57ec40685e4e4fcdd1847833917b76bf19b468108xxxxxxxxxxxxxxxxxxx" -H "Accept: application/json"-k \
      http://192.168.178.50:8080/api/v2/device/apps/next

     

     

     so i need a Code that i can run in a scene

     

     

    many thanks

     

    Edited by hoschi_66
    Link to comment
    Share on other sites

    • 0

    Hello

     

    I send http requests in a scene. Here is a link to the line in the scene that sends those requests

     

    Please login or register to see this link.

     

    Hope that helps

     

    Ian

    Link to comment
    Share on other sites

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