Giter VIP home page Giter VIP logo

skolmat-card's Introduction

hacs_badge Version Installs

skolmat-card custom card for Lovelace, Home Assistant

A Lovelace card to present the current food menu in Swedish schools

Description

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.

image

Installation

  1. Install the skolmat custom component (https://github.com/Kaptensanders/skolmat)
  2. Install this card with HACS, or manually put skolmat-card.js in your www folder and add as resource.
  3. 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

Lovelace configuration options

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

skolmat-card's People

Contributors

kaptensanders avatar thomasloven avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

caine72

skolmat-card's Issues

Update interval?

Hi!

Thanks you for this card! The kids like it :)
However, I can't get it to update every day. I have the menu for current day displayed on a screen attached to the refrigerator. It shows yesterday menu until I refresh the android app.
Any update parameter I have missed?
BR/Nicklas

header school name

The options for the header are
Full: school name and Date
Short: only Date
None: none

I would like only school name. The date I know but with more than one school I need the school name.

Think you for an otherwise very Nice looking card.

Roll over to next week (7 day card)

Not sure if this Issue belongs in the Integration or the Card.

However It would be nice if this integration supported rolling weeks.
On for example Thursday, it is not so interesting to know what the food was on Monday this week, however the coming week is more interesting.
For skolmaten.se the RSS for this is: https://skolmaten.se/skutehagens-skolan/rss/days/?limit=7

I tried adding this URL instead, but it only shows todays menu even if setting the week parameter.

"Det finns ingen meny för v18"

Great addition to my family's dashboard! However..
While the rss feed (week) seems to work fine, and a normal entity card gets populated (with only todays menu), the skolmat-card doesn't pick up anything from the rss-feed. It just says "Det finns ingen meny för v18"

Screenshot 2022-05-06 at 21 33 51

great card but more styling options needed

This is a great HA card, it works very well!

But I'd like more configuration options for the card, for example set or hide the title, remove the title font setting that doesn't match my dashboard default font selection, etc.

Using mod-card, I think I can override the styling of the heading font. What css tag does it have?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.