MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. zanix
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 19
    • Groups 0

    zanix

    @zanix

    8
    Reputation
    1
    Profile views
    19
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    zanix Unfollow Follow

    Best posts made by zanix

    • MMM-MealieMenu: Display weekly meal plans from Mealie

      Description

      MMM-MealieMenu displays weekly meal plans from Mealie.

      Mealie is a self-hosted recipe manager and meal planner.

      You can import recipes from various websites, generate shopping lists based on ingredients, and create meal plans.

      I use it to store recipes and plan out our meals every week.

      Screenshot

      MMM-MealieMenu-screenshot.png

      Download

      Get MMM-MealieMenu from GitHub. Just follow the installation instructions.

      You must have Mealie installed somewhere as it is a self-host app.


      Changelog

      Version 1.7.0

      Features

      • Add support for Mealie v2 (Households)

      Bug Fixes

      • Error log output

      Verison 1.6.1

      Bug Fixes

      • mealSortOrder actually filters entry types

      Verison 1.6.0

      Bug Fixes

      • Show last update when enabled

      Features

      • Add token refresh when it expires

      Verison 1.5.0

      Bug Fixes

      • add more logging
      • change updateInterval default to 1 hour
      • reset outstandingRequest on fetch error

      Features

      • add currentWeek, dayLimit, and entryLimit

      Verison 1.4.0

      • add message when meal plan is empty

      Version 1.3.0

      • Enclose meal header components in span elements

      Version 1.2.0

      • Add default image when an image is not available for a meal plan
      • Default image is the Mealie icon
      • Add defaultPicture option to change the image
      • Add recipe description or meal note, default is hidden
      • Add showDescription to toggle the description
      • Wrap meal name to single line

      Version 1.1.1

      • Meal plan notes in the meal plan don’t result in an error

      Version 1.1.0

      • Add groupId to fetch meal plans for a specific group
      • Remove dependency on axios, use native fetch
      • Add valid url check for host
      • Fix translation string
      • Reduce the font size of error messages
      • Disable console output of meal plans

      Version 1.0.0

      • Initial release

      This is based on the MMM-PaprikaMenu module.
      Thanks to kaelspencer for developing that module.

      posted in Utilities
      zanixZ
      zanix
    • RE: MMM-pihole-stats refuses to update

      @arus
      There is a fix on the Github for this module.
      https://github.com/sheyabernstein/MMM-pihole-stats/issues/10
      I also created a PR with the fix here https://github.com/sheyabernstein/MMM-pihole-stats/pull/14

      posted in Troubleshooting
      zanixZ
      zanix
    • RE: MMM-MealieMenu Fetch Error

      @WallysWellies I just updated the module to account for token expiration.
      It took me a bit to test since I needed to let the token expire to make sure it worked.

      posted in Troubleshooting
      zanixZ
      zanix
    • RE: MMM-MealieMenu: Display weekly meal plans from Mealie

      Version 1.1.0

      • Add groupId to fetch meal plans for a specific group
      • Remove dependency on axios, use native fetch
      • Add valid url check for host
      • Fix translation string
      • Reduce the font size of error messages
      • Disable console output of meal plans
      posted in Utilities
      zanixZ
      zanix
    • RE: MMM-MealieMenu: Display weekly meal plans from Mealie

      Version 1.1.1

      • Meal plan notes in the meal plan don’t result in an error
      posted in Utilities
      zanixZ
      zanix
    • RE: MMM-MealieMenu: Display weekly meal plans from Mealie

      Version 1.2.0

      • Add default image when an image is not available for a meal plan
      • Default image is the Mealie icon
      • Add defaultPicture option to change the image
      • Add recipe description or meal note, default is hidden
      • Add showDescription to toggle the description
      • Wrap meal name to single line
      posted in Utilities
      zanixZ
      zanix
    • RE: MMM-MealieMenu: Display weekly meal plans from Mealie

      Version 1.3.0

      • Enclose meal header components in span elements
      posted in Utilities
      zanixZ
      zanix

    Latest posts made by zanix

    • RE: MMM-MealieMenu: Display weekly meal plans from Mealie

      Version 1.7.0

      Features

      • Add support for Mealie v2 (Households)

      Bug Fixes

      • Error log output
      posted in Utilities
      zanixZ
      zanix
    • RE: MMM-MealieMenu: Display weekly meal plans from Mealie

      Verison 1.6.1

      Bug Fixes

      • mealSortOrder actually filters entry types
      posted in Utilities
      zanixZ
      zanix
    • RE: MMM-MealieMenu Fetch Error

      @WallysWellies Are you running MM and Mealie on the same computer? And do you have the MMM-Mealie URL set as localhost?
      If so, try changing the MMM-Mealie URL to the IP address of the computer it’s running on.

      posted in Troubleshooting
      zanixZ
      zanix
    • RE: MMM-MealieMenu Fetch Error

      @WallysWellies I opened MM on my desktop (MM runs on a Pi5) and I can see the meal images.
      The default image only displays when the meal image cannot load. Maybe the URL of the images isn’t accessible on your laptop?

      posted in Troubleshooting
      zanixZ
      zanix
    • RE: MMM-MealieMenu Fetch Error

      @WallysWellies I just updated the module to account for token expiration.
      It took me a bit to test since I needed to let the token expire to make sure it worked.

      posted in Troubleshooting
      zanixZ
      zanix
    • RE: MMM-MealieMenu: Display weekly meal plans from Mealie

      Verison 1.6.0

      Bug Fixes

      • Show last update when enabled

      Features

      • Add token refresh when it expires
      posted in Utilities
      zanixZ
      zanix
    • RE: MMM-MealieMenu Fetch Error

      @WallysWellies Thanks!
      I think the token does expire. I just checked the token on my instance and it expires 1 month from now.
      I will work on fixing that soon.

      posted in Troubleshooting
      zanixZ
      zanix
    • RE: MMM-MealieMenu Fetch Error

      I just realized this error occurs when the meal plan is fetched. I wonder if the auth token is expiring.

      posted in Troubleshooting
      zanixZ
      zanix
    • RE: MMM-MealieMenu Fetch Error

      I normally use an API key but I just tried my username/password and it worked. I’m on Mealie 1.7.0.
      Go ahead and restart MM and see if that works.

      Are you on the latest MMM-MealieMenu (1.5.0)? I added an additional log when the auth token fetch fails.

      posted in Troubleshooting
      zanixZ
      zanix
    • RE: MMM-MealieMenu Fetch Error

      @WallysWellies said in MMM-MealieMenu Fetch Error:

      @zanix Thanks for your input :)

      I made the change after posting and it certainly doesn’t break anything but I have been playing with some other modules too so have restarted the software several times meaning I haven’t given it a chance to error but based on my understanding it probably shouldn’t anymore. I don’t know why it was in the first place though - the Mealie container is on the Pi so it’s using localhost to retrieve data. Who knows.

      Hopefully that fixes the issue, let me know otherwise.

      I did make one other change because I wanted to see the next week of meals, rather than the remaining meals this week. So I changed this line:

      const startOfWeek = this.getFirstDayOfWeek(config.weekStartsOnMonday);
      

      to this:

      const startOfWeek = moment();
      

      It’s pretty crude but if you’re taking suggestions it might be nice to have the option to show x number of days in the future rather than until the end of the week. I don’t believe that’s currently possible natively?

      Before now no, but I did just add the fetch fix, updateInterval default to 1 hour, and some additional meal entry options in version 1.5.0.

      The options are:

      • currentWeek: Only show meals for the current week.
      • dayLimit: How many days will be displayed after today.
      • entryLimit: How many entries from future days should be shown in total.

      Now you can just set currentWeek to false to get the same effect.

      Thanks for the module though, it’s great!

      I appreciate that, glad it’s useful!

      posted in Troubleshooting
      zanixZ
      zanix