MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. sdetweil
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    S
    Do not disturb
    • Profile
    • Following 0
    • Followers 110
    • Topics 92
    • Posts 21,302
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: The MagicMirror build gift for my GF

      i think both frequently used apis (darksky and weatherunderground) have both gone to pay for use models…

      I am not aware of another free api

      posted in Show your Mirror
      S
      sdetweil
    • RE: The MagicMirror build gift for my GF

      if you got an api key before IBM closed free access, the api key still works (for how long I don’t know)… mine still does

      posted in Show your Mirror
      S
      sdetweil
    • MMM-SleepWake using external motion detection source

      Description

      Enable MagicMirror sleep from external (camera) sources

      If you are running the MM on a non PI device, or want to control sleep/wake without having to wire up another device, this module will take external info and signal MM to sleep or wake up.

      I use a Webcam camera for the motion detection, driven by the github Motion project.
      That project allows for a script to be run when motion starts and ends. I provide a script that
      creates a file for both events, and the module detects those files.

      the module supports sleep and wake 3 different ways… On PI using the tvservice command, or the exec dpms command if not using HDMI, or hiding all modules if using an energystar monitor (like my tv)

      I have submitted changes to MMM-voice and HelloLucy to allow our modules to know about the others processing… so voice Go To Sleep and motion wakeup work… if using the Hide method, modules already hidden at sleep will remain hidden on wakeup.

      Download:

      [card:sdetweil/MMM-SleepWake]


      Version 1.0

      posted in System
      S
      sdetweil
    • RE: How can I add this script text to my screen

      @teitlebot you didn’t post the script

      posted in General Discussion
      S
      sdetweil
    • RE: Module suspend not being called

      this fix is now added to the develop branch, and will be merged to master at some time.
      Thanks Mitch

      posted in Development
      S
      sdetweil
    • RE: MagicMirror stays black, but loading from another browser (Windows, Android) works

      @andurii npm has a remove operation

      npm remove electron
      npm install electron@1.7.9

      posted in Troubleshooting
      S
      sdetweil
    • RE: MagicMirror stays black, but loading from another browser (Windows, Android) works

      I had to uninstall electron and install version 1.7.9 to get rid of the blank screen

      posted in Troubleshooting
      S
      sdetweil
    • RE: Module suspend not being called

      ok, this is a bug/limitation… the js/main.js.hideModule() method doesn’t call the callback if there is no dom content…, and there is no dom content if no module position is defined… (per UpdateDom not working)

      my module has no dom content, but I need the suspend notification

      i have opened issue 1308

      posted in Development
      S
      sdetweil
    • RE: Rasbian Stretch screensaver disable

      this Debian Stretch: deactivate screen blanking

      says

      add those lines to

      /home/pi/.config/lxsession/LXDE-pi/autostart 
      

      note that is a file that is USER based…

      posted in Troubleshooting
      S
      sdetweil
    • RE: MMM-voice wont register commands

      @strawberry-3-141 said in MMM-voice wont register commands:

      @sdetweil the original idea was that every supported module has it’s on mode, so modules can have the same commands without conflicts. And then you enter the mode and you can use commands of that module as long as you dont change the mode.

      To change the mode you need to say the name of the mode as the first thing in your sentence, only the keyword can be before if necessery. Otherwise it will not detect a change mode

      ok, so mode is really ‘context’ so you could speak to a single module

      posted in Troubleshooting
      S
      sdetweil
    • Module suspend not being called

      I have two modules, which are executing fine…

      I want to add support for suspend and resume, to be used with the Hello-Lucy extension to hide modules.

      I added the functions to my module.js, but suspend is never called…

      the hello-lucy mod to MMM-Voice (module.js) does

                  MM.getModules().enumerate((module) => {
                      module.hide(1000);
      
      

      so my modules should be found and notified…

      config for my modules is

                      {
                                      module: "ImageScheduler",
                      },
                      {
                                      module: "ImageService",
                      },
      

      resume is working… suspend is not…

      my suspend and resume functions

      				suspend: function(){
      					Log.log("image service in suspend");
      					self.sendSocketNotification("suspend",null)
      				},
      
      				resume: function(){
      					Log.log("image service in resume");
      					self.sendSocketNotification("resume",null)
      				},
      
      posted in Development
      S
      sdetweil
    • RE: MMM-voice

      ok, got it… voice detection is sensitive…

      posted in Utilities
      S
      sdetweil
    • RE: MMM-voice wont register commands

      @strawberry-3-141 said in MMM-voice wont register commands:

      @sdetweil the base module hides all modules. the mode has voice and those ones https://github.com/fewieden/MMM-voice/wiki/Supported-Modules

      not sure what rules apply for modifications of my module

      sorry, that description of mode doesn’t help… what does MODE mean? that you can supply words via voice or text strings, or ??? but its not used?

      ok, on my installation, ‘hide modules’ doesn’t do anything…

      posted in Troubleshooting
      S
      sdetweil
    • RE: MMM-voice wont register commands

      @strawberry-3-141 said in MMM-voice wont register commands:

      @shazglass as the author of MMM-voice I can tell you, that my module doesn’t support a command called hide clock at all. You are probably using hello-lucy, at least that’s a mod I’m aware of which enhances the commands. You can see the command list here https://github.com/fewieden/MMM-voice#usage

      then does ‘hide modules’ only hide the ‘supported’ modules list? vs ‘all/any’?

      also, could you add some text to the description of ‘mode’ … its unclear to me the value of this , and the possible choices…

      posted in Troubleshooting
      S
      sdetweil
    • RE: MMM-voice

      i have that, but the text ‘recognized’ is not what i said.

      if I speak slowly, i can get ‘magic mirror’
      then wake up is ‘wake go’ or ‘wake all’,

      hide calendar is ‘hide who’
      open help is ‘open go’

      the smart-mirror project also uses ‘go to sleep’ and ‘wakeup’

      ‘hide newsfeed’ is ‘hide to show the’, ‘hide is the’

      none of the commands, when recognized, do anything…

      hide modules

      go to sleep (not on PI so the tvservice doesn’t exist), but no error is logged

      posted in Utilities
      S
      sdetweil
    • RE: MMM-voice

      i am running MMM-voice on an ODroid Xu4, which is very fast.

      I also use another voice enabled smart mirror on this same device.

      with a Logitech webcam as the mic.

      MMM-voice gets the hotword correct every time, but almost none of the following words.

      the same hardware setup works correctly with arecord as the wav source, but uses google speech detection for everything after the hotword.

      it appears the system is using the default language model (lm) and dictation (dic) files.

      anyone have a suggestion on debugging this?

      posted in Utilities
      S
      sdetweil
    • RE: write access to git repository

      YOU cannot push to the core repo… you can create a fork (under YOUR github userid), and then clone/push to THAT repo…

      you can then propose changes to the master repo, by submitting a pull request, for your branch back to the master (and some branch, usually dev) … and the master owner can accept it , or not… and then merge it with the master branch whenever…

      posted in Troubleshooting
      S
      sdetweil
    • how to detect main window size via code

      in my module, i need to know the dimensions of the MM main window.

      in another mirror project I added an on.resize handler to the main window code, and had it broadcast a window size change to my plugin/module…

      how can I do that in MM?

      posted in Development
      S
      sdetweil
    • RE: what can i do in a module, porting from another mirror project

      @idoodler thanks… i changed where the data is used and moved the routines to the node_helper… all good…

      posted in Development
      S
      sdetweil
    • RE: what can i do in a module, porting from another mirror project

      i have done some work over the weekend to get my two modules and their helpers working to do the basics…

      database access is working, rest api server is working. (scheduler helper)
      browser window creation and destruction is working, and image loading (handler helper)

      one thing of note, a json object transports from module to helper and back. BUT any data added to the object in the helper (like a browserwindow object), does NOT transport (becomes undefined on receipt.)

      posted in Development
      S
      sdetweil
    • 1
    • 2
    • 1062
    • 1063
    • 1064
    • 1065
    • 1066
    • 1064 / 1066