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 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 |
week |
Show today only or full week menu |
header |
full , short , none |
full |
full - School name and time span short - Time span 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 |