MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. zanix
    3. Posts
    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

    Posts

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

      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
      posted in Utilities
      zanixZ
      zanix
    • RE: MMM-MealieMenu Fetch Error

      @sdetweil said in MMM-MealieMenu Fetch Error:

      @WallysWellies I am a mealie user too.

      code looks good. will have to setup and test.

      it does get the data frequently
      60 seconds by default…

      I should probably set the default to something higher. I had it set to 60 seconds while I was developing it.

      @sdetweil said in MMM-MealieMenu Fetch Error:

      @WallysWellies ok… I’ll watch it running here at 15 min updates…

      well, I found it…

      in the node helper he sets a flag, to say request is active

      if the flag is set when the request comes from the module side
      he just returns… does nothing.

      on error he does not clear the flag
      (bad network, host, authorization… places where there is no recovery
      those make sense…)

            .catch((error) => {   //<--- had and error here ... 
              this.sendSocketNotification("MEALIE_ERROR", {
                error: "FETCH_ERROR",
                details: error,
                identifier: config.identifier
              });
            })
            .finally(() => {
              this.outstandingRequest = false;   // < --- only clears flag on success
            });
      

      one could examine the error and reset if its a potentially recoverable error…

      I thought finally() runs even after a catch(), dangit.

      @WallysWellies said in MMM-MealieMenu Fetch Error:

      @sdetweil I’m looking at the node_helper.js file and reading your comments and I’m a little unsure what you are suggesting.

      Are you saying I could edit this code block:

      .catch((error) => {
              this.sendSocketNotification("MEALIE_ERROR", {
                error: "FETCH_ERROR",
                details: error,
                identifier: config.identifier
              });
            })
      

      to this:

      .catch((error) => {
              this.outstandingRequest = false; 
              this.sendSocketNotification("MEALIE_ERROR", {
                error: "FETCH_ERROR",
                details: error,
                identifier: config.identifier
              });
            })
      

      ?

      Sorry, I can fumble my way around code but I’m far from a programmer!

      I will get this fix added and set the default updateInterval to something a bit more sane soon. Thanks to all for troubleshooting!

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

      Version 1.4.0

      • add message when meal plan is empty
      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
    • 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.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.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
    • 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
    • 1 / 1