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

Restart HCL using http command


Rami

Question

Hello

Is there anyway i can restart HCL using http command ? HCL is very bad with remote connection and usually works fine after a restart and i wonder if i can restart it via http

Thanks

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0
  • Inquirer
  • Cosworth32, Thank you

    [ Added: 2014-04-23, 13:21 ]

    Cosworth32, well , it's not working , i'm trying to do this using veralite , also tried in browser and it didn't work , oit should be like this

    HCL IP /api/settings/reboot right ?

    Link to comment
    Share on other sites

    • 0

    Yeah but entering this in a browser creates a GET request and not a POST - Makes all the difference.

    I tested it before posting and it works just fine.

    In Fiddler the POST request looks like the attached screenshot (and works) Just add your own authentication and IP.

    Once you believe it can be done the rest is just tinkering in whatever system you are calling from.

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Cosworth32, Thanks but i couldn't get it to work , what are you using in the screenshot ?

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Cosworth32, my problem is that i have to do this inside vera , so i'm using this to run the command via LUA code inside the scene editor

    Please login or register to see this code.

    don't know how to make a POST command

    Link to comment
    Share on other sites

    • 0

    Well as I just bought my own Vera I figured why not use this as an excuse for my first luup scene.

    It turns out that doing POST from vera is a little tricky if you want to control the headers.

    Eventually this line did the trick:

    os.execute("curl -d ''

    Please login or register to see this link.

    /api/settings/reboot")

    Executed using Vera light running UI5, firmware 1.5.622

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Cosworth32, Worked perfectly , i would've never figured this out

    Thank you so much

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