idaho / hassio-trash-card

TrashCard - indicates what type of trash will be picked up next based on your calendar entries 🗑️
Apache License 2.0
171 stars 20 forks source link

Assistance - Pictures instead of icons #430

Open Roving-Ronin opened 1 month ago

Roving-Ronin commented 1 month ago

In the examples it mentions using pictures instead of icons and shows an example with wheelie bins:

image

or like this (needing Red, Green and Yellow tops): image

Are these wheelie bin type pictures available to download? If so, from where ?

Thanks in Advance.

theitghost commented 1 month ago

If i want use a big picture, they have all only a small Icon format. Can not change the size.

barthel-eu commented 1 week ago

I have the same problem that the "picture" is showing only in default icon size. icon_size:200 does not change anything. It would be very helpful to have a code example how to set up like in the example of the wheeled trash can. Aside, it is in a horizontal layout but fill_container: true does not result in a fill of the area either, nor can I make it show a background, would likely need to do that on the image? PEBKAS? Or "feature"?

event_grouping: true
drop_todayevents_from: "10:00:00"
next_days: 3
icon_size: 100
fill_container: true
full_size: true
pattern:
  - icon: mdi:leaf-circle-outline
    color: green
    type: organic
    pattern: Grüne Tonne
    picture: /local/images/trashcan-green.png
  - icon: mdi:newspaper
    color: blue
    type: paper
  - icon: mdi:recycle
    color: amber
    type: recycle
    pattern: Wertstofftonne
    picture: /local/images/trashcan-yellow2.png
  - icon: mdi:trash-can-outline
    color: grey
    type: waste
    pattern: Graue Tonne
    picture: /local/images/trashcan-black.png
  - icon: mdi:dump-truck
    color: purple
    type: others
day_style: weekday
card_style: icon
alignment_style: left
color_mode: icon
items_per_row: 1
refresh_rate: 60
with_label: true
type: custom:trash-card
entities:
  - calendar.apps_by_abfall
use_summary: false

I tried changing "icon" also to the picture:

  - icon: /local/images/trashcan-green.png
    color: green
    type: organic
    pattern: Grüne Tonne
    picture: /local/images/trashcan-green.png

Or remove the line icon: No change (background is a NASA image, next to the trash card is a gauge in default size). Whatever I do, the trash card doesn't change the icon size: tmp

barthel-eu commented 1 week ago

P.S.: My trashcan icon: trashcan-green It's adapted for my personal use from one I found on the web, so not public domain.