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

    Posts

    Recent Best Controversial
    • RE: Max! cube system

      When there is an API there is a way! :-)

      Have a look at this community approach to describe Max! Cube API.

      posted in Requests
      P
      pinsdorf
    • RE: Suggestion: Should we add a list of 2-way mirror vendors to Wiki?

      Awesome idea!

      And while we are at it, I think that @Mykle1’s excellent step-by-step guides should also have a home in the wiki. The forum is the right place to work them out, but once the instruction have matured they should become part of the project itself.

      posted in Hardware
      P
      pinsdorf
    • RE: Cant put this to work

      If I see it correctly, you are installing Magic Mirror in directory /123/MagicMirror. Usual place is in the home directory of user pi, i.e. /home/pi/MagicMirror or ~/MagicMirror.

      In your startup logs you get many errors on loading resources such as CSS files. I’d assume the web server you are starting as user pi when starting MagicMirror is not allowed to access files in an arbitrary root directory, which your directory /123/MagicMirror actually is.

      posted in Troubleshooting
      P
      pinsdorf
    • RE: MMM-ShipmentTracking

      I totally like the idea that my mirror informs me about upcoming shipments. I was wondering if there is a convenient way so that I don’t have to put the tracking numbers into the config.js?

      Some ideas:

      • Manually add tracking numbers to a file on OneDrive or DropBox. The module reads it from there.
      • Forward order confirmation mails containing the tracking number to an email address, which the tracking module polls from and extract the shipping number (do they have a standard encoding, at least per carrier?).
      • Utilize voice command to dictate the shipping number.
      • Hook up my mailbox for order confirmations to IFTTT or Microsoft Flow to process mal and feed the tracking number into a service which the tracking module consumes, e.g. file on OneDrive or DropBox.

      I’d love to get your thoughts on this. Thanks!

      posted in Utilities
      P
      pinsdorf
    • RE: Reverse Lookup MMM-FRITZ-Box-Callmonitor - help needed

      Hmm, this is weird. The original MMM-FRITZ-Box-Callmonitor comes with a node_helper.js. Are you sure you did not delete it by accident resp. forgot to copy it to your dev environment? Moreover package.json and the README.md are missing.

      Are you familiar with git? I’d advice that you fork the MMM-FRITZ-Box-Callmonitor into your own GitHub account and make all your changes there. This would also allow me to read your latest code after each git commit. From this forked repository there is an easy way to get your improvement back into the original repository once you are done.

      posted in Development
      P
      pinsdorf
    • RE: Anyone face problem with MMM-EmbedYoutube module

      One thing which does not look right is the custom in your path. Moreover your path is in the root and not under /home/pi. It should read /home/pi/MagicMirror/modules/MMM-EmbedYoutube or ~/MagicMirror/modules/MMM-EmbedYoutube, which is equivalent for user pi.

      From your description I get the impression that you did not use the tool git to checkout the module into your modules directory. Is this possible? If so, please do the following:

      • cd ~/MagicMirror/modules
      • git clone https://github.com/nitpum/MMM-EmbedYoutube.git
      • Leave the config.js as it is, it looks good
      • Start your Magic Mirror
      posted in Troubleshooting
      P
      pinsdorf
    • RE: How can I set the Zoom on MM?

      I think there is also a zoom factor setting in config.js. Would this help?

      See documentation on zoom config setting:

      This allows to scale the mirror contents with a given zoom factor. The default value is 1.0

      posted in Troubleshooting
      P
      pinsdorf
    • RE: Reverse Lookup MMM-FRITZ-Box-Callmonitor - help needed

      Oh, one idea for your module. The calendar has a dedicated calendar fetcher as mentioned in my previous post. This may be interesting for your reverse lookup as well. Other people may want to use other online phone books, e.g. for different countries, and by configuring the right reverse lookup fetcher they could do so. Maybe have a look at the code of the calendar fetcher and the node helper where it is being called. However, IMHO you should first get your module working as it is. This is a suggestion for a future extension.

      posted in Development
      P
      pinsdorf
    • RE: Reverse Lookup MMM-FRITZ-Box-Callmonitor - help needed

      Hi @AxLed, great to see your progress!

      There are a few remarks on testing that come to mind:

      • I personally like to develop the module on my Windows PC using VisualStudio Code and additional tooling from the Internet as I need it. For this you have to install the MagicMirror on your PC. @Mykle1 has a nice walkthrough document for doing so.
      • MM has a development mode. Start MM (with your to be tested module) with the command npm start dev. This starts a browser UI for MM and in addition shows you the loaded HTML, CSS, source code, etc. In the browser’s source window you can set breakpoints and once they get hit, the program execution pauses and you have time to inspect variables. Please note that you don’t have to stop and start MM all the time with the command above. Just change source code in your programming editor, save it, and reload the MM browser (F5). This works both on Raspberry Pi and Windows PC.
      • If you want to test part of your code in isolation, then you can simply write a small helper program debug.js which calls your test subject’s methods the way you need it. You find this approach in the debug.js of calendar module to test the calendar fetcher component. In this case you do not start MM, but just execute your helper program with node debug.js.
      • You can write a real (automated) test suite, but this may go a little beyond your current task. A test suite is helpful when you do test driven development and/or when you want to guarantee that a future change does not break expected behaviour.
      posted in Development
      P
      pinsdorf
    • RE: Google calendar refresh rate

      Well, if you have created your config.js from the config.js.sample then you should already have a configuration sequence like below.

      modules: [
      ...
      {
          module: "clock",
          position: "top_left"
      },
      {
          module: "calendar",
          header: "US Holidays",
          position: "top_left",
          config: {
              calendars: [ {
      	    symbol: "calendar-check-o ",
                  url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
              } ]
          }
      },
      ...
      ]
      

      You have to put the fetchInterval setting into the config setting section of the calendar module. The result would look like this (just typing the calendar module’s part for simplicity):

      {
          module: "calendar",
          header: "US Holidays",
          position: "top_left",
          config: {
              fetchInterval: 1000 * 60 * 1,
              calendars: [ {
      	    symbol: "calendar-check-o ",
                  url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
              } ]
          }
      },
      

      The value 60 * 1000 * 1 retrieves the calendar from the source (see parameter url) every minute. Please note that the interval time value is given in milliseconds according to the documentation. When you pick a value make sure that your fetching is not too aggressiv. Too frequent syncs take bandwidth on your network, increases CPU load on Raspberry Pi, and there might be limitation enforced by the calendar provider.

      posted in Troubleshooting
      P
      pinsdorf
    • 1
    • 2
    • 3
    • 4
    • 5
    • 2 / 5