State Icons Trouble

Hello,

while developing a Plugin for OpenKarotz, I’m facing a problem regarding State Icons

in the son I have the following

"flashicon": "icons/OpenKarotz_0.png", "imgIconBody": "", "imgIconDimmable": "", "imgIconTurnable": "", "imgIconMin": "icons/OpenKarotz_0.png", "imgIconMax": "icons/OpenKarotz_100.png", "halloIconsDir": "pics\/hallo", "state_icons": [ "OpenKarotz_0.png", "OpenKarotz_100.png"],

in the directory /www/cmh/skins/default/icons/ I have the files
OpenKarotz_0.png
OpenKarotz_100.png

but the plug is stil not displaying anything in the icons

Are you browsing your local IP address, or going through the reverse proxy service? The former should work; the latter definitely won’t.

Here is a working snippet for web-hosted icons that work in either situation:

{
   "flashicon": "http://cocu.la/vera/ecobee/icons/ecobee.png",
    "imgIconBody": "",
    "imgIconDimmable": "",
    "imgIconTurnable": "",
    "imgIconMin": "",
    "imgIconMax": "",
    "halloIconsDir": "pics/hallo",
    "state_icons": [
        "ecobee_0.png",
        "ecobee_100.png"
    ],
    "x": "2",
    "y": "4",
    "inScene": "0",
    "DisplayStatus": {
        "Service": "urn:ecobee-com:serviceId:Ecobee1",
        "Variable": "status",
        "MinValue": "0",
        "MaxValue": "1"
    }, ...

I do not understand how do you put the icons in the Vera ? And also where ?

Sent from my iPad using tapatalk

In your earlier message you said:

[quote=“chocorem, post:1, topic:182914”]in the directory /www/cmh/skins/default/icons/ I have the files
OpenKarotz_0.png
OpenKarotz_100.png[/quote]

So I don’t understand exactly what you’re asking.

This applies to UI5. I don’t know what may have changed in UI7. If you upload/install your custom icons to your Vera as in your .json file, the forwarding servers (fwd?.mios.com) will not show them; you will just get the generic “gear” icon. But if you connect to your Vera directly on your own local subnet (something like 192.168.1.2 or similar), you should see the icons you put there.

The example I pasted above shows putting your icons on some web server on the Internet, where they will be served to your web browser in either way you point your browser. Some plugin developers prefer to install the icons on the Vera and live with the “gear” icon when connecting through the forwarding servers. Other plugins have the icons on some web server elsewhere to avoid the gear icon.

But without more detail in your question, I don’t know if my answers are responsive.

watou

I have just found out what was wrong… I’m not using a web server to display the icon, but download the icon from the App Store with the plugin installation…

I just see that I had the “compress” option on the icon files, so the the icon was with .lzo extensions in the icons folder, and was not found, I republish my plugin without the compress option and now it is working fine !

Sent from my iPad using tapatalk

Glad you got it sorted out. There are many possible pitfalls when publishing plugins, and this is certainly one of them. At some point I will have to learn about OpenKarotz and how I can make mon lapin plus intelligent et plus liber?.

watou

No prob if you need support, I hope the plugin will be out soon… Installing openkarotz is very easy and described in the developer homepage

Sent from my iPad using tapatalk