Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. idoodler
    3. Posts
    • Profile
    • Following 0
    • Followers 3
    • Topics 4
    • Posts 194
    • Best 29
    • Groups 1

    Posts made by idoodler

    • RE: MMM-Loxone

      Hi @Phil__,

      I think the Raspberry Pi 4 works a little bit different that the 3 or so.

      If MMM-Loxone can‘t toggle off the display it just fades in a black overlay to hopefully trigger the screens power saving mode.

      I will have a look at it when my Pi 4 arrives.

      Meanwhile I ask you to create an issue on the Github Repo

      posted in Utilities
      idoodler
      idoodler
    • RE: MMM-Loxone

      @elmattt I guess you want to show multiple controls, right? If this is the case you need to assign the observingUuids property an array of UUIDs, something like.

      ...
      observingUuids: ["0eaf7a2f-0011-1f28-ffff2083eaf2523c", "12a97c52-00a6-aea9-ffffc00216fecef2", "10338564-033c-226f-ffff0b7b5fc746d6"]
      ...
      

      Please provide the relevant part of your config.js without any crucial informations like IP, username, password, …

      posted in Utilities
      idoodler
      idoodler
    • RE: MMM-Loxone

      @pavka28 @elmattt Any update, did you fix the issue?

      posted in Utilities
      idoodler
      idoodler
    • RE: MMM-Loxone

      @pavka28 @elmattt Can you guys please provide me your MMM-Loxone config without your credentials. Can you also please double check the UUID of the control you want to display.

      posted in Utilities
      idoodler
      idoodler
    • RE: MMM-Loxone

      @bobbythemoh Yeah, looks like there are some files missing. I think a new installation is a good idea. You can first check if there are any problems with git status.

      posted in Utilities
      idoodler
      idoodler
    • RE: MMM-Loxone

      @bobbythemoh Hi, did you make any changes to your Loxone installation?

      If not please try to reinstall the MMM-Loxone project.

      posted in Utilities
      idoodler
      idoodler
    • RE: Magic Mirror only shows black screen

      Here are a few things to do.

      • Check if the Server is still running
        • On the Raspberry Pi open a browser and visit localhost:8080 If you see a black screen the server is still running which is good…
      • Check your changes with git status. Any changes that you didn’t make on purpose? (Especially check the updatenotification module Validate them and revert them if needed
      • Rename your config _config.js (Or someting…) to force the MagicMirror to load the default config.js, check if the expected config file error appears
      • Meditate over your changes you might miss an obvious error in your code
      • Post the censored config.js file here
      posted in Troubleshooting
      idoodler
      idoodler
    • RE: How to load config data from file?

      @acimail01 Ok, we can fix the $ is not defined at loadJSON.

      Replace the function with the following which uses good old XMLHttpRequest:

      fuction loadJSON(filePath) {
          if (typeof module !== "undefined") {
              return require(filePath);
          } else {
              try {
                  var xmlhttp = new XMLHttpRequest();
                  xmlhttp.open("GET", filePath, false);
                  xmlhttp.send();
                  if (xmlhttp.status === 200) {
                      return JSON.parse(xmlhttp.responseText);
                  } else {
                      throw "Unexpected status code!";
                  }
              } catch (e) {
                  console.error(e);
                  return {};
              }
          }
      }
      
      posted in Troubleshooting
      idoodler
      idoodler
    • RE: How to load config data from file?

      @acimail01 Ok, I just got an idea.

      Place your json somewhere in the config folder and place the following function in your config.js.

      function loadJSON(filePath) {
          if (typeof module !== "undefined") {
              return require(filePath);
          } else {
              try {
                  return JSON.parse($.ajax({
                      type: "GET",
                      url: filePath,
                      async: false
                  }).responseText);
              } catch (e) {
                  console.error(e);
                  return {};
              }
          }
      }
      

      And call it like:

      modules: [
      	loadJSON("config/clock.json")
      ]
      

      This function will synchronisly load the given JSON, serializes it and returns it. This code is completly untestet, but it should work anyway:)

      Edit: I just updated my answer to also work with node.js

      posted in Troubleshooting
      idoodler
      idoodler
    • RE: How to load config data from file?

      @acimail01 Start MagicMirror in debug mode with npm start dev, it will open the developer tools. Then look for any red lines in the console.

      If you can’t find the developer tools you can open it with CTRL-SHIFT-I

      posted in Troubleshooting
      idoodler
      idoodler
    • 1
    • 2
    • 3
    • 4
    • 5
    • 19
    • 20
    • 1 / 20