Skolmat custom component for the food menu in Swedish schools
This component is only valid in Sweden. It leverages data from skolmaten.se, webmenu.foodit.se, menu.matildaplatform.com or mpi.mashie.com to create a sensor entity from a configured data source (url). The sensor state will be todays available course(es) and the attributes will contain the full menu for the next two weeks.
You can use the sensor as you please or install the lovelace custom card to display the menu for today or for the week (https://github.com/Kaptensanders/skolmat-card)
- Install with HACS
- Add to configuration.yaml:
sensor:
- platform: skolmat
name: Skutehagen # Name of school here
url: "https://skolmaten.se/skutehagens-skolan/rss/weeks" # url to your rss here
- Validate config and restart HA
- Your sensor entity will show up as skolmat.[school name]
- Optionally, also with HACS, install the corresponding lovelace card: skolmat-card
- Open https://skolmaten.se/ and follow the links to find your school.
- When you arrive at the page with this weeks menu, copy the url
Like:https://skolmaten.se/skutehagens-skolan/
- Open https://webmenu.foodit.se/ and follow the links to find your school.
- When you arrive at the page with this weeks menu, copy the url
Like:https://webmenu.foodit.se/?r=6&m=617&p=883&c=10023&w=0&v=Week&l=undefined
- Open https://menu.matildaplatform.com/ and find your school by using the search box
- When you arrive at the page with this weeks menu, copy the url
Like:https://menu.matildaplatform.com/meals/week/63fc93fcccb95f5ce5711276_indianberget
NOTE: mashie.com has different subdomains like mpi, sodexo, and possibly more. Example below is for mpi.mashie.com and you may have another way of obtaining the url depending on your subdomain. If the url to your weekly menu contains .../public/app/... or .../public/app/... you should be fine. Otherwise let me know.
- Open https://mpi.mashie.com/public/app and find your school by using the search box
- When you arrive at the page where you can see the menu, copy the url
Like:https://mpi.mashie.com/public/app/Laholms%20kommun/a326a379