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

UPS communication, need a way to decode answer from UPS


Question

Posted

Hi,

I found, finally, an easy way to communicate to my UPS with a Virtual Device. The only way I have to figure out is how to decode the UPS's answer.

It's responds is

Please login or register to see this code.

The value I need is 100 between the "".

Does anybody how to do this?

BTW, I will post the virtual device when finished, of course!

Please login or register to see this image.

/emoticons/default_icon_mrgreen.gif" alt=":mrgreen:" />

9 answers to this question

Recommended Posts

  • 0
Posted

Please login or register to see this link.

does that help? looks like they scrape information? maybe you can change it to your own liking?

  • 0
  • Inquirer
  • Posted

    Thanx!

    Just experimenting....

    Please login or register to see this code.

    Or is there a shorter/better way to do this?

    • 0
    Posted

    No idea! Just understood what you wanted to do... Not how to do it

    Please login or register to see this image.

    /emoticons/default_icon_wink.gif" alt=";-)" /> did it work then?

    • 0
    Posted

    Please login or register to see this code.

    and if you want to be sure a " is in the string:

    Please login or register to see this code.

    and offcourse you can check if you have 2 "

    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" />

    • 0
  • Inquirer
  • Posted

    Okay! Now where getting somewhere!

    If I look at your code you assume that the last quote-sign is always om the end. Is there a way to do it more place independent?

    [ Added: 2014-09-14, 11:02 ]

    Not how to do it

    Please login or register to see this image.

    /emoticons/default_icon_wink.gif" alt=";-)" /> did it work then?

    What do you mean? The example code or how I get this information from the UPS?

    • 0
    Posted

    Which ups do you have anyway I have an APC USB on here

    • 0
  • Inquirer
  • Posted

    Same here.

    The trick is that I have it connected to Synology NAS which acts as UPS-Server. I will explain later but I have to test several things before posting.

    • 0
    Posted

    Mine is connected to synology as well I tried to find this data before but lost it after the 5.0 update

    • 0
  • Inquirer
  • Posted

    I'm using the latest Synology firmware DSM 5.0-4493 update 5 (updated 2 days ago).

    I'm in the final stage programming and testing. Looks really good..

    Please login or register to see this image.

    /emoticons/default_icon_wink.gif" alt=";-)" />

    Posted it!

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