Converting Magic Mirror Module to Home Assistant Card

Last year, I wrote a Magic Mirror Module to pull my kids’ lunch menu off mealviewer.com (https://github.com/kazanjig/MMM-MealViewer). I never got my Magic Mirror off the ground and am now scrapping it altogether in favor of my Home Assistant dashboard. How would I go about converting this to run as some sort of card in Home Assistant?

I just made a homeassistant component for MealViewer. I used your code to understand the API.Thanks . It is pretty barebones, but it works.

jdeath/mealviewer (github.com)

Coming full circle here – thank you for making this integration! I’m now adding this sensor into HA but I’m receiving the following error when adding it to configuration.yaml following the instructions you’ve set out in your readme (even when using your sample):

Error loading /config/configuration.yaml: mapping values are not allowed here in “/config/configuration.yaml”, line 26, column 15

Here are lines 25-27. It appears the error is thrown after “accounts:”.

  - platform: mealviewer
      accounts:
        - 'HookstadtHighSchool'

Any thoughts?

EDIT:
Indent for “accounts:” should be the same as “platform”…

So it works for you now? I updated the documentation, sorry about that. Honestly, didn’t think anyone else used it!

Yup, although my kids either buy lunch regardless of what’s on the menu or never buy lunch. But at least I can give them the info.