MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. svenpisa
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    S
    Offline
    • Profile
    • Following 5
    • Followers 0
    • Topics 13
    • Posts 51
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: MMM-Pir or MMM-PIR-Sensor

      @sdetweil

      62e173cd-c4e4-4b8a-81ca-b777a8b9d593-image.png

      I don’t understand that. I have done it exactly according to the tutorial and via

      sudo python motion_sensor.py
      

      to test the Pir. I could not recognize a new line immediately after a movement, but a line is generated every 5 seconds.
      Since the tutorial says that the sensor waits 5 seconds until it queries again, I would have thought that it would work since the 1 is specified.

      But now an entry is created directly every 5 seconds

      I am open to all modules and settings to get the PIR up and running. If only I knew how to do it…

      posted in Troubleshooting
      S
      svenpisa
    • RE: Default Weather Module Icon Position

      Thank you very much for your help.
      I first had to read through your messages at my leisure and at the same time I tried to understand the messages parallel to the developer tool.

      And lo and behold, it worked.

      0e90df8a-da41-4c3f-b2b7-c4d7e5436f24-image.png

      I have now split the weather module into two classes.

      		{
      			module: "weather",
      			classes: "forecast",
      			position: "top_right",
      			header: "Wettervorschau",
      			config: {
      				weatherProvider: "openweathermap",
      				type: "forecast",
      				location: "Hamburg",
      				locationID: "2911xxx", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
      				apiKey: "c64bb3321848fe4e76163xxxxxxxxxc"
      			}
      		},
      		{
      			module: "weather",
      			classes: "wetter",
      			position: "top_center",
      			config: {
      				weatherProvider: "openweathermap",
      				type: "current",
      				location: "Hamburg",
      				locationID: "2911xxx", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
      				apiKey: "c64bb3321848fe4e76163xxxxxxxxx"
      			}
      		},
      

      You could then play around really well with each class in the developer tool and then find the right position.

      For those who are interested. I have now made the following entries in the Custom.css so that it looks like this:

      .forecast .weathericon {
      position:absolute;	// absolute
      z-index: 0;
      height: 200px;
      right: 120px;
      margin-top: -65px; 
      padding-left: 60px;
      padding-top: 50px;
      height: 35px;
      }
      
      .forecast .wi-day-sunny {
      content: url("/css/icons/day.svg");
      }
      
      .forecast .wi-day-cloudy {
      content: url("/css/icons/cloudy-day-1.svg");
      }
      
      .forecast .wi-rain {
      content: url("/css/icons/rainy-6.svg");
      }
      
      forecast .wi-night-clear {
      content: url("/css/icons/night.svg");
      }
      
      .forecast .wi-night-cloudy {
      content: url("/css/icons/cloudy-night-2.svg");
      padding-right: 15px;
      padding-top: 10px;
      }
      
      .forecast .wi-cloudy {
      content: url("/css/icons/cloudy.svg");
      }
      
      .forecast .wi-showers {
      content: url("/css/icons/rainy-7.svg");
      }
      
      .forecast .wi-thunderstorm {
      content: url("/css/icons/thunder.svg");
      }
      
      .forecast .wi-snow {
      content: url("/css/icons/snowy-6.svg");
      }
      
      .forecast .wi-cloudy-windy {
      content: url("/css/icons/cloudy-day-3.svg");
      }
      
      .forescast.wi-night-rain {
      content: url("/css/icons/rainy-6.svg");
      }
      
      .forecast .wi-night-snow {
      content: url("/css/icons/snowy-6.svg");
      }
      
      .forecast .wi-night-thunderstorm {
      content: url("/css/icons/thunder.svg");
      }
      
      .forecast .wi-night-showers {
      content: url("/css/icons/rainy-7.svg");
      }
      
      .forecast .wi-fog {
      content: url("/css/icons/cloudy.svg");
      }
      
      .forecast .wi-night-alt-cloudy-windy {
      content: url("/css/icons/cloudy-night-1.svg");
      }
      
      /* Aenderungen Wettervorhersage */
      .wetter .weathericon {
      position: absolute;
      z-index: 1;
      margin-top: -33px;
      padding-top: 20px;
      left: 60px;	
      }
      	
      .wetter .wi-day-sunny {
      content: url("/css/icons/day.svg");
      padding-left: 6px;
      padding-top: 5px;
      height: 50px;
      }
      
      .wetter .wi-day-cloudy {
      content: url("/css/icons/cloudy-day-1.svg");
      }
      
      .wetter .wi-rain {
      content: url("/css/icons/rainy-6.svg");
      padding-left: 8px;
      padding-top: 5px;
      height: 45px;
      }
      
      .wetter .wi-night-clear {
      content: url("/css/icons/night.svg");
      }
      
      .wetter .wi-night-cloudy {
      content: url("/css/icons/cloudy-night-2.svg");
      height: 50px;
      padding-left: 5px;
      padding-top: 7px;
      }
      
      .wetter .wi-cloudy {
      content: url("/css/icons/cloudy.svg");
      }
      
      .wetter .wi-showers {
      content: url("/css/icons/rainy-7.svg");
      }
      
      .wetter .wi-thunderstorm {
      content: url("/css/icons/thunder.svg");
      }
      
      .wetter .wi-snow {
      content: url("/css/icons/snowy-6.svg");
      }
      
      .wetter .wi-cloudy-windy {
      content: url("/css/icons/cloudy-day-3.svg");
      height: 45px;
      padding-left: 8px;
      padding-top: 7px;
      }
      
      .wetter .wi-night-rain {
      content: url("/css/icons/rainy-6.svg");
      padding-left: 8px;
      padding-top: 5px;
      height: 45px;
      }
      
      .wetter .wi-night-snow {
      content: url("/css/icons/snowy-6.svg");
      }
      
      .wetter .wi-night-thunderstorm {
      content: url("/css/icons/thunder.svg");
      }
      
      .wetter .wi-night-showers {
      content: url("/css/icons/rainy-7.svg");
      }
      
      .wetter .wi-fog {
      content: url("/css/icons/cloudy.svg");
      }
      
      .wetter .wi-night-alt-cloudy-windy {
      content: url("/css/icons/cloudy-night-1.svg");
      height: 50px;
      padding-left: 5px;
      padding-top: 7px;
      }
      

      We can therefore close the entry here

      Thanks all again

      posted in Troubleshooting
      S
      svenpisa
    • RE: MMM-GoogleKeep config.js

      @KristjanESPERANTO ah ok, then I took it the wrong way. Sorry and thanks

      posted in Troubleshooting
      S
      svenpisa
    • RE: MMM-Pir or MMM-PIR-Sensor

      Hi Sam, I have now taken the instructions from you
      https://pimylifeup.com/raspberry-pi-motion-sensor/ and have gone through them step by step.

      I am using pin 15 (Gripo22)

      I then edited the motion_sensor.py and entered pir_sensor = 15.
      I simply ignored the piezo =7 entry as I only want to connect the PIR. So I really only entered pir_sensor = 15.

      I have now entered the following in Config.js

      		{
      			module: 'MMM-Pir',
      			position: 'top_left',
      			config: {
      				debug: false,
      				delay: 1 * 60 * 1000,
      				turnOffDisplay: true,
      				mode: 1,
      				ecoMode: true,
      				displayCounter: true,
      				displayBar: true,
      				displayStyle: "SemiCircle",
      				displayLastPresence: true,
      				lastPresenceTimeFormat: "LL H:mm",
      				mode6_gpio: 22,
      				mode6_clearGpioValue: true,
      				pir_gpio: 22,
      				pir_reverseValue: false,
      				xrandrForceRotation: "normal",
      				wrandrForceRotation: "normal"
      			}
      		},
      

      But I don’t have the feeling that the PIR is really reacting to my movements. I can stand in front of it or tap it with my finger, but the screen doesn’t wake up.
      But strangely enough, the screen does wake up from time to time, which I don’t think is due to the PIR.

      where is my mistake or am I using the following entry incorrectly? What is the purpose of the two entries?

      				mode6_gpio: 22,
      				mode6_clearGpioValue: true,
      				pir_gpio: 22,
      				pir_reverseValue: false,
      

      ab099d81-9a1b-4071-a274-25f977e44361-image.png

      As you can see the countdown runs down and goes back to full time but I have no idea why. I don’t think it’s because of the PIR… I can fiddle with it as much as I like… The time doesn’t change

      posted in Troubleshooting
      S
      svenpisa
    • RE: Default Weather Module Icon Position

      @sdetweil said in Default Weather Module Icon Position:

      html {
      cursor: default;
      }

      9e5c80d4-5f63-48e4-a5b4-1149ff8a8384-image.png

      Is the screenshot better?

      posted in Troubleshooting
      S
      svenpisa
    • RE: MMM-Pir or MMM-PIR-Sensor

      @sdetweil
      HELP!!!
      and how do I do that?
      I just googled and came across the following page:
      https://tutorials-raspberrypi.de/raspberry-pi-bewegungsmelder-sensor-pir/?utm_content=cmp-true

      do I just need to create the file and refer to the correct pin?

      Or what exactly do I need to install?

      posted in Troubleshooting
      S
      svenpisa
    • RE: Default Weather Module Icon Position

      @sdetweil I had taken the section to see the Custom.css and weather.css on the right side. Shouldn’t the wallpaper actually be displayed?

      posted in Troubleshooting
      S
      svenpisa
    • MMM-Pir or MMM-PIR-Sensor

      Next Problems on my side…

      First of all, the assignment I used:
      PIR sensor that I have connected: HC-SR505
      Pins : 2(5V) 9(Ground) 15(GPIO22)
      Raspberry Pi 3b

      The first thing I tried was https://github.com/MarcLandis/MMM-PIR-Sensor?tab=readme-ov-file on my MM.

      Installation so far ok. But when I wanted to install wiring-pi I got stuck at the following step:
      eba43324-edfc-4de3-8f76-b0930f646dd4-image.png

      What exactly do I have to enter under ‘wiring-pi’? This is where I fail.

      Then I thought I’d give it a try with
      https://github.com/bugsounet/MMM-Pir .
      The timer also counts down nicely and switches the monitor off after 2 minutes, but the PIR doesn’t react.

      {
        module: 'MMM-Pir',
        position: 'top_left',
        config: {
          debug: false,
          delay: 2 * 60 * 1000,
          turnOffDisplay: true,
          mode: 1,
          ecoMode: true,
          displayCounter: true,
          displayBar: true,
          displayStyle: "Text",
          displayLastPresence: true,
          lastPresenceTimeFormat: "LL H:mm",
          mode6_gpio: 20,
          mode6_clearGpioValue: true,
          pir_gpio: 21,
          pir_reverseValue: false,
          xrandrForceRotation: "normal",
          wrandrForceRotation: "normal"
        }
      },
      

      I would have to
      mode6_gpio: 20, and / or pir_gpio: 21, to 15? But the PIR doesn’t react there either.
      I read somewhere that you have to “unlock” the pins first?
      Can you tell me how I can use one of the two modules?

      posted in Troubleshooting
      S
      svenpisa
    • RE: MMM-GoogleKeep config.js

      Hi @KristjanESPERANTO I have seen that something has happened in the issue. But I didn’t understand what was changed and what was adjusted. May I come back to your help? If you have time, could you take a look at the issue on GitHub?
      Thank you very much and best regards

      posted in Troubleshooting
      S
      svenpisa
    • RE: Default Weather Module Icon Position

      Thank you guys for your tips and help. Now I only have one issue left.

      How do I get the icons in the right place?
      9fd7ed16-6ef7-47a5-84d6-29b73b951ab6-image.png

      posted in Troubleshooting
      S
      svenpisa
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 3 / 6