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

    Posts

    Recent Best Controversial
    • RE: MMM-Page-Selector: A page switcher that can set positions of modules

      Dear @Veldrovive,

      I have reduced my config file to very few modules but my MagicMirror keeps restarting every few seconds. That does not happen, if I stick with the “old” style of configuring Pages within MagicMirror. It seems, I make a general mistake with the way, the second Page setup should be done.

      Would you mind having a look, why this slimmed down version does not work?

      /* Magic Mirror Config Sample
       *
       * By Michael Teeuw http://michaelteeuw.nl
       * MIT Licensed.
       *
       * For more information how you can configurate this file
       * See https://github.com/MichMich/MagicMirror#configuration
       *
       */
      
      var config = {
        address: '0.0.0.0', // Address to listen on, can be:
        // - 'localhost', '127.0.0.1', '::1' to listen on loopback interface
        // - another specific IPv4/6 to listen on a specific interface
        // - '', '0.0.0.0', '::' to listen on any interface
        // Default, when address config is left out, is 'localhost'
        port: 8080,
        ipWhitelist: [
          '127.0.0.1',
          '::ffff:127.0.0.1',
          '::1',
          ['192.0.0.60', '192.0.0.189']
        ], // Set [] to allow all IP addresses
        // or add a specific IPv4 of 192.168.1.5 :
        // ['127.0.0.1', '::ffff:127.0.0.1', '::1', '::ffff:192.168.1.5'],
        // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
        // ['127.0.0.1', '::ffff:127.0.0.1', '::1', '::ffff:192.168.3.0/28'],
      
        language: 'de',
        timeFormat: 24,
        units: 'metric',
        customCss: 'css/custom.css',
      
        modules: [
          {
            module: 'MMM-Page-Selector',
            position: 'top_bar',
            config: {
              defaultPage: 'tag', // Tag
              displayTitle: true, // disable in production mode
              persistentPages: true,
              selectPageNotif: ['SELECT_PAGE'],
              incrementPageNotif: ['PAGE_UP'],
              decrementPageNotif: ['PAGE_DOWN']
            }
          },
          {
            module: 'alert',
            disabled: false,
            config: {}
          },
          {
            module: 'MMM-WatchDog',
            disabled: false,
            config: {
              // See 'Configuration options' for more information.
            }
          },
          {
            module: 'MMM-Remote-Control',
            disabled: false
          },
          {
            module: 'MMM-Remote-Control-Repository',
            disabled: false
          },
          {
            module: 'updatenotification',
            disabled: false
          },
          {
            module: 'MMM-Snow',
            disabled: true, // final: set to false, hide in Remote Control & Save
            config: {
              // See 'Configuration options' for more information.
              flakeCount: 111,
              theme: 'winter' // Possible values are winter, love, and water
            }
          },
          {
            module: 'MMM-Love',
            disabled: true, // final: set to false, hide in Remote Control & Save
            config: {
              // See 'Configuration options' for more information.
              flakeCount: 111,
              theme: 'love' // Possible values are winter, love, and water
            }
          },
          {
            module: 'MMM-ip',
            disabled: false,
            config: {}
          },
          {
            module: 'clock',
            disabled: false,
            config: {
              clockBold: false,
              displaySeconds: false,
              dateFormat: 'dddd, ll'
            }
          },
          {
            module: 'MMM-TextClock',
            disabled: false,
            config: {
              layout: 'Field', // options are 'Line' and 'Field'
              its24: 'ES IST', // text before hour
              to24: ' ', // text between hour and minute
              after24: 'UHR', // text after minute
              marked: 'color: white; font-weight: 400;', // css code to mark current time in Field layout
              offset: 2 // standard: 2
            }
          },
          {
            module: 'newsfeed',
            disabled: false,
            config: {
              // The config property is optional.
              // If no config is set, an example calendar is shown.
              // See 'Configuration options' for more information.
              feeds: [
                {
                  title: 'Tagesschau',
                  url: 'http://www.tagesschau.de/xml/rss2'
                }
              ]
            }
          }
        ], // top_bar, top_left, top_center, top_right, upper_third, middle_center, lower_third, bottom_left, bottom_center, bottom_right, bottom_bar, fullscreen_above, and fullscreen_below
        pages: {
          tag: {
            'clock': 'bottom_left',
            'newsfeed': 'bottom_bar'
          },
          abend: {
            'clock': 'bottom_left',
            'newsfeed': 'bottom_bar'
          },
          nacht: {
            'MMM-TextClock': 'bottom_center' // Bottom Center nur für MMM-TextClock verwenden. CSS verändert!!!
          },
          wochenende: {
            'clock': 'bottom_left',
            'newsfeed': 'bottom_bar'
          },
          annika: {
            'clock': 'bottom_left',
            'newsfeed': 'bottom_bar'
          },
          phillip: {
            'updatenotification': 'top_bar',
            'clock': 'bottom_left',
            'newsfeed': 'bottom_bar'
          },
          kinder: {
            'clock': 'bottom_left',
            'newsfeed': 'bottom_left'
          },
          system: {
            'updatenotification': 'bottom_bar',
            'MMM-ip': 'bottom_right',
            'MMM-Remote-Control': 'bottom_right' // uncomment the following line to show the URL of the remote control on the mirror
          },
          test: {
            'updatenotification': 'bottom_bar'
          }
        },
        exclusions: {
        }
      };
      
      /** ************* DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== 'undefined') {
        module.exports = config;
      }
      
      posted in System
      rudibaraniR
      rudibarani
    • RE: Is hidden the same as disabled?

      Dear j.e.f.f,

      thanks - this is really good to know and helpful advice.
      I am new to JS programming - but I am willing to tinker and learn. My current plan was to:

      • Add notification support to MMM-Snow analog to “USER_PRESENCE”
      • Add a config option to start inactive, e.g. “start_inactive:true”
      • Add a temp-file that stores the current state of “state_inactive” in case the system reboots.

      Then I could send a notification to MMM-Snow to set it active and inactive at the time needed. This might also be interesting for others…

      I had a look at other modules and hope, that I can pick up all necessary info from the way, these features have been implemented there.
      What do you think of this plan?

      posted in Troubleshooting
      rudibaraniR
      rudibarani
    • RE: Is hidden the same as disabled?

      @sean I will try your code - thanks for the advice. I wanted to use the notification system to show and re-hide a module when the time is due.

      posted in Troubleshooting
      rudibaraniR
      rudibarani
    • RE: MMM-Page-Selector: A page switcher that can set positions of modules

      Dear @Veldrovive,

      sorry for not getting back to you anytime sooner. I am still struggling to get my mirror to work again. I updated MMM-Page-Selector from a version prior the changes with the second config-layout to your development branch to try out persistent pages.

      Since then, my mirror is very slow and unusable. If I try the new layout, my mirror stays black. If I try the old layout for the config file, it sometimes shows an image after a long period of time - but so slow, you can see how the site is being built up.

      I will need some time, hopefully this weekend, to reduce my current config to just MMM-Page-Selector and add one module after the other to see if the problem originates from MMM-Page-Selector or the combination with another module.

      posted in System
      rudibaraniR
      rudibarani
    • RE: Is hidden the same as disabled?

      Thanks @Sean for the idea.

      I plan to use MMM-Snow during some days in the winter. The problem with MMM-Module Scheduler is, that it only seems to hide/show models when passing the point in time that triggers an event. Therefore, I would like to have MMM-Snow reliably hidden when restarting the mirror.

      I did find that MMM-Remote-Control allows to manually hide / show modules and save the “state”. But this information is lost every time the config is changed and does not seem to work fully reliably.

      I tried to show modules that are marked “disabled” in the config via show / hide notifications, but that does not seem to work…

      posted in Troubleshooting
      rudibaraniR
      rudibarani
    • Is hidden the same as disabled?

      Is there a way to start a module hidden (or is this the same as disabled)?

      I would like to have MMM-Snow on „standby“ to be shown at specific times.

      posted in Troubleshooting
      rudibaraniR
      rudibarani
    • RE: Displaying modules depending on Sunrise/Sunset time

      Maybe you could tweak mmm-suncalc to send notifications at these events. That should be easy and useful for many others as well

      posted in Troubleshooting
      rudibaraniR
      rudibarani
    • RE: MMM-Page-Selector: A page switcher that can set positions of modules

      @veldrovive Thank you very much!

      posted in System
      rudibaraniR
      rudibarani
    • RE: MMM-Page-Selector: A page switcher that can set positions of modules

      OK - thank for your feedback.

      Do you have any idea on how to change the css-info or the class of a module on the fly? Would this be possible through notifications?

      posted in System
      rudibaraniR
      rudibarani
    • RE: MMM-Page-Selector: A page switcher that can set positions of modules

      Thanks for the persistent pages. I can try them today or tomorrow.

      Regarding showing one module multiple times: I do not want to put e.g. “clock” multiple times into the config.js and show it in different places on the screen.

      My idea was - and I hope that I got the concept right - that if the same module (which is implemented only once in the config.js and calls the API only once) could be shown multiple times on one page. Then I could set multiple name-tags for that module and address each representation of this module separately via the name-tag in the custom.css file and show/hide/scale different parts of the module at different locations on the screen. This could be of general use for other people as well.

      My next step after this would be to learn how to inject css info dynamically - e.g. to keep infos about my upcoming trains/flights, the traffic-map to the station and weather info at my destination at the same visual size as I move throughout the room. This I would like to achieve with a distance measurement via PIR or doppler-microwave-sensor.

      I hope this helps to explain the idea I had.

      posted in System
      rudibaraniR
      rudibarani
    • RE: MMM-Page-Selector: A page switcher that can set positions of modules

      @Veldrovive If I got your new pages-implementation right, we define a name for a module which is later used to organize the page layout. Is that correct? Would it be possible to give multiple names to the same module (not have on module configured and shown multiple times via different names)?

      It would be helpful for modules with rate-limited APIs, if different parts of one module should be shown at different locations on the same page. I would like to achieve this via a custom css which addresses your name-tag.

      If this where possible, I would like to take this one step further in the future and implement a distance based layout which keeps the information most important to me readable throughout the room, when I prepare for my way to work. Changing the layout via css could be dynamic and would not involve a whole page refresh as it occurs when switching between pages.

      posted in System
      rudibaraniR
      rudibarani
    • RE: Synology Docker Tutorial?

      @cyberphox After downloading the registry “bastilimbach/docker-magicmirror:latest”

      • Name the container “MagicMirror”
      • I prefer setting a cpu limit to have a safeguard against rouge processes
      • Limiting it to max 4 GB of RAM works fine for me
      • Activate automatic restart
      • If you like, add a link to the MagicMirror on your Synology Desktop by adding “:8080” the url provided
      • Port: Make sure, 8080 is written on both sides of the table. If port 8080 is already in use, you can use another port on the left side.
      • Volume: I have added a screenshot for the folders I am linking in from my Synology. Make sure, you finish the setup before starting MagicMirror for the first time.
        0_1542578030562_Bildschirmfoto 2018-11-18 um 22.51.40.png
      • If you use the firewall (you should!), make sure, the rule “Docker MagicMirror” is active. It should have been generated from Docker automatically.

      When everything is ready, fire up the MagicMirror Docker image and follow the instructions for a regular setup.

      posted in Troubleshooting
      rudibaraniR
      rudibarani
    • RE: MMM-iFrame-Ping

      @agp42 Thanks for the quick help!

      posted in Utilities
      rudibaraniR
      rudibarani
    • RE: MMM-iFrame-Ping

      @AgP42 Thank you for this version of iFrame. Works well for me :)
      I do get a white line around the embedded iFrame. Could you please tell me, how to get rid of it?

      posted in Utilities
      rudibaraniR
      rudibarani
    • RE: MMM-Page-Selector: A page switcher that can set positions of modules

      @veldrovive That would be great - thanks a lot!!!
      You could implement it as an option for the config part - maybe there are people out there that like to have a fallback to the standard page.

      posted in System
      rudibaraniR
      rudibarani
    • RE: MMM-Lunartic

      @Mykle1: Thank you for this nice module!

      posted in Education
      rudibaraniR
      rudibarani
    • RE: MMM-Page-Selector: A page switcher that can set positions of modules

      Dear @Veldrovive,

      would it be possible to add an option to make the current page persistent until the next page change?

      I have to use cases where this would help:

      • if the Pi restarts, the Mirror always shows the standard page - no matter what page was active before the restart.
      • if you open the Mirror on a browser (e.g. mobile phone), you always see the standard page until the next page change happens.

      In both cases, if would be great to see the currently “active” page. Maybe there is a way to store and restore the current page?

      Thanks a lot for your active development of the module!

      posted in System
      rudibaraniR
      rudibarani
    • RE: MMM-Page-Selector: A page switcher that can set positions of modules

      @veldrovive Thank you very much for the quick fix! Now everything works like magic :man_mage:

      I am putting a working example here for others, if they want to use MMM-Remote-Control with MMM-Page-Selector as well:

      http://192.0.0.60:8080/remote?action=NOTIFICATION& notification=SELECT_PAGE&payload="test"
      
      posted in System
      rudibaraniR
      rudibarani
    • RE: MMM-Page-Selector: A page switcher that can set positions of modules

      Dear @Veldrovive,

      thank you very much for this fantastic module! I am trying to use MMM-Remote-Control to control the currently shown page through notifications which are sent via HTTP from my home automation (FHEM), depending on who is in the bathroom.

      These two calls work fine with MMM-Page-Selector: (I had to insert a space into the URL when pasting it here as “&n” is replaced with a newline character by this website")

      http://192.0.0.60:8080/remote?action=NOTIFICATION& notification=PAGE_UP
      
      http://192.0.0.60:8080/remote?action=NOTIFICATION& notification=PAGE_DOWN
      

      But i am struggling to use SELECT_PAGE to go directly to a desired page.

      http://192.0.0.60:8080/remote?action=NOTIFICATION& notification=SELECT_PAGE&payload={"test"}
      

      This call returns {"status":"success"}, but does not show the page “test”. Do you have an idea, what I am doing wrong?

      posted in System
      rudibaraniR
      rudibarani
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 3 / 6