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

fibaro:debug <-> print


Question

Posted

Till now I used fibaro:debug("abc") in my scenes for messages in the debug window, but print("abc") has the same effect(?)

1) Is there any difference between these commands ?

2) Can print be used to 'print' to a file, e.g. "\\myIP\mydrive\myvolume\myfile.txt" ?

Thanks for help!

 

5 answers to this question

Recommended Posts

  • 0
Posted

It has the same effect, but I believe print() is more convenient way to print messages

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"> This however can not be used to print to files.

  • 0
  • Inquirer
  • Posted

    Thank you for your answer!

     

    How can I print messages to files?

    (one reason: I can't copy and paste - and then print - the debug window)

    • 0
    Posted

    You can't print to a file. The filesystem of the HC2 cannot be accessed (in orthodox ways) anyway. Have you tried clicking in a debug window, then quickly do CTRL-A and CTRL-C?

    • 0
  • Inquirer
  • Posted

    Dear Peter Gebruers,

     

    thank you for your interest in my print problem.

     

    CTRL-A in a debug window: the whole dashboard is highlighted

    copy and paste: 23 pages and  -  hurra !  -  my debug window (only 2 pages)

     

    Thank You!

     

    PS: is there a chance to print by a non-orthodox way you know ?

    • 0
    Posted

    PS: is there a chance to print by a non-orthodox way you know ?

     

    Semi orthodox.

    Please login or register to see this image.

    /emoticons/default_icon_smile.gif" alt=":-)" /> I read on this board, at least a few times, that people set up a log server or write their own on a NAS device. Typically a Synology NAS with some php. In fact, the way a HC2 can "talk" to the outside world is HTTP or TCP. If you want to get data from the HC2, that's the way to go. search for "net.HTTPClient" to get some idea.

     

    If you prefer to pull data, you can put stuff in Global Variables (Variables panel) then write a HTTP REST program on your preferred client to get the contents of the variables. See 

    Please login or register to see this link.

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