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

    mhr320

    @mhr320

    2
    Reputation
    4
    Profile views
    10
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    mhr320 Unfollow Follow

    Best posts made by mhr320

    • RE: Module to Display JSON data from a FILE

      @sdetweil Hard to say how to improve things from our interaction. 5/5 Stars. I am new-ish to actively using this forum and wanted to give you props for your efforts, not sure if I did through any formal process, I tried to show the answer as the solution and attempted to upvote, but not sure if I did. But if you are the mod and jumped in to help me, that is a great way to make the forum better. Take care and enjoy the grandchild!

      posted in Requests
      M
      mhr320
    • RE: Module to Display JSON data from a FILE

      @sdetweil Oh, in “a forum” was relative to another forum, this is the first time, in a long time, i’ve used this forum. HERE has been great every time so far, sorry for the misunderstanding.

      posted in Requests
      M
      mhr320

    Latest posts made by mhr320

    • RE: Module to Display JSON data from a FILE

      Whoa, that was fast on both of your parts. I went to his github page and saw several old open “issues” i figured he’d be asleep on the project, but wow! It worked, great job sir! I really look forward to my next issue.

      posted in Requests
      M
      mhr320
    • RE: Module to Display JSON data from a FILE

      @sdetweil Oh, in “a forum” was relative to another forum, this is the first time, in a long time, i’ve used this forum. HERE has been great every time so far, sorry for the misunderstanding.

      posted in Requests
      M
      mhr320
    • RE: Module to Display JSON data from a FILE

      @sdetweil Hard to say how to improve things from our interaction. 5/5 Stars. I am new-ish to actively using this forum and wanted to give you props for your efforts, not sure if I did through any formal process, I tried to show the answer as the solution and attempted to upvote, but not sure if I did. But if you are the mod and jumped in to help me, that is a great way to make the forum better. Take care and enjoy the grandchild!

      posted in Requests
      M
      mhr320
    • RE: Module to Display JSON data from a FILE

      Absolutely Brilliant! Since I downloaded the multi-instance version of MMM-JsonTable from you, I assume it will not be available when updating. I will diff the original from yours and learn what you did to make it multi-instance and send that off to the author of MMM-JsonTable as a feature request. I really appreciate your help. It was nice to have a pleasant experience in a forum for a change, does not always go that way.

      posted in Requests
      M
      mhr320
    • RE: Module to Display JSON data from a FILE

      Enjoy the grandson, i am of no importance! Thank you!

      posted in Requests
      M
      mhr320
    • RE: Module to Display JSON data from a FILE

      @sdetweil So the path does indeed work, what was preventing me from seeing the data was the arrayName in the config. That does have to be set regardless of it saying it is optional.

      So that problem is solved, do you think I can solve the sharing of screen time for each of the three array’s in the json file via css or will that take some javascript? That was really what was important because the information is for my three kids and they each attend a different school.

      I really appreciate your help and patience.

      posted in Requests
      M
      mhr320
    • RE: Module to Display JSON data from a FILE

      @sdetweil Ok, I’ll get back to trying it, I must have messed up an entry somewhere.

      posted in Requests
      M
      mhr320
    • RE: Module to Display JSON data from a FILE

      Thank you for replying. I forgot to put in my post I had searched for this type of module already, by simply searching for json on the modules page. I attempted exactly what you suggested with no results.

      The top of my config file looks like this:

      let config = {
      	address: "0.0.0.0", 	
      	port: 8081,
      	basePath: "/", 	
      	ipWhitelist: [], 
      
      	useHttps: false, 	
      	httpsPrivateKey: "", 
      	httpsCertificate: "", 
      
      	language: "en",
      	locale: "en-US",
      	logLevel: ["INFO", "LOG", "WARN", "ERROR"],
      	timeFormat: 12,
      	units: "imperial",
      

      I have attempted on four different modules [
      MMM-ValuesByNotification,
      MMM-JsonTable,
      MMM-JsonValue,
      MMM-json]

      using all of these paths plus other variations with no loading of localhost json data:

      "http://localhost:8081/MagicMirror/modules/file.json"
      "http://localhost:8081/modules/file.json"
      "localhost:8081/MagicMirror/modules/file.json"
      "localhost:8081/modules/file.json"
      
      "http://0.0.0.0:8081/MagicMirror/modules/file.json"
      "http://0.0.0.0:8081/modules/file.json"
      "0.0.0.0:8081/MagicMirror/modules/file.json"
      "0.0.0.0:8081/modules/file.json"
      

      Respectfully, thank you to anyone who provides advice or help.

      posted in Requests
      M
      mhr320
    • Module to Display JSON data from a FILE

      I think it would be useful for the MagicMirror Community if there was a simple module to display JSON data from a file saved on the system. If the module could differentiate between the entries somehow, that would be great so it could show one entry for 10 seconds, then fade out and show the next entry for 10 seconds.

      I was unable to find a module that displayed JSON data from a file. I have a JSON file from a web scraper I built, I am sure there is a way to get the information from the website using java script, but it’s mostly Greek to me.

      Here is a look at the JSON file I have created:

      {
          "TROY": [
              "Creamy Macaroni & Cheese ",
              "Mac-n-Cheese with Chicken Bowl ",
              "Vegetarian Entree Salad with Dinner Roll ",
              "Hot Honey Chicken Lettuce Wrap-Mystery Chef 2025 Recipe ",
              "PB&J Grape Uncrustable Combo Meal ",
              "Colorful Riviera Vegetable Blend ",
              "Garden Side Salad ",
              "Assorted Fresh Veggies ",
              "Seasonal Fresh Fruit ",
              "Assorted Flavors Fruit Sidekick Slushie ",
              "Garlic Twist  Breadstick ",
              "1% Milk ",
              "Nonfat Chocolate Milk ",
              "Red Pepper Hummus Cup ",
              "Variety of Condiments "
          ],
          "HIGHSCHOOL": [
              "Seasoned Chicken Strips ",
              "Savory Beef Meatballs ",
              "Vegetarian Salad with Banana Bread ",
              "Boar's Head Buffalo Chicken Sandwich ",
              "PB&J Grape Uncrustable Sandwich ",
              "Assorted Cereal Lunch ",
              "Fruit and Yogurt Parfait ",
              "Steamed Broccoli ",
              "Fresh Veggie Dippers ",
              "Classic Hummus ",
              "Marinara Sauce ",
              "Seasonal Fresh Fruit ",
              "Penne Noodles ",
              "Garlic Twist  Breadstick ",
              "1% Milk ",
              "Nonfat Chocolate Milk ",
              "Alfredo Sauce ",
              "Variety of Condiments "
          ],
          "LEARWOOD": [
              "Creamy Macaroni & Cheese ",
              "Mac-n-Cheese with Chicken Bowl ",
              "Vegetarian Entree Salad with Dinner Roll ",
              "Turkey Sub ",
              "PB&J Grape Uncrustable Combo Meal ",
              "Assorted Cereal Lunch ",
              "Fruit and Yogurt Parfait ",
              "Colorful Riviera Vegetable Blend ",
              "Garden Side Salad ",
              "Assorted Fresh Veggies ",
              "Seasonal Fresh Fruit ",
              "Assorted Flavors Fruit Sidekick Slushie ",
              "Breadstick ",
              "1% Milk ",
              "Nonfat Chocolate Milk ",
              "Red Pepper Hummus Cup ",
              "Variety of Condiments "
          ]
      }
      

      I would love for the module to display a heading of TROY and the meals for that day, then fade or switch to HIGHSCHOOL and display those meals, and so on. I think this module might be useful for others as well…maybe not.

      Anyone interested in making a module? Thank you in advance.

      posted in Requests
      M
      mhr320
    • MMM-JsonTable Layout Format

      I am using this module to display the daily lunch menu for my kids’ schools. Currently I am collecting 2 schools, next year it will be three.
      The layout of the json data works now, but I’d rather see it in columnar format with ‘\n’ applied, they are in the json itself. Any thoughts on how this might be accomplished? I understand there is a configuration settings for keepColumns, but do not quite understand how this implements. Any help is greatly appreciated.

      posted in Utilities
      M
      mhr320