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
    Offline
    • Profile
    • Following 0
    • Followers 108
    • Topics 92
    • Posts 21,151
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Black screen after MM v2.4.0 update.

      @shane1234 if u have the PIR module loaded, and do ctrl-shift-i (lower case letter i), it will open the debug env, and then select the console tab… do you see any errors?

      also, if u start from a terminal window, alt-spacebar, n will minimze the mirror screen so you can see the terminal window node_helper outputs… anything there?

      usually a module.js error kills with MM screen…

      posted in Troubleshooting
      S
      sdetweil
    • RE: config file issue

      @oj96 said in config file issue:

      accessToken: ‘xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’
      lists: [ “inbox”],
      interval: 60
      fade: true
      }
      },
      ]
      modules: [

      well, a bunch of problems…

      1 you have the wrong single and double quotes here… do NOT use a word processing editor… only a text editor… (nano or gedit or vi)…
      2. missing comma after accesstoken line and interval line

      and u have two modules: [ blocks…

      quick way to test your config for syntax… copy/paste it all to jslint.com
      check long lines, single quotes, and whitespace mess at the bottom, then press jslint

      then copy/paste it back to the config.js file.

      posted in Troubleshooting
      S
      sdetweil
    • RE: Newbie to everything - Error in module and cant work out why!

      @erycken said in Newbie to everything - Error in module and cant work out why!:

      loader.js:182 Load script: modules/MMM-MyTraktSeries//MMM-MyTraktSeries.js
      module.js:477 Module registered: MMM-MyTraktSeries
      loader.js:152 Bootstrapping module: MMM-MyTraktSeries
      loader.js:237 File already loaded: moment.js
      loader.js:157 Scripts loaded for: MMM-MyTraktSeries
      loader.js:197 Load stylesheet: modules/MMM-MyTraktSeries/MMM-MyTraktSeries.css
      loader.js:159 Styles loaded for: MMM-MyTraktSeries
      translator.js:170 MMM-MyTraktSeries - Load translation fallback: translations/en.json
      loader.js:161 Translations loaded for: MMM-MyTraktSeries
      …
      MMM-MyTraktSeries.js:22 Starting module: MMM-MyTraktSeries
      main.js:422 All modules started!
      …
      module.js:156 MMM-MyTraktSeries received a system notification: ALL_MODULES_STARTED
      …
      module.js:154 calendar received a module notification: CURRENTWEATHER_DATA from sender: currentweather

      so, from the log, your module is loaded and running…

      so, what do you do to present info? how does your module respond to the getDom() method call?
      that is how it provides data to be displayed…

      posted in Troubleshooting
      S
      sdetweil
    • RE: Newbie to everything - Error in module and cant work out why!

      can u scroll back up in the debug log, to the top…
      and also

      minimize the mirror screen, alt-spacebar, n
      to be able to see the console window

      i just installed 2.4.1 on my new pi… and its working fine…

      posted in Troubleshooting
      S
      sdetweil
    • RE: localhost:8080 shows MagicMirror, but Electron just shows a blank screen

      did u just download MM again to do the install? there was an update saturday night which included a change to fix this black screen problem

      posted in Troubleshooting
      S
      sdetweil
    • RE: Newbie to everything - Error in module and cant work out why!

      @erycken bummer, u need keyboard access to the MM screen to do the ctrl-shift-i…

      you could restart the mm in dev mode to do the same thing, but u will need keyboard access to select the console tab

      posted in Troubleshooting
      S
      sdetweil
    • RE: Newbie to everything - Error in module and cant work out why!

      @erycken press ctrl-shift-i (lower case letter i) to open the debug console and select the console tab, you may have to scroll back to see if the module reported an error here

      posted in Troubleshooting
      S
      sdetweil
    • RE: [NEWBIE] Change In Clock Module Is giving error in config file

      @postremalone no… the timezone is based ont he javascript moment…

      see here, you can use any/all of each line… yours I think could be
      “Indian/Maldives|MMT”,
      https://github.com/moment/moment-timezone/blob/develop/data/packed/latest.json

      posted in Troubleshooting
      S
      sdetweil
    • MMM-ImagesPhotos hide black screen between images

      I am building a digital photo frame, large (cheaper that buying one). anyhow, using a linked folder to my linux box with a samba server…

      all is good, except, between images there is a big black screen… is there a way (with the html approach) to hide the image transition?

      I know in one of my modules, I had to write code to wait for the image load completed before showing the image, but I am writing directly to electron apis

      my config

      {
      	module: "MMM-ImagesPhotos",
      	position: "middle_center",
      	config: {
      		opacity: 0.9,
      		animationSpeed: 500,
      		updateInterval: 20000,
      	}
      }
      
      posted in Troubleshooting
      S
      sdetweil
    • RE: Kalliope assistant + MM

      @sispheor well, as a new MM user, obvious is not so…

      posted in Fun & Games
      S
      sdetweil
    • RE: Kalliope assistant + MM

      i have 5 lines of console.log on my MMM-kalliope.js

      posted in Fun & Games
      S
      sdetweil
    • RE: Kalliope assistant + MM

      @dmwilsonkc edit the MM/modules/MMM-kalliope/MMM-kalliope.js and change all console. to Log.

      console.log is ONLY allowed in the node_helper.js and Log.log is ONLY allowed in the module.js

      posted in Fun & Games
      S
      sdetweil
    • RE: Kalliope assistant + MM

      @sispheor trying to help, I installed the module on my mirror… but… curl notifications don’t work…

      is there an install step missing? or a package.json that defines the install process for the dependencies?

      cut paste from the module readme…

      ~/MagicMirror/modules$ curl -H "Content-Type: application/json" -X POST -d '{"notification":"KALLIOPE", "payload": "my message"}' http://localhost:8080/kalliope
      curl: (7) Failed to connect to localhost port 8080: Connection refused
      

      netstat shows nothing listening on 8080

      so, my mirror is NOT on 8080, but 8086, due to other components on the normal MM ports…

      you should update the instructions to say use the MM port on the curl…

      now… I got the notification, and see the debug log (ctrl-shft-i) say

      MMM-kalliope received a socket notification: KALLIOPE Payload: my message
      

      and the content shows for the configured amount of time (8 seconds per the above config settings)

      posted in Fun & Games
      S
      sdetweil
    • RE: When to turn mirror on and off?

      fun challenge… sorta need two sensors… one outside to detect coming in, and one inside to detect going out… that one inside needs a fast response time, as u need the info up long enough to be useful…

      I have my mirror using motion and wake up all the time on any motion… but have it on short sleep time (2 mins), so it goes to sleep fast… pi/sbc is still running, so at most you are saving a small amount of power for the monitor.

      posted in General Discussion
      S
      sdetweil
    • RE: [NEWBIE] Change In Clock Module Is giving error in config file

      @postremalone ok, so you got rid of the config.js error, and the mirror is working, except for weather?

      looking at the config.js screen shot there is no locationID value (last line) … got to have one

      posted in Troubleshooting
      S
      sdetweil
    • RE: blank screen?

      @zdenek sounds like something else (some other application or process) is listening on port 8080

      posted in Troubleshooting
      S
      sdetweil
    • RE: run Linux command from a mm2 module

      the two parts of a module talk to each other thru socket notification events…

      the node_helper can interact with the system ,but not the dom, and the module (js) interacts with the dom and not the system…

      the two sides would use the sendSocketNotification(event_id, buffer) method…

      each would have a method called socketNotificationReceived(event_id, buffer) that will be called when the event arrives…

      the buffer can be any kind of data. formatted or not.

      to open the socket the first time, the module.js MUST be the first side to sendSocketNotification().

      typically the module sends the config info to the node_helper when its starts up.

      this is another event notification, which is called notificationReceived(event, buffer, sender)
      there are a a few builtin events, I use the ‘ALL_MODULES_STARTED’ event to send my module config to my helper and open the socket.
      see the doc here for the additional specifics
      https://github.com/MichMich/MagicMirror/tree/master/modules

      the event id strings for socketnotification are completely up to you… the MM system does not send socket notifications. it DOES send notifications (notice no ‘socket’) to the notificationReceived() method

      but summary

      • create both files (per the doc)

      • when module receives the ‘ALL_MODULES_STARTED’ event, send a socket notification from the module to the helper to open the communications channel

      • when the node_helper gets new data, it sends a socket notification (will ONLY be to the module(js)) with the data

      • the module(js) uses the data to update the dom

      • if the module(js) decides when there should be new data, then the module sends a socket notification to the helper, and the helper responds with a socket notification with the new data (if any).

      posted in Development
      S
      sdetweil
    • RE: [NEWBIE] Change In Clock Module Is giving error in config file

      you can also use https://www.jslint.com/
      to check the syntax of the config file…

      copy/paste it in and at the bottom check boxes for
      long lines
      single quotes
      whitepsace mess

      the press jslint

      u may have to remove the last ‘,’ (comma), before ]

      posted in Troubleshooting
      S
      sdetweil
    • RE: [NEWBIE] Change In Clock Module Is giving error in config file

      @postremalone said in [NEWBIE] Change In Clock Module Is giving error in config file:

      {
      module: “clock”,
      position: “top_left”,
      config: {
      timezone: ‘Etc/GMT+5.30’
      }
      }

      is that the LAST module in the list, or ???

      maybe u need a comma after the last }

      also, watch out on single quotes… sometimes you get the MS WORD format of the quote, which is NOT the right one…

      change those to double quotes

      posted in Troubleshooting
      S
      sdetweil
    • RE: [NEWBIE] Change In Clock Module Is giving error in config file

      can u show the error?

      posted in Troubleshooting
      S
      sdetweil
    • 1 / 1