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

Changing value of global variable with REST API


Question

Posted

Can anyone help me to change a global variable by REST API/HTTP?

 

I want to change the value of a global variable. When I use http://<HC2-IP>/api/globalVariables/<GLOBALVARIABLE> in a browser I get the json-values.

 

Is there a way to change the global variable value by a HTTP command, like http://<HC2-IP>/api/globalVariables/<GLOBALVARIABLE> ?value=1       ?

 

Thanks.

7 answers to this question

Recommended Posts

  • 0
Posted

sure, Sir!

 

python ok?

 

PS: Hay, FIBARo admins. (for example, dear @T.Konopka)

Can you fix forum issue with posting plain code in "Code" tag?

for example, if you trying to provide code in attach in message body you got "You're blocked on this forum" message.

It's not good!

 

Thanks!

 

Please login or register to see this attachment.

  • 0
Posted
8 minutes ago, 10der said:

sure, Sir!

 

python ok?

 

PS: Hay, FIBARo admins. (for example, dear @T.Konopka)

Can you fix forum issue with posting plain code in "Code" tag?

for example, if you trying to provide code in attach in message body you got "You're blocked on this forum" message.

It's not good!

 

Thanks!

 

Please login or register to see this attachment.

Try to use Microsoft Edge browser

  • 0
Posted
1 minute ago, cag014 said:

Try to use Microsoft Edge browser

 

Thank you, but It makes me want to puke. :)

  • 0
Posted
6 minutes ago, 10der said:

 

Thank you, but It makes me want to puke. :)

Yeah, but it works better than others... in this case

  • 0
Posted
On 7/13/2018 at 9:33 AM, 10der said:

if you trying to provide code in attach in message body you got "You're blocked on this forum" message.

Are you still experiencing this?

Btw, we have a category for issues and suggestions regarding Forum

Please login or register to see this link.

 

On 7/12/2018 at 11:18 PM, Lambik said:

Is there a way to change the global variable value by a HTTP command, like http://<HC2-IP>/api/globalVariables/<GLOBALVARIABLE> ?value=1       ?

I ask about that as I did not find anything in our knowledge base.

 

  • 0
Posted
1 minute ago, T.Konopka said:

Are you still experiencing this

sometimes. more than, Sir, sometimes just re-send message (sometimes with dancing with enter / del / backspace) solve this issue. Crazy but fact.

or just is json block not works - I put it into HTML block and.... magic.... its works!

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