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

    Posts

    Recent Best Controversial
    • RE: Multiple instance module. Scope for a noob.

      @birdabirda
      A1:
      Yes, you can. but pay heed to these;

      • Be careful when your modules(instances) access the resource(e.g. HTML Element, sounds, sensors,…_ The competes for the same resources would make trouble.
      • You need to manage the communications with node_helper from your instances. Instances will share the node_helper at same time, so your socketNotfication or resources of node_helper might have to be controlled by the session per instance.

      A2:
      Right. 1:M messaging channel tricks might be needed.

      A3:
      Your module object itself. it has many methods and members. It would be created by MM framework with the definition from your code. Then it would play its role in the MM framework.

      A4:
      All variables in the `Module.register(“YOURMODULE”,{ … }) will be scoped. They will not be shared unless you refer or link them to global/window scope.

      A5:
      You might need instance id as payload member on using socketNotification to catch which instance sends this socketNotification to node_helper. Vice versa, instance id might be also needed when node_helper sends socketNotification, to explicit which instance should be aware. Between module and node_helper unlike among modules, only simple basic data type would be transferrable, so you cannot use callback or ‘complex’ class object to make the communication easy.

      posted in Development
      M
      MMRIZE
    • RE: MMM-CalendarExt2 CSS question. Is there anyway to get daily view to look like week view??

      @wolfieeewolf
      Use this code in your module config, not modifying the source.

      posted in Development
      M
      MMRIZE
    • RE: Google Calendar

      Maybe it could be another reason;

      Confirm whether your calendar is public
      74248334-bb3a-4a43-848d-148929040fd3-image.png
      Unless you check this, your ical URL won’t be accessed. Try your URL in the browser. If it shows 404 error, this might be the reason.

      posted in Troubleshooting
      M
      MMRIZE
    • RE: ReSpeaker 4Mic USB with GA, noise, interference

      @ilgiz
      I’m not sure what it really means "I use this Mic for GoogleAssistant (SDK)," . Do you mean you are building your own GA implementation with that SDK by yourself? with which language?
      Anyway, you need to adjust your AudioInConfig when you implement your GA with SDK.
      The recommended values are;

      • sample_rate_hertz : 16000(recommended)
      • Encoding: LINEAR16(Uncompressed 16-bit signed little-endian samples (Linear PCM)) or FLAC(Free Lossless Audio Codec)
      • Mono sound (no channel)

      So your audio input should be formatted with the above value and your SDK implementation should be configured with those.

      Add the additional flags when you use arecord to get your voice input.

      posted in Troubleshooting
      M
      MMRIZE
    • RE: MMM-Selfieshot: High resolution for selfie

      @hclaus
      I found what’s wrong.
      I might have forgotten to implement that feature really when I built this module 2 years ago. Haha… Sorry.

      At this moment, the module owner is BrianHepler, but I’m not sure he is still managing this module. I made a PR for this and contributed, but Brian’s acceptance is needed.

      Or you can try this repository instead;
      https://github.com/MMRIZE/MMM-Selfieshot

      Or just open node_helper.js and modify around line 86 for width and height by manual. It is an absolutely bad habit to edit source code directly by you, but at least you can test the working.

      I have no good webcam to test it, but you might have a piece of luck.

      posted in Troubleshooting
      M
      MMRIZE
    • RE: MMM-Selfieshot: High resolution for selfie

      @hclaus

      This module is using fswebcam external program to take the photo.
      So you can test your camera and fswebcam by manual like this;

      fswebcam
      fswebcam --resolution 3280x2464
      

      (It might need more options. See http://manpages.ubuntu.com/manpages/bionic/man1/fswebcam.1.html)

      Or you can test through another way.

      (Go to MMM-Selfieshot directory)
      cd node_modules/node-webcam/bin
      node ./node-webcam.js --w 3280 --h 2464 --l ~/picture.jpg 
      

      Check and show me the result.

      posted in Troubleshooting
      M
      MMRIZE
    • RE: MMM-CalendarExt2

      @almightyyoshi
      Each slot may have its characteristic class name like;

      • slot : all slots have slot as its class name.
      • daily, weekly, monthly, week, month, current, upcoming : mode of view
      • period, agenda, weekSlot, cellSlot, timelineSlot… : types of slot.
      • seq_0, seq_1, … : slot sequence in view
      • thisyear, thismonth, thisweek, today : slot relation with today.
      • year_2018, month_12, week_51, day_25, weekday_6, dayofyear_361, … : You can specify slot with this class names.

      So, let’s guess what these class selector in your CSS means; .slot.daily.thismonth.weekday_6. Or .slot.month_12.day_25.
      After specifying the slot, you can control its header/content/footer or events inside.

      .slot.daily.month_12.day_25 .slotContent {
        background-image: url( ... );
      }
      

      https://github.com/MMM-CalendarExt2/MMM-CalendarExt2/blob/master/docs/Styling.md

      The non-gregorian calendar is not supported.

      posted in Utilities
      M
      MMRIZE
    • RE: MMM-CalDAV

      @gregorywest said in MMM-CalDAV:

      @sdetweil WOW its working!!! Thanks for your patience. Looking good. Something just occured to me. Can I do this with multiple users/calendars? The plan is for 5 calendars to be on the screen, they are all coming from the same SoGo server.

      What you want is;

      • 5 CalDAV calendars from one account (It has more than 5 calendars) as one iCal Calendar : Just use calendarFilter
      • 5 CalDAV calendaras from one account as 5 iCal Calendars: Use this module 5 times with calendarFilter
      • 5 CalDAV calendars from several accounts as one summarized iCal Calendar : Sorry, impossible with this module.
      • 5 CalDav calendars from several accounts as 5 iCal Calendars : Use method 2.
      posted in Productivity
      M
      MMRIZE
    • RE: MMM-CalDAV

      @sdetweil
      Thanks your kind help. I was absent for days. So I couldn’t support this issue.

      @GregoryWest
      When you want to get several calendars(or accounts), just add this module again in your config.
      And to refresh calendar, wait updateInterval.
      And with rebooting, usually last result will be shown after reboot.(CalDAV parsing is quite slow ). Generally it will take updateInterval after reboot, the change will be displayed.

      posted in Productivity
      M
      MMRIZE
    • RE: MMM-Scenes

      UPDATED

      1.1.0 (2021-11-01)

      • ADDED : MMM-TelegramBot commandable. (Thanks to @doctorfree)
      posted in System
      M
      MMRIZE
    • RE: MMM-CalendarExt2

      @flemmingss
      I’m trying to build a new X3 from the scratch, which will respect default MM’s behaviours, will be independent of legacy/external momentJs or other 3rd parties, will be more modular and lighter than X2 and with a few new features.
      But it needs more days or weeks to release. I wish I have more dedicated time to that work. Sorry.

      posted in Utilities
      M
      MMRIZE
    • RE: MMM-CalendarExt2 not showing on magicmirror

      @sg437
      Seems nothing wrong. What happened during the weeks?
      And for more detail analysis, Backend Log and Frontend Log be needed.

      posted in Troubleshooting
      M
      MMRIZE
    • RE: Best practice for `import` ESM in MM module?

      @sdetweil

      1. Modern browsers can directly import ESM through JS regardless it exists locally or externally. . (Anyway, the above code works really.)
      2. Loading ESM via <script type="module">tag will probably be the one way but It will have a global namespace scope. I’m afraid of the risks of collision among MM modules that might be using the same namespace.
      3. getScripts() doesn’t support script type. So some codes for injecting proper script tag is needed by the developer himself,
      4. To load ESM with MM-module-level scoping, using import() and binding the namespace to the MM module would be possible. however, there will be some pitfalls, import() is an asynchronous function. To prevent referencing unloaded ES modules or to avoid handling of DOM by ES Modules before DOM is created, so some tricks might be needed to confirm everything is ready. (Above my code is that.).
      5. So I’m just seeking another or better way if exists.
      posted in Development
      M
      MMRIZE
    • Best practice for `import` ESM in MM module?

      Hey guys,
      I have a small question about development.

      When you have to import ESM into your module, how you can do that?

      This is my way.

      start: function() {
        this._domCreated = null
        this._modules = {}
        let _imports = []
        let _domReady = new Promise((resolve, reject) => {
          this._domCreated = resolve
        })
        _imports.push(new Promise((resolve, reject) => {
          import('/' + this.file('something.mjs')).then(({ moduleA }) => {
            this._modules.moduleA = moduleA
          })
        }))
      
        Promise.allSettled([..._imports, _domReady]).then((result) => {
          console.log('All ESM modules and DOM are readied. Now I can do anything...')
          this._modules.moduleA.doSomeInitializing()
        })
      
      }
      
      notificationReceived: function(notification, payload, sender) {
        if (notification === 'DOM_OBJECTS_CREATED') {
          this._domCreated()
        }
      }
      

      But I’m not sure this is the best way. Is there any different approach?

      posted in Development
      M
      MMRIZE
    • RE: Contrasting text on a changing background, again

      @majorc said in Contrasting text on a changing background, again:

      @mmrize is there a how2 for MM to get this?

      ? I can’t catch your words. Let me know more details. (Sorry, I’m not a natural-born English user)

      posted in Custom CSS
      M
      MMRIZE
    • RE: [HOW_TO] MagicMirror as Desktop Wallpaper (all platform : updated)

      @lexcyr
      In the Linux environment, some additional options might be needed or modified (I mentioned it in README)
      Anyway, you’ve said;

      so i can’t see my desktop icons anymore

      It means, your MM is not placed on the desktop layer, but normal application layer. (And your transparent setting also doesn’t work)
      I doubt you probably miss these;

      • Your MM might not be 2.17.
      • Or your configuration was wrong.
      posted in Tutorials
      M
      MMRIZE
    • RE: MMM-CalendarExt2 config

      @sarcux
      Well, I’m the original author of the documents and modules. So if docs are not helpful for you, it’s sorry.

      However, hmmm…
      f7095171-d92a-4aaa-83b2-296d6da113c7-image.png

      ...
      slotSubTitleFormat: ' ',
      dateTimeFormat: {
        sameDay: "[Heute] HH:mm",
        nextDay: "[Morgen] HH:mm",
        nextWeek: "dddd HH:mm",
        lastDay: "[Gestern] HH:mm",
        lastWeek: "[Latzt] ddd HH:mm",
        sameElse: "M/D HH:mm"
      },
      ...
      

      I just added this and got the above-captured image. And all are also documented already.
      (You probably need to modify dateFormat also for fullday event)

      posted in Troubleshooting
      M
      MMRIZE
    • RE: MMM-CalendarExt2 config

      @sarcux
      For localization: https://github.com/MMM-CalendarExt2/MMM-CalendarExt2/blob/master/docs/Localization.md

      posted in Troubleshooting
      M
      MMRIZE
    • RE: Desktop working gadgets

      @marcelino The panel has a dedicated control board that has HDMI(for video and sound, yes, that cased-kit includes also stereo speaker set) and micro-USB(for power and touch input)

      posted in Show your Mirror
      M
      MMRIZE
    • RE: Contrasting text on a changing background, again

      @mwm341
      As described also in the link, mix-blend-mode: different is not a cure-all. In many cases, especially with simple high-contrast background, it will work fine. But with a mid-contrast or too complex background image, it will not work as expected.
      9a4d42f0-f359-4289-b811-397852956798-image.png

      posted in Custom CSS
      M
      MMRIZE
    • 1
    • 2
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 44 / 48