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

Problem with reading global variable on virtual device button


Question

Posted

Can´t get this to work.

I try to read a global variable from my virtual device button, but it doesn´t work.

Any ideas?

 

Please login or register to see this image.

 

hnXXFTw.png

 

LaEODt7.png

 

I´ve tried both getGlobal and getGlobalValue without luck.

 

Tried this as well:

 

local streamURL, lastModified = fibaro:getGlobal("RockiDynamicRadio");

4 answers to this question

Recommended Posts

  • 0
Posted

Can´t get this to work.

I try to read a global variable from my virtual device button, but it doesn´t work.

Any ideas?

WHat version are you on? Os.execute has been removed in later versions so that code will simply not work.

  • 0
Posted

Try to change syntax from fibaro:getGlobal to fibaro:getGlobalValue

 

PS! os.execute is that not removed, which version of firmware are you on?

  • 0
  • Inquirer
  • Posted

    Latest stable. Is there any other way to perform OS.execute?

    • 0
    Posted

    Latest stable. Is there any other way to perform OS.execute?

     

    No, it was removed. You should use HTTP command to communicate with this device, getting global variables seems fine.

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