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,165
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: RPi5 running hot

      @mvrlogins said:

      The EmbendURL modules only display on demand on a seperate page

      what do you mean by separate page?
      MagicMirror does not have pages, it has logical groupings of content, some shown together, others hidden (this is MMM-pages, MMM-Carousel, MMM-ModulesGroupsRotation, MMM-ProfileSwitcher, etc)
      so even if not shown, some content could still be generated (Embed/iFrame) , they don’t know they are hidden

      if you run ps -ef you can see the commandline used to launch each process.

      you say you have a 1 gig pi5, but mem reports as 2gig.

      but you are over physical, and swapping. which takes cycles.

      I would suggest, disabling module at a time
      add

      disabled:true, 
      

      after the module:name… line

      and rerun to see what the effect is. what are the embed modules showing? active content, graphs, images??

      posted in Hardware
      S
      sdetweil
    • RE: RPi5 running hot

      @mvrlogins if you stop MagicMirror what is the temp?

      posted in Hardware
      S
      sdetweil
    • RE: Calendar CustomEvents

      @daportelli I’m not sure of the effect, but the keyword is treated as a regular expression. I don’t know if single quotes make a difference

      Also don’t know if js regex works the same, from the code

      IMG_5110.png

      posted in Troubleshooting
      S
      sdetweil
    • RE: Updating RP4 and MagicMirror

      @BravoOscar

      Yes, buster is too old.

      use my backup/restore scripts. You can save the backup to GitHub, or copy the folder off the someplace else.

      https://github.com/sdetweil/MagicMirror-backup-restore

      It’s small, only text files,

      Use a new sd card for the new OS. <————-
      Use my script to install MagicMirror,

      https://github.com/sdetweil/MagicMirror_scripts
      (You could have used the upgrade script if not for buster)

      then use the restore to
      Reinstall the modules and config/custom.css and any files created by modules

      posted in General Discussion
      S
      sdetweil
    • RE: Duplicate Results Displayed With 2 Instances of MMM-pihole-stats in Config File

      the getScripts() function would be used to load JS libs you would manually put a script tag in the head section of the index.html to be able to call.

      the getTemplates() is to provide the names of the template (njk) files that will render the html for the module content… the getTemplateData() function returns the data object the template file will access

      getDom() returns the complete Dom object of the content to be published for this module at this time. you can do some tricks to reduce content flash by not replacing everything.
      save the wrapper value and update not replace content inside it.

      posted in Troubleshooting
      S
      sdetweil
    • RE: Voice control

      @videogame95 always make backups

      You can use my MagicMirror-backup-restore scripts
      https://github.com/sdetweil/MagicMirror-backup-restore

      I have also heard of Mycroft. , have no info
      looking for mycroft the initial project has been ended.
      others have taken over for the future…
      one would have to build an interface(module) to MagicMirror from its implementations

      posted in Upcoming Features
      S
      sdetweil
    • RE: Voice control

      @videogame95 I spent a few hours last winter trying to boot sd card on my pi5. Then realized it had nvme drive… Doah!

      posted in Upcoming Features
      S
      sdetweil
    • RE: CustomText change contents with notification?

      @snerk4000 understood. I only mention that cause once an hour is hard to test

      Trying to give you other ways to test and verify

      posted in Troubleshooting
      S
      sdetweil
    • RE: CustomText change contents with notification?

      @snerk4000 and you have the schedule set to fire at 33 or 34 minutes after the hour

      Only once every hour for each, right?

      If you install MMM-Notifications you should able to see it.

      The payload looks ok. Doesn’t need the type: only the values the receiving module would accept/need

      You could try my MMM-CurlToNotification module to test the notification without schedule
      https://github.com/sdetweil/MMM-CurlToNotification

      posted in Troubleshooting
      S
      sdetweil
    • RE: Duplicate Results Displayed With 2 Instances of MMM-pihole-stats in Config File

      @butchkemper ok, the module development doc is here

      https://docs.magicmirror.builders/module-development/introduction.html

      the doc says module, but I call the JS in the browser modulename,js
      cause the NAME MUST match the ‘module name’ as used in config.js module:

      the note I made above comes from this comment in the modules dev doc

      Note 1: When a node helper sends a notification, all modules of that module type receive the same notifications.
      

      socketNotifications are ONLY between modulename.js and the node_helper.js in this module package. and the functions use the same name on both sides
      sendSocketNotfication and socketNotificationReceived

      a typical way to deal with this is for the modulename.js to provide the this.identifier value as part of every request to the node_helper (sendSocketNotification), and for the node_helper to send that value back on each response, (sendSocketNotification)

      and THEN the modulename.js checks to see if the response value matches its this.identifier… (in the socketNotificationReceived function) if NOT then the response is for some other instance
      these 3 steps are missing from the pihole-stats module components

      if you look at my sample module while reading the doc, you can see each piece
      https://github.com/sdetweil/SampleModule (it does NOT use the this.identifier)

      and there is a little flow info missing

      the node_helper.js in a module folder gets loaded at server side startup
      then the MagicMirror index.html gets loaded in the browser
      MagicMirror reads the config.js and loads each modules modulename.js into the browser as a script element, then calls the loaded/init/getScripts/getTemplates/getTranslations/start methods, and then finally the getDom or getTemplateData functions…
      once the content is loaded into the browser DOM, then a notification is sent
      MODULE_DOM_CREATED
      that means code could query and manipulate content with dom methods

      later when the modulename.js determines that NEW content should be displayed, it calls this.updateDom() and then MagicMirror will call back at getDom or getTemplate data, and after updating the internal DOM , it will signal via the MODULE_DOM_UPDATED notification

      modules should be good citizens, and stop updating after suspend() and resume updating after resume()

      if you open the browsr developers window, ctrl-shift-i, and select the elements tab, you can see the html structure of index.html filled out with the module info.
      scripts added to the head block and content added to the body block
      and if you use something like the MMM-pages module, you can watch the css effects as content is hidden and shown

      and you can use the elements tab to discover and experiment with different css styles on seleted elements to help create custom.css entries…
      see the second link in my signature below for a post on that info

      posted in Troubleshooting
      S
      sdetweil
    • RE: Duplicate Results Displayed With 2 Instances of MMM-pihole-stats in Config File

      @butchkemper do you mean modules? or the base/core?

      I’m not aware of anything that describes it if you don’t know how a browser works, or what a web page looks like in HTML.

      posted in Troubleshooting
      S
      sdetweil
    • RE: Voice control

      @videogame95 currently there is no one developing a new voice module.

      posted in Upcoming Features
      S
      sdetweil
    • RE: Duplicate Results Displayed With 2 Instances of MMM-pihole-stats in Config File

      @butchkemper this module doesn’t provide support for multiple instances.

      The system design of the node_helper sends a broadcast to ALL instances at once on every message sent.

      The message needs to have some identifier the instance can check to see if the message is intended for it or not.

      The current code does not provide that info

      posted in Troubleshooting
      S
      sdetweil
    • RE: Voice control

      @videogame95 alexaVoice control depended on a fake electric outlet from Wemo. Belken bought Wemo years ago and just recently the Alexa plugin for this capability was removed because it was using old Alexa interfaces.

      Mmm-pages only shows or hides modules, it doesn’t have any info about the module requirements. You have to read each module documentation, their README.md file,

      posted in Upcoming Features
      S
      sdetweil
    • RE: Issue with calender

      @darlacollado calendarExt3 gets its events from the default calendar module

      Yes, for skylight you will have to adjust css for everything
      All changes go into custom.css to override those specified by MagicMirror and modules.

      Remember that modules are see thru to view the background

      posted in General Discussion
      S
      sdetweil
    • RE: PIR / MQTT - Presence sensor(s) revived

      @rkorell you could set a preinstall script in
      package.json to erase the lock file

      posted in System
      S
      sdetweil
    • RE: Calendar module to show day name for all day entries

      FulldayFormat is defined just below that

      posted in Troubleshooting
      S
      sdetweil
    • RE: Calendar module to show day name for all day entries

      @Richard238 there is a date formatting code for both full day and not

      See the doc

      IMG_5097.png

      posted in Troubleshooting
      S
      sdetweil
    • 1
    • 2
    • 7
    • 8
    • 9
    • 10
    • 11
    • 1058
    • 1059
    • 9 / 1059