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

Posts

Recent Best Controversial
  • RE: Mouse arrow doesn't hide after MagicMirror is loaded

    Hi,

    From the doc here:

    https://github.com/MichMich/MagicMirror/wiki/Configuring-the-Raspberry-Pi

    Autohiding the Mouse Pointer
    Install unclutter:
    
    sudo apt-get install unclutter
    You can create an .xinitrc script to run the tool.
    See https://wiki.archlinux.org/index.php/Unclutter
    
    But a simpler option is to add a line to the end of the file:
    
    $ nano ~/.config/lxsession/LXDE-pi/autostart
    ...
    @unclutter -display :0 -idle 3 -root -noevents
    This will add a 3 second delay, before the pointer disappears from the screen when not using it.
    
    

    Hope this helps

    Ejay

    posted in Troubleshooting
    E
    ejay-ibm
    Feb 21, 2019, 11:30 AM
  • RE: Total rookie, got it "running" but need help

    @motdog said in Total rookie, got it "running" but need help:

    timeFormat: 12

    You are missing a comma at line 25

    it should be

    timeFormat: 12,
    

    Ejay

    posted in Troubleshooting
    E
    ejay-ibm
    Feb 21, 2019, 7:48 AM
  • RE: installation problem MMM-Hotword & MMM-AssistantMk2

    @somya HI,

    You should give a try with the following command .

    npm cache clean --force
    

    Then I would delete the MMM-Asssitantmk2 and MMM-Hotword folders from the modules directory and give a new try.

    Ejay

    posted in Utilities
    E
    ejay-ibm
    Feb 21, 2019, 7:21 AM
  • RE: Considering taking donations to support the MagicMirror project. Interested in your thoughts!

    @MichMich Done, Your work definitely worth it !
    Thanks for your work and given time.

    posted in MagicMirror
    E
    ejay-ibm
    Feb 20, 2019, 9:44 PM
  • Control your Mirror Volume with Voice ( MMM-AssistantMk2 )

    Hi Members,

    I want to share my experience here using MMM-AssistantMk2.
    My objective was to be able to control my Mirror with voice command eg: “Set volume to 5” to have it at 50%

    Looking at the MMM-Assistantmk2.js code I saw the transcription hook and decided to use that.
    With the help of @Sean who has developed this module, I have implemented some additional lines in the mentioned file. ( all coding credit goes to Sean ) Else the same working code would have been ugly if it was by me :)

    First in the section: transcription hook
    add

    "VOL_HOOK": {
      pattern: "set volume to ([0-9]+)",
      command: "VOL_COMMAND"
    },
    

    then lower in section command

    "VOL_COMMAND": {
      shellExec: {
        exec: "amixer sset -M 'PCM'",
        options: (params, key) => {
          return (params[1] * 10) + "%" 
        }
      },
    } 
    

    This allows me now to say “Jarvis” … “set volume to 5” then my volume will be set to 50%.

    Note that you will need to pull the last update from git to get this works as we found a bug in the code with the ‘param’ while I tried to implement that. Sean fixed that very quickly and it’s now available.

    Hope that will be useful for the community and thanks again to Sean for this great module.

    You can find the full discussion on this topic here https://github.com/eouia/MMM-AssistantMk2/issues/89

    Ej

    posted in Development
    E
    ejay-ibm
    Feb 19, 2019, 6:31 PM
  • RE: Hide modules when display goes off through PIR (power saving)

    @broberg
    Indeed you don’t save power but when placing the module “on sleep” you stop them for making them network request with API calls .

    posted in Requests
    E
    ejay-ibm
    Feb 16, 2019, 5:50 PM
  • RE: Hide modules when display goes off through PIR (power saving)

    @thedk Hi ,
    I finally manage to find a solution that works quite good.
    I do not deserve the credit for the solutions, only for the implementation as it merges multiple sources.
    First : PIR need a first trigger to work .
    Workaround : Make the HDMI OFF when the mirror start ( so your screen doesn’t stay ON always until someone pass in front of the miror )

    For this Edit :
    in the MMM-PIR-SENSOR folder
    node_helper.js
    around line 139

    this.started = true;
        self.deactivateMonitor();  // add this to turn off monitor at startup . 
    

    Then to deactivate the idle / sleep mode of the modules due to MMM-Assistant

    Still in the node_helper.js modify line 34 like :

    exec(“/usr/bin/vcgencmd display_power 1 && xdotool key ctrl+r”, null); // add here xdotool key ctrl+r

    You need to install xdotool for this. That will allow to simulate the ctrl+r from keybaord that refresh the module therefore bring them back on screen .

    I set in the config.js file the pir module to put the screen off after 15 mins

    “powerSavingDelay”: “900”,

    I applied the same setting in MMM-AssistantMk2.js

    onIdle: {
    timer: 10006015, // if you don’t want to use this feature, just set timer as 0 or command as “”
    command: “HIDEMODULES”

    Summary When I start my mirror the screen is off. The PIR detect my presence and turn it ON .
    After 15 mins the screen goes off and the modules goes in sleep .

    As soon as the user presence is detected again , the screen goes on and modules are refreshed and come back .

    Hope this helps .

    EJ

    posted in Requests
    E
    ejay-ibm
    Feb 16, 2019, 11:45 AM
  • RE: Hide modules when display goes off through PIR (power saving)

    Hi @thedk ,

    I think my post is related to that too.
    https://forum.magicmirror.builders/topic/9792/blank-screen-issue-another-one-again-after-one-hour-or-so/7

    It look like you figured out faster than me the lack of communication of the PIR modules to the other .

    You will see in the post that I have open a git to the PIR dev to ask for some help .

    Hopefully we will find a way to make it .

    I’m not a dev at all but I understand coding .
    I confident that playing with some code for a week or 2 will bring me to what I want.

    If we don’t get consistent answer in the meantime I’ll ( If i’m able to make it) definitly share with the community my findings.

    Cheers

    posted in Requests
    E
    ejay-ibm
    Feb 14, 2019, 9:23 PM
  • RE: Blank screen issue ( another one again ) after one hour or so...

    Me again

    I Would Say that you should mark the post as solved As We have root cause here.
    I have created that git

    https://github.com/paviro/MMM-PIR-Sensor/issues/73
    To get some help from paviro and see if the ondetected function of MK2 assistant could be implemented in the PIR module so they could be kind of sync.

    Thanks to @sdetweil for driving me in the right debug way for finding the root cause of the problem.

    posted in Troubleshooting
    E
    ejay-ibm
    Feb 14, 2019, 7:47 PM
  • RE: Blank screen issue ( another one again ) after one hour or so...

    Ok Great ! That was the issue !
    Placing the timer to 0 prevent the module to be suspended .

    Now I would like to put this back in the code so the modules in suspended mode that is great as indeed I don’t need them update when the screen is Off but i’d like to resume with the onDetected when motion is detected by the PIR module ?

    Is it possible to Sync the Idle and onDetected with the PIR Module ?

    Thanks .

    posted in Troubleshooting
    E
    ejay-ibm
    Feb 14, 2019, 5:56 PM
  • 1 / 1
Enjoying MagicMirror? Please consider a donation!
MagicMirror created by Michael Teeuw.
Forum managed by Sam, technical setup by Karsten.
This forum is using NodeBB as its core | Contributors
Contact | Privacy Policy