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

    Posts

    Recent Best Controversial
    • RE: Calendar module fetchInterval

      I’m still interested in this. Does anyone know?

      As far as I can tell, no explicit restriction to the fetchInterval is implemented in this module. Assuming my observation is correct, this would imply that the actual max. value for fetchInterval is 2147483647 (~ 24.8 days) according to stackoverflow Why does setTimeout() “break” for large millisecond delay values?.

      posted in Development
      A
      Anhalter42
    • RE: MMM-Traffic does not work after latest update ??

      @ironman_DK said in MMM-Traffic does not work after latest update ??:

      how can I see where the error is in MMMTraffic.js is

      First of all, I’m glad you was able to solve the problem yourself :thumbsup:

      For the future, the line in which the error occurs is printed to the console. “MMM-Traffic.js:36” means you have to check the line 36 in file MMM-Traffic.js.

      posted in Troubleshooting
      A
      Anhalter42
    • RE: MMM-Traffic does not work after latest update ??

      I guess some error occurs within the module. So, it might be helpful to start the mirror with console (npm start dev) and post the related, occurring errors (all errors should be related else you got more problems :D) here.

      posted in Troubleshooting
      A
      Anhalter42
    • RE: resume()

      No intention to complain here, so no reason to argue about that.

      IMO, the two most obvious solutions are

      1. changing the behaviour, i.e. implement a check whether the module was visible before the call
      2. changing the description in the documentation so that it matches the behaviour

      The question is, how do you solve something like this here? Who decides which solution should be preferred and how do I trigger a fix (I dont want to dive into the main core code myself). Do you usually open an issue on github in such cases? Also, the author of this peace of code may have relevant information, but (as usual in open-source projects) its nearly impossible to find out who to contact…

      posted in Development
      A
      Anhalter42
    • resume()

      In the documentation it is stated: When a module will be shown after it was previously hidden (using the module.show() method), the resume() method will be called.

      For me “after it was previously hidden” means, that resume() should only get called when the module was hidden/not visible before and now changes its status to visible. I’ve tried this and it looks like the resume() method gets called even when the module was visible before. I’ve seen this behaviour while using the MMM-ProfileSwitcher. Switching between profiles that contain the same module (among others) triggers resume() on this module.

      (After quickly looking through the code, I’m pretty sure MMM-ProfileSwitcher uses standard .show() and .hide(), so it should be generalizable. If necessary, I can try to make a small minimal example.)

      posted in Development
      A
      Anhalter42
    • RE: Calendar no entries

      thanks both of you

      no bug, just me doing typos. Works like a charm :)
      solved

      posted in Troubleshooting
      A
      Anhalter42
    • Calendar no entries

      I’ve tried to include (local) holidays into the default caledar module. This is the file I want to use: www.ifeiertage.de/he-sk.ics.
      Unfortunately, it shows no entries, without any error message (in the “npm start dev” console). Using the example calendar http://www.calendarlabs.com/templates/ical/US-Holidays.ics or some random calendar like here works fine!

      Is there a reason why the calendar I want to use doesn’t work, while the others do? Or is this a bug?

      posted in Troubleshooting
      A
      Anhalter42
    • Calendar module fetchInterval

      Is the fetchInterval property of the standard calendar module really restricted to Possible values: 1000 - 86400000 like specified in the documentation? If so, two questions:

      1. Where do I find the code restricting it? I couldn’t find it while reading through the code.
      2. Why is it restricted? Is there any reason to limit the update interval at all? (especially, why giving an upper bound? The lower bound is somewhat reasonable…)

      Thx.

      posted in Development
      A
      Anhalter42
    • RE: Calendar Broadcast

      If you are already receiving CALENDAR_EVENTS notifications, you should be able to iterate over the payload of the notification and access the desired properties, because the documentation says “The event objects are stored in an array and contain the following fields: title, startDate, endDate, fullDayEvent, location and geo.”

      So, you could put the names of the persons as title and access them via the title field while iterating through the array. Then, you can show the picture of that person or whatever you want to do.

      If this doesn’t help, I suggest to rephrase your question. What have you already achieved in this context? What did you try that failed at the end (error messages)?

      posted in Development
      A
      Anhalter42
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 6 / 8