thomasloven / lovelace-flower-card

102 stars 37 forks source link

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

Open james-fry opened 5 years ago

james-fry commented 5 years ago

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 commented 5 years ago

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

iantrich commented 5 years ago

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

james-fry commented 5 years ago

@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)

madmicio commented 5 years ago

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

codedmind commented 4 years ago

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