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


Question

Posted

Dear all,

I would like to delete my user icon, but when I press the button, the icon disappears and I can't delete it.

The icon is the camera image.

Here the screenshots...

[ Added: 2014-07-20, 19:34 ]

Can I delete icons by api?

Please login or register to see this attachment.

Please login or register to see this attachment.

10 answers to this question

Recommended Posts

  • 0
Posted

There is list of icons in API: IP/api/icons you can try to download json table from there, modify it and sand again.

  • 0
  • Inquirer
  • Posted

    Thank you!

    I've already downloaded the json table and I've seen the id e the name of the icon (user1000), but how can I modify it?

    Thanks in advance

    • 0
    Posted

    Manually create new variable and assign values that you want to stay as consecutive fields of table and then assign new table in the place of the old one.

    • 0
  • Inquirer
  • Posted

    Dear j.nowacki,

    I've downloaded and modified the table with a json editor but I don't know absolutely how uploading it.

    • 0
    Posted

    This piece of code downloads json table, modifies one of the fields and upload it again.

    Please login or register to see this code.

    Hope that example will help.

    • 0
  • Inquirer
  • Posted

    Thanks!

    I've made a test with a global variable to understand how the script works.

    It works fine!

    Please login or register to see this code.

    But… I've a problem with the icons.

    I don't find the correct path for the table row with the id and iconName to change.

    This is my path:

    Please login or register to see this code.

    I'm not able to select in the response this element

    Please login or register to see this code.

    The entire response is:

    Please login or register to see this code.

    What's the correct syntax for the path for select it?

    I've tried:

    Please login or register to see this code.

    and more...

    Nothing to do.

    Many Thanks

    • 0
    Posted

    rusconidesigner, you need to download and decode whole "response" and then access certain paths in it, e.g. "response.virtualDevice[1].id" will give you id of 1st item.

    • 0
  • Inquirer
  • Posted

    Thanks! Now it's all more clear.

    I've tried this script and I think it's correct but I receive error status 405…

    Please login or register to see this code.

    • 0
    Posted

    Ok, I took a closer look this problem. Use of PUT method is impossible, since this method is not allowed here. We can use DELETE here and it would work, but we discovered bug here: first icon added to virtual device gets ID 1000 and is treated as system icon. Solution: contact [email protected] I already described them your case and we have way to fix this but they need remote access. Unfortunately this problem will return with every icon of virtual device that has id 1000, but I mentioned it to proper team.

    • 0
  • Inquirer
  • Posted

    j.nowacki,

    Sorry for the delay.

    Thank you! I'll contact Fibaro support for this minor bug.

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