Closed brucehat closed 11 months ago
I can change the modern attribute to image:
with the options of; modern
, sunysnk
, lux
, solis
and goodwe
. If you can share with me the images/svg's ?
Image for goodwe
Hi,
Here is Lux, not sure what is better or do you want bas64?
Thanks Bruce
Here is Solis
Sorry I focused on quality not size --> tell me what you need and I will happily convert / resize etc.
@slipx06 I did this on my fork. The base64 is moved to constants, and then selected based on the model. I haven't created a PR as yet as I am trying to do some refactoring.
I can change the modern attribute to
image:
with the options of;modern
,sunysnk
,lux
,solis
andgoodwe
. If you can share with me the images/svg's ?
Hi @slipx06 I'd love it if you could make that change - I've just been looking at the code myself (although I'm not a coder more hacker/scripter) and created my own base64 code string from a Lux inverter image that I resized to 72x54 which I think is your modern image size, replaced it in your code and uploaded to HA just as a way of learning just a little of how this stuff works.....
Anyway, your suggestion would be fantastic as you can see with now supporting 4x different inverters, there's now a much bigger potential user base for your card.
I did look a changing another card to try and integrate some of your functionality but why reinvent the wheel......
@slipx06 I did this on my fork. The base64 is moved to constants, and then selected based on the model. I haven't created a PR as yet as I am trying to do some refactoring.
Thanks. I'll wait for you to finish before I do anything
I can change the modern attribute to
image:
with the options of;modern
,sunysnk
,lux
,solis
andgoodwe
. If you can share with me the images/svg's ?Hi @slipx06 I'd love it if you could make that change - I've just been looking at the code myself (although I'm not a coder more hacker/scripter) and created my own base64 code string from a Lux inverter image that I resized to 72x54 which I think is your modern image size, replaced it in your code and uploaded to HA just as a way of learning just a little of how this stuff works.....
Anyway, your suggestion would be fantastic as you can see with now supporting 4x different inverters, there's now a much bigger potential user base for your card.
I did look a changing a other card to try and integrate some of your functionality but why reinvent the wheel......
Great. Can you share your encoded image
Absolutely here it is, on this image I've reduced the icon to 52x72 as 54x72 was a bit too close to the inverter temps.
Image code:
iVBORw0KGgoAAAANSUhEUgAAADQAAABICAYAAAC5mNZRAAABb2lDQ1BpY2MAACiRdZG9S8NAGMaftkrFVoroIOIQoYpDC0VBHLUOXYqUWsGqS3JNWiFJwyVFiqvg4lBwEF38GvwPdBVc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worAM0SyOqNzySsvb29SPUdXlnxNXSUdbB0lic6VNGbFJbXgMOYyFGFP/vdOliINcM8PvFse9rAa0Mo2XrWhlBiq7UhlMSBtSG0ti4nk9Pkv7OMbQo1TJRYiAn9NhgMgjr+eck0bzJM83+TYoOvfV17wgAAAABJRU5ErkJggg==
Beauty, beauty ... slipx06 is a god.
Lux also good - awesome work @slipx06
What a great update, which I'm sure will make many users very happy, thank you!
@Pho3niX90 did all the heavy lifting for this change. He deserves all of the credit. 👏
Is there an existing issue for this?
Current Behavior
Current historical base64 image is in the javascript application, could it please be configurable as an entity or the PNG put in the www folder so it can be swapped to images of other brands like:
Expected behaviour
Image based on model and modern
Possible Solutions
Mode
full
Context / Reason
Just to make your card more cool - it's part of a lot of our lives!