lovelace-flower-card icon indicating copy to clipboard operation
lovelace-flower-card copied to clipboard

If the image is not found can the custom image from the plant entity be used instead?

Open james-fry opened this issue 5 years ago • 5 comments

It is possible to customize a plant entity with an image: e.g.

image

plant.living_room_monstera:
  entity_picture: /local/images/plants/monstera.jpg

If an image cannot be found in /local/lovelace-flower-card/data/Images/ for the defined species, is it viable to try the custom image for the plant entity specified?

FYI this is what the default lovelace plant status and your flower card look like next to each other with custom plant entity image but not the scraped miflora species images (still downloading ;))

image

james-fry avatar Apr 24 '19 21:04 james-fry

Another suggestion is to use the online image referenced in the original CSV DB, rather than require the local image. e.g. for this plant, with 200x200 resolution: http://pkb.resource.huahuacaocao.com/bW9uc3RlcmEgZGVsaWNpb3NhLmpwZw==?imageView2/1/w/200/h/200

james-fry avatar Apr 24 '19 21:04 james-fry

@james-fry can't you just put the image file at the location it is looking with the correct species name?

iantrich avatar Apr 24 '19 21:04 iantrich

@iantrich Absolutely you can :) Just thinking of ways this card will "just work" nicely with with existing customized plants without having to move the images around, and also to reduce the requirement to source the images for the DB (400Mb d/l)

james-fry avatar Apr 24 '19 21:04 james-fry

sfondo flower card why the image of the plant is displayed in this way?

madmicio avatar May 29 '19 16:05 madmicio

How can we change the name so the url search works... for instance if the specie is Spathiphyllum 'Cosmic Cupido' the image expect will be Spathiphyllum 'Cosmic Cupido'.jpg wich will not work

codedmind avatar Oct 03 '20 15:10 codedmind