A Lovelace card to present the current food menu in Swedish schools
This custom card is valid in Sweden. It depends on the skolmat custom component (https://github.com/Kaptensanders/skolmat) that populates entities from school menu rss feeds.
- Install the skolmat custom component (https://github.com/Kaptensanders/skolmat)
- Install this card with HACS, or manually put skolmat-card.js in your www folder and add as resource.
- Add the card to lovelace config:
type: custom:skolmat-card
entity: skolmat.skutehagen
menu_type: today # [today or week]
header: full # [full, short, school-name or none]
header_font: https://fonts.googleapis.com/css2?family=Inspiration&display=swap
header_fontsize: 2em
Option | Supported values | Default | Description |
---|---|---|---|
type |
custom:skolmat-card |
Required | The card type |
entity |
skolmat entity id | Required | Entity id, like skolmat.nibbleskolan |
menu_type |
today , week , rolling-week |
week |
Show menu for today only, full current week, or from today and rolling_week_max_days forward |
header |
full , short , school-name , none |
full |
full - School name and time span short - Time span school-name - School name none - No header |
header_font |
google fonts url or none for theme font |
https://fonts.googleapis.com/css?family=Mea+Culpa |
The href parameter of the link tag provided at google fonts site |
header_fontsize |
2em , 20px , etc |
1.5em |
any valid css size specifier |
show_dates |
True , false |
False |
Show dates after weekday (Always shown for rolling-week) |
rolling_week_max_days |
intger 1 to 10 |
5 |
Number of days to show for rolling-week's |