MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. mdhenriksen
    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 1
    • Topics 4
    • Posts 53
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Turn monitor on/off with MMM-voice

      @sean Yeah, I’m trying to look into that right now, but without much luck at the moment :D

      posted in Troubleshooting
      M
      mdhenriksen
    • RE: Turn monitor on/off with MMM-voice

      @sean Hey again Sean,

      So here’s the output of xset -q:

      I noticed the following: Server does not have the DPMS Extension :expressionless_face: Figured that’s why it’s not working. So I’m not sure about this whole DPMS thing. Is it an extension I can install or is it something native to a computer, e.g. hardware?

      Keyboard Control:
        auto repeat:  on    key click percent:  0    LED mask:  00000000
        XKB indicators:
          00: Caps Lock:   off    01: Num Lock:    off    02: Scroll Lock: off
          03: Compose:     off    04: Kana:        off    05: Sleep:       off
          06: Suspend:     off    07: Mute:        off    08: Misc:        off
          09: Mail:        off    10: Charging:    off    11: Shift Lock:  off
          12: Group 2:     off    13: Mouse Keys:  off
        auto repeat delay:  500    repeat rate:  33
        auto repeating keys:  00ffffffdffffbbf
                              fadfffefffedffff
                              9fffffffffffffff
                              fff7ffffffffffff
        bell percent:  50    bell pitch:  400    bell duration:  100
      Pointer Control:
        acceleration:  2/1    threshold:  4
      Screen Saver:
        prefer blanking:  yes    allow exposures:  yes
        timeout:  0    cycle:  0
      Colors:
        default colormap:  0x23    BlackPixel:  0x0    WhitePixel:  0xffffff
      Font Path:
        /usr/share/fonts/X11/misc,/usr/share/fonts/X11/Type1,built-ins
      DPMS (Energy Star):
        Server does not have the DPMS Extension
      
      posted in Troubleshooting
      M
      mdhenriksen
    • RE: Turn monitor on/off with MMM-voice

      @sean So you’re saying there might be a setting that allows for the DPMS being turned on and off, right?

      posted in Troubleshooting
      M
      mdhenriksen
    • RE: Turn monitor on/off with MMM-voice

      @sean said in Turn monitor on/off with MMM-voice:

      @mdhenriksen
      Your laptop works with xset dpms force off on a shell? See your energy-saving setting in your environment.

      Hey Sean! I’m on Ubuntu 18.10, so I guess it should work. I’m pretty sure Mykle1 is on Ubuntu 16.04.

      As far as I know there is no energy-saving settings really. Could you elaborate you answer maybe? :D

      posted in Troubleshooting
      M
      mdhenriksen
    • Turn monitor on/off with MMM-voice

      Re: Want to turn off my monitor

      Hey guys! I’ve been reading some old threads and trying to make my monitor turn off and on with a voice command via MMM-voice.

      I’m NOT using a Pi, but a laptop. I’ve tried @Mykle1’s following commands: (from Hello-Lucy - which works)

      exec('xset dpms force off', null);
      exec('xset dpms force on', null);
      

      I’ve implemented the code in the node_helper.js that executes a command when a voice command is detected:

      } else if (/(CUSTOM)/g.test(data)) {
      	    exec('xset dpms force off', null);
                  this.sendSocketNotification('CUSTOM');
      

      The above code is executed when my mirror register the word “custom”.

      this.sendSocketNotification(‘CUSTOM’); is there just so I can see if the command is recognized.

      Problem: As it is right now, I can see that my mirror registers and executes the this.sendSocketNotification(‘CUSTOM’); however the exec(‘xset dpms force off’, null); does nothing. Any ideas?

      Thanks in advance!

      posted in Troubleshooting
      M
      mdhenriksen
    • RE: Default weather module refactoring

      @strawberry-3-141 Amazing! I couldn’t find my home town with openweather, so I had to switch even though I liked the GUI better in the original one! Will check it out tomorrow for sure!

      posted in Upcoming Features
      M
      mdhenriksen
    • RE: Hello-Lucy

      @dazza120 It’s the small things that make the difference :grinning_face_with_smiling_eyes:

      posted in Fun & Games
      M
      mdhenriksen
    • RE: My Magic Mirror, Melbourne Australia

      Nice work! Looks really good!

      posted in Show your Mirror
      M
      mdhenriksen
    • RE: Hello-Lucy

      @dazza120 said in Hello-Lucy:

      @mdhenriksen works a treat but I don’t know how to make a third page. Not sure what I’ll put on it? But I’m sure I’ll find something to install if I figure out how to add more pages it’s stuck on two at the mo 😢

      Hey Dazza!

      It’s pretty easy actually. Now first you should install MMM-page-indicator as well. That makes it easier to see what page you are on.

      Making several pages:

      {
             module: 'MMM-pages',
             config: {
             modules:
                         	[[ "weatherforecast", "newsfeed", "compliments"],
                           	[ "calendar", "compliments", "calendar2"], ["MMM-CalendarWeek"]],
                      	excludes: ["clock", "currentweather", "MMM-page-indicator", "MMM-voice"],
              	}
          		},
      

      The pages are made in an 2D-array, which is basically a line of elements separated by the brackets “[” and “]”.

      Your array starts at the double bracket, “[[” right before “weatherforecast” and ends at the “]]” right after “MMM-CalendarWeek”. Inside the array the pages are separated by one bracket.

      So this is a page: (remember the comma at the end)

      [ "weatherforecast", "newsfeed", "compliments"],         
      

      And this is a page:

      [ "calendar", "compliments", "calendar2"],
      

      And lastly this is a page as well:

      ["MMM-CalendarWeek"]
      

      Remember that the array is zero-based which means that the first page will be number 0. The second will be number 1 and the third will be number 2.

      Hope it helps! :grinning_face_with_smiling_eyes:

      posted in Fun & Games
      M
      mdhenriksen
    • RE: Hello-Lucy

      @mykle1 You’re right, guess I was too fast ;-)

      posted in Fun & Games
      M
      mdhenriksen
    • 1 / 1