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


Automatic Icon Downloader 0.6.0

   (3 reviews)

1 Screenshot

About This File

Automatic Icon Downloader

 

What does this device:

Device can automatically download from dedicated web-page all icons that you use to your HC2. The device can be used by installers to easily download their favorite sets of icons to new HC2, by end users to get back icons after recovery or any other purpose. Device before uploading any icon to your HC2 check if any of selected in IconSet already exists so it should be safe to click on "Download to HC2" button many times.

This solution has to separate parts: vd and portal. 

 

Version history:

0.6 - first published version of AID

 

To Do VD:

- future version of virtual device will be updated automatically from internet if user agreed to do it, after HC2 restart

 

To Do portal:

- next version will support adding user device icon to library (on, off, state 1-10)

 

Manual

1. Download and install virtual device.

 

2. Go to: www.grace-land.pl/fibaro/aid portal to get your IconSet. Current version looks like below.

 

Please note some important things:

- HC2 keeps your icons in 4 separate groups: devices, virtual devices, scenes, rooms. It means that if you want to use one image as room image and virtual device image it needs to be added twice - that is why portal items are divided into four groups (for user convenience - each group has different color)

 

3.png.1d4a7510ea667db033a5bd3334bd82f1.png

 

How the portal works?

You just check all icons in each group you want to add to your IconSet and then click "Get your IconSet".

Please remember that you can edit this IconSet later. 

geticonset.PNG.a5b0ccd39a098b179fd1790d538f261c.PNG

 

What if I have icon/s that is not in portal library?

There is option to upload your icons and make library bigger. In this case you click on "Add new icons" button. You will be redirected to new page.

Please note some important things:

- You can upload many files and many groups in the same time,

- All icons will be checked before upload. Icon needs to be: PNG file, 128x128 size, unique [portal checks if this icon exists in this group*], no bigger then 1MB (one icon),

- You will see preview of icons that you want to add but without category,

- For now there is no option to add "device" icons. I am working on it to make it simple,

- You will get status whats was added and what not.

 

neicons.PNG.34d4077a241fe5cb8650943f8abed1de.PNG

 

How to edit my IconSet?

You need to know your IconSetID and then click on "Edit your IconSet" button. Page will refresh and all icons from your set will be automatically checked.

What you need to do is to check more icons or uncheck unwanted icons and then click "Update your IconSet".

Please note that VD doesn't delete icons from your HC2. 

 

3. After you have your IconSetID there is time to configure virtual device. In this case you need to provide some information.

a) In VD information please provide IP and TCP port.

IP: grace-land.pl

TCP port:  80

b) In Advanced tab scroll to button and replace needed credentials.

c) click "Save".

Please note that virtual device only downloads data so there is no risk in providing credentials. 

-------------------------------------------------
-- PUT YOUR ADMIN CREDENTIALS
-------------------------------------------------
sv_user = '[email protected]';
sv_password = 'Y0urP@ssword';
sv_automaticDownloaderId = 'iconSetID_from_website';

creden1.PNG.9b0eae908dcef1b4ad329437cbb3fa4c.PNG

 

creden.PNG.1d50cbdc45ddb1aacaca4faa2c24097a.PNG

 

4. Your device is ready to use. You just click on "Download to HC2" and wait. All needed information is in debug for vd button.
Device before uploading any icon to your HC2 check if any of selected in IconSet already exists so it should be safe to click on "Download to HC2" button many times, but it will take a while.

 

downlaoad.PNG.65ae640a76fbc77e18cf16fa09c67296.PNG

 

Have fun!

 

Disclaimer:

Every of icons on portal [grace-land.pl/fibaro/] aid library are not my property.

The code wasn't inspired by the somebody mentioned in comment below - the first version of uploading I found in 2013 [https://github.com/rafikel/Fibaro/tree/master/ncplus] - and I went this way to make something usefull.

 

 

 

webpage.PNG

  • Like 2

User Feedback

You may only provide a review once you have downloaded the file.


codowd

   1 of 2 members found this review helpful 1 / 2 members

Interesting idea but when I click to get my id I get a page saying "Why are you here?"

Response from the author:

First of all you need to choose at least one icon from list.

Link to review
tinman

· Edited by tinman

   2 of 6 members found this review helpful 2 / 6 members

interesting idea, however 90% of the code (idea, uploader code, logic behind and restrictions handling, debug) is based on code from Phamj An Nhan from mHome (kimsontien.com).

 

So you will get one star from me for the remaining 10% of the code.

 

ok, code has been taken from lot of GPL sources, so you get 3 stars for the work you spend on it.

 

 

  • Like 1
Link to review
Jeff

  

This Downloader is a good Idea, but it doesn't work at me..

 

 

[DEBUG] 10:30:19: Connecting to HC2...
[DEBUG] 10:30:19: Connected to HC2!
[DEBUG] 10:30:19: Connecting to grace-land.pl:80...
[DEBUG] 10:30:19: Connected to grace-land.pl:80
[DEBUG] 10:30:19: Downloading iconset: 5dxxxxxxxxxxxx ...
[ERROR] 10:30:19: line 168: Expected value but found invalid token at character 1

 

Any idea?

 

Link to review
×
×
  • Create New...