MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. strawberry 3.141
    3. Best
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 3
    • Followers 35
    • Topics 30
    • Posts 1,700
    • Groups 2

    Posts

    Recent Best Controversial
    • RE: modules day and time Depending represented

      @bjoern you can make another cron task on the endtime

      posted in General Discussion
      strawberry 3.141S
      strawberry 3.141
    • RE: NHL Module

      @Officeglen after my lectures today, I could help to debug this via teamviewer and fix it in time for your brothers birthday

      @bbry do you get any errors in the terminal or electron console?

      posted in Requests
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-Traffic - Green Text?

      @tobykah After checking the code I can say that the color part is only working when arrival_time is not set

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: Passing variable from one request to another

      @mongo116 I assume that your code is inside the function getData

      getData: function() {
        request({
          url: "https://api-prod.bgchprod.info:443/omnia/auth/sessions",
          headers: {
            'Content-Type': 'application/vnd.alertme.zoo-6.1+json',
            'Accept': 'application/vnd.alertme.zoo-6.1+json',
            'X-Omnia-Client': 'Hive Web Dashboard',
            'cache-control': "no-cache",
          },
          method: "POST",
          body: JSON.stringify(body),
        }, function (error, response, body) {
          if (!error && response.statusCode == 200) {
            var responseJson = JSON.parse(body);
            // nested request after successfully obtaining the session id
            request({
              url: "https://api-prod.bgchprod.info:443/omnia/nodes",
              headers: {
                'Content-Type': 'application/vnd.alertme.zoo-6.1+json',
                'Accept': 'application/vnd.alertme.zoo-6.1+json',
                'X-Omnia-Client': 'Hive Web Dashboard',
                'cache-control': "no-cache",
                'X-Omnia-Access-Token': responseJson.sessions[0].sessionId,
              },
              method: "GET",
            }, function (error, response, body) {
              if (!error && response.statusCode == 200) {
                // the required data
                var data = JSON.parse(body);
              }
            });
          }
        });
      }
      
      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: Change module position

      @samydp those are all valid positions you can enter in the config.js https://forum.magicmirror.builders/topic/286/regions

      however you can make your custom layout in ~/MagicMirror/css/custom.css

      posted in General Discussion
      strawberry 3.141S
      strawberry 3.141
    • RE: NHL Module

      @Officeglen I made a possible fix for the error we couldn’t reproduce. I’m assuming that this was due to an unexpected/unhandled behaviour of the api.

      @chieftainSupreme I was looking for a free api a couple of weeks ago, but couldn’t find one.

      posted in Requests
      strawberry 3.141S
      strawberry 3.141
    • RE: multiple titles in newsfeed

      @obelix05 from my knowledge no, but you can put the newsfeed module twice at the same position with different urls (to prevent displaying the same posts twice) then it will display two at the same time.

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: magic-mirror-voice

      @howi42 after a quick look into the module, it seems that the module doen’t make use of it’s config option debug

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: Change module position

      @samydp the module name is case sensitive so you have to write it like in the config file e.g. in your case it would be .clock

      .clock{
        left : 100 px,
        top:50 px
      }
      

      also think about using position with the values fixed, absolute or relative

      posted in General Discussion
      strawberry 3.141S
      strawberry 3.141
    • RE: Fuel Monitor for Austria

      @schlachtkreuzer6 would be great if someone is able to integrate this into my fuel module for germany :)

      posted in Requests
      strawberry 3.141S
      strawberry 3.141
    • RE: PIR Sensor turning display on/off over and over

      @elmerito25 I don’t have a mirror to test, but the code does the following

      from gpiozero import MotionSensor
      
      pir = MotionSensor(4)
      
      while True: #repeat this forever
          if pir.motion_detected: # if motion is detected print the message
              print("Motion detected!")
      

      after the print is done it immediately repeats the loop, because their is no sleep, timeout, delay or whatsoever in there. So for me the expected behaviour is that it prints over and over the same message. You could try to check motion not detected

      from gpiozero import MotionSensor
      import time
      
      pir = MotionSensor(4)
      
      while True: #repeat this forever
          if pir.motion_detected: # if motion is detected print the message
              print("Motion detected!")
          if not pir.motion_detected: # if no motion is detected print the message
              print("No motion detected!")
          time.sleep(1)
      

      run this and leave your sensor alone it will print just every second

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: Trouble with mm on start

      @fasyr with the automatic installer those should be replaced with the magicmirror logo

      https://github.com/MichMich/MagicMirror/blob/master/splashscreen/splash.png

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: Change module position

      sorry I couldn’t get your question

      posted in General Discussion
      strawberry 3.141S
      strawberry 3.141
    • RE: Active Notification from external system?

      @SwordMaster you could go for

      [card:paviro/MMM-syslog]

      posted in Requests
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-Traffic, Resize icon

      @pjkoeleman all fontawesome icons have the class fa and then the specific class like fa-car

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: Electron CPU usage

      if i remember correct there is also a possibility to increase performance of transformations, but I’m not sure. Have to research on this

      EDIT: I can’t do any testing for a while, if someone wants to get a hand on it I think this should make an effect as it will optimize the rendering from cpu usage to gpu. It’s still a new stuff though and I’m not sure if it is supported in electron yet.

      .MODULENAME {
        will-change: opacity;
      }
      

      replace modulename with the actual module name

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: Display a Web Page

      @Jayh391 I would just go for the approach from the halloween thread

      {     module: "helloworld",
            position: "top_right",  
            config: {
                      text: "<iframe src='YOUR_URL' style='height: 500px; width: 300px;'></iframe>"
                     }
       },
      
      posted in General Discussion
      strawberry 3.141S
      strawberry 3.141
    • RE: LocalTransport-Module and calendar

      @tosti007 It’s very easy to get one, just took me ~ 2 minutes. You can give it a try.

      posted in Requests
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-WunderGround - Display hourly only?

      @Camelblack custom.css

      .MMM-WunderGround table.small:nth-of-type(3),
      .MMM-WunderGround hr.hrDivider:nth-of-type(3) {
          display:none;
      }
      
      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-YrNow

      https://github.com/Yr/MMM-YrNow

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • 1
    • 2
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 22 / 27