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

    Posts

    Recent Best Controversial
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      @andi-aw-weiss

      Hey hey,

      So what exactly doesn’t work? My English isn’t the best

      In my case I am turning on a LED Stripe with the pir.

      When I cold start the raspi, the LED stripe turns on for a few seconds (could be the turnoff delay time).
      After a while it turns off.
      From this moment on it should work as you expect. When movement is detected, the led (or relay) turns on for the delay time and extend the delay time for every new movement within the original delay time.

      posted in Tutorials
      cruunnerrC
      cruunnerr
    • RE: "No Signal" message when PIR sensor is triggered

      Long time ago I visited this forum, so I don’t know if this will help. but the MMM-ModuleScheduler can hide all modules per notifications. So maybe you can trigger the module with your pir-module.
      Or take a look at point 6 in this tutorial
      https://forum.magicmirror.builders/topic/6291/howto-turn-on-off-your-monitor-time-based-pir-button-app/2

      posted in Troubleshooting
      cruunnerrC
      cruunnerr
    • RE: newsfeed doesn't load anymore

      yep…they seem to quit their feed -.-

      sorry for the dumb question

      posted in Troubleshooting
      cruunnerrC
      cruunnerr
    • RE: newsfeed doesn't load anymore

      @sdetweil said in newsfeed doesn't load anymore:

      did u miss part of the url?

      Thanks for your reply. No, didn’t miss something. But it has always been like this :/

      posted in Troubleshooting
      cruunnerrC
      cruunnerr
    • newsfeed doesn't load anymore

      Hi guys,

      i can’t say exactly when the problem started, but my newsfeed doesn’t load anymore.
      The standard “http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml” loads without issues.

      my config:

              {
                  disabled: false,
                  module: "newsfeed",
                  position: "top_left",
                  config: {
                      feeds: [
                              {
                              title: "Neues Wort",
                              url: "http://feeds.feedburner.com/neueswort",
                              },
                      ],
                      showDescription: true,
                      logFeedWarnings: true,
                  }
              },
      

      Log-File says:

      0|mm  | Create new news fetcher for url: http://feeds.feedburner.com/neueswort - Interval: 300000
      0|mm  | [15:52:19.431] [ERROR]  
      0|mm  | (node:14628) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
      
      cruunnerr@MagicMirror:~$ node -v
      v10.16.0
      cruunnerr@MagicMirror:~$ nodejs -v
      v10.16.0
      cruunnerr@MagicMirror:~$ npm -v
      6.13.4
      

      Any thoughts?

      posted in Troubleshooting
      cruunnerrC
      cruunnerr
    • RE: My First Mirror... until now ^^

      @blackeaglece said in My First Mirror... until now ^^:

      I have your own PIR, could you give me a hand, help me? Thank you very much

      https://forum.magicmirror.builders/topic/6291/howto-turn-on-off-your-monitor-time-based-pir-button-app?page=1

      ;)
      Try to find a solution in this post. Otherwise ask again, if you need more help :)
      And Merry X-Mas

      @kusselin said in My First Mirror... until now ^^:

      Hi, can you post the Wallpapers here please

      Sorry, but i don’t have them anymore :(

      posted in Show your Mirror
      cruunnerrC
      cruunnerr
    • RE: My First Mirror... until now ^^

      Meanwhile i changed my background but cannot find the girl-wallpaper. Sorry bro :(

      Here is my whole css

      /*****************************************************
       * Magic Mirror                                      *
       * Custom CSS                                        *
       *                                                   *
       * By Michael Teeuw http://michaelteeuw.nl           *
       * MIT Licensed.                                     *
       *                                                   *
       * Add any custom CSS below.                         *
       * Changes to this files will be ignored by GIT. *
       *****************************************************/
      
       body {
      	background-image: url("background2.jpg");
      	background-size: cover;
      	margin-left: 0px;
      	margin-right: 30px;
      	margin-top: 15px;
      	margin-bottom: 15px;
        	position: absolute;
        	height: calc(100% - 28px);
        	width: calc(100% - 22px);
      }
      .MMM-SystemStats  {
              color: #CEF6CE;
              } 
      .MMM-MyCalendar {
        max-width: 300px;
      }
      .MMM-MovieListings {
        max-width: 400px;
      }
      .left header {
          border-bottom: none; /* instead of 1px solid #666; to remove all lines from all the headers */
          width: 70%;          /* add this to change the width of all module headers */
      }
      .right header {
          border-bottom: none; /* instead of 1px solid #666; to remove all lines from all the headers */
          width: 70%;          /* add this to change the width of all module headers */
      }
      .newsfeed .small{
        color: #FFFFFF;
      }
      .newsfeed .medium{
        color: #D8D8D8;
      }
      .newsfeed {
       max-width: 280px;
      }
      .region.top.right {
       max-width: 330px;
      }
      .MMM-ioBroker {
       width: 550px;
       zoom: 75%;
      }
      
      
      posted in Show your Mirror
      cruunnerrC
      cruunnerr
    • RE: config.js help

      Try this, but you really need to clean up ;) :P

      /* 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: "localhost", // 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"], // 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: "en",
      	timeFormat: 24,
      	units: "metric",
      
      	modules: [
      		{
                              module: "MMM-Remote-Control-Repository",
                      
                      },
                      {
                              module: "alert",
                      
                      },
                      {
                              module: "MMM-Remote-Control",
                              position: "center",
                      
                      },
                      {
                              module: "clock",
                              position: "top_left"
                      
                      },
                      {
                             module: "mmm-hue-lights",
                             position: "bottom_right",
                             config: {
                             bridgeIp: "192.168.1.23",
                             user: "",
                             updateInterval: "1000",
                             hideOff: "false",
                             displayMode: "groups",
                             displayType: "list",
                             minimalList: "true",
                             coloredList: "true",
                             hideFilter: ["home-away"],
                             alignment: "right"
                     				 }
                     },
                     {
                            module: "compliments",
                            position: "lower_third",
                     },
                     {
                            module: "MMM-NOAA3",
                            position: "top_right",
                            config: {
                            provider: "darksky",
                            apiKey: "",
                            airKey: "", 
                            css: "NOAA3",
                            updateInterval: 15,
                            userlat: "51.806460",
                            userlon: "-0.778230"
                    				}
                    },  
                    {
                           module: "calendar",
                           header: "Calendar",
                           position: "top_left",
                           config: {
                           timeFormat:"absolute",
                           titleReplace: {"United Kingdom:" : ""},
                           urgency: 0,
                           getRelative: 6,
                           fullDayEventDateFormat: "D MMMM",
                           dateFormat: "D MMMM - H:mm:ss",
                           fetchInterval: 4000000,
                           colored: true,
                           coloredSymbolOnly: true,
                           maximumEntries: 9,
                           showEnd: false,
                           Calendars: [
                   {
                           symbol: "calendar-check-o ",
                           url: "https://www.officeholidays.com/ics/ics_country_code.php?iso=GB",
                   
                   }
                             ]
                   }
                   },
                   {
                          module: "mmm-nest-status",
                          position: "bottom_left", // pick whichever position you want
                          config: {
                          token: "",
                          displayMode: "all",
                          displayType: "list",
                          thermostatsToShow: "all",
                          units: "metric",
                          updateInterval: "50000",
                          thermostatSize: "small",
                          alignment: "left",
                   // ... and whatever else configuration options you want to use
                  				}
                  },
                  {
                          module: "MMM-SystemStats",
                          position: "Top_Center", 
                          updateInterval: 5000,
                          align: "right",
                          units: "metric",
                          label: "text"
                  
                  },
                  {
                          module: "newsfeed",
                          position: "bottom_bar",
                          config: {
                          feeds: [
                  				{
                          title: "BBC NEWS UK",
                          url: "http://feeds.bbci.co.uk/news/uk/rss.xml"
                   				}
                   ],
                   },
                         showSourceTitle: true,
                         showPublishDate: true
                  }
              
          ]
      };
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      

      For the future u can put in your code here: https://jshint.com

      Just to analyze what maybe went wrong

      posted in Troubleshooting
      cruunnerrC
      cruunnerr
    • RE: My First Mirror... until now ^^

      Blau und schwarz beschreibt nur die Farbe des Streifens selber (nicht der LED). Also für die Funktion egal.

      Naja, also die Temperaturen kommen von meinem IoBroker Server. Um ehrlich zu sein habe ich schon länger nicht mehr an meinem Spiegel gearbeitet, sondern andere Projekte gestartet und vollendet.
      Mein ganzes Haus ist mittlerweile steuerbar (Licht, Thermostate, Lautsprecher etc…). Unter anderem habe ich eben auch Temperatursensoren von Xiaomi im Einsatz, die ihre Werte an meinen Server schicken.
      Auf dem Spiegel zeige ich die Werte dann mit dem MMM-iobroker Modul an.

      Aber ich habe auch viel mit ESP’s gemacht. Habe derzeit ca. 8 Stück im Einsatz. Einer steuert meine komplette Heizung. Einer steuert meine Klingel. Einer wertet meine Alarmanlage aus. Zwei sind für meinen Infinity Tisch… etc. pp… ^^
      Macht ziemlich viel Spaß


      Blue and black only describes the color of the strip itself (not the LED). So no matter for the function.

      Well, so the temperatures come from my IoBroker server. To be honest, I have not worked on my mirror for some time, but started and completed other projects.
      My whole house is now controllable (lights, thermostats, speakers etc …). Among other things, I have also used temperature sensors from Xiaomi, which send their values to my server.
      On the mirror I then display the values with the [MMM-iobroker] (https://github.com/ioBroker/MMM-ioBroker) module.

      But I also did a lot of ESP’s. Currently have about 8 pieces in use. One controls my entire heater. One controls my bell. One evaluates my alarm system. Two are for my infinity table … etc. pp … ^^
      It’s a lot of fun

      posted in Show your Mirror
      cruunnerrC
      cruunnerr
    • RE: My First Mirror... until now ^^

      https://de.aliexpress.com/item/1m-2m-3m-4m-5m-ws2812b-ws2812-led-strip-individually-addressable-smart-led-strip-black-white/32682015405.html?spm=a2g0x.search0104.3.9.4eef3dc9EKAZdz&ws_ab_test=searchweb0_0,searchweb201602_3_10065_10068_10547_319_317_10548_10696_10084_453_10083_454_10618_10304_10307_10820_10821_537_10302_536_10843_10059_10884_10887_321_322_10103,searchweb201603_6,ppcSwitch_0&algo_expid=b24b32fc-d347-41f0-b20b-702e47e2d79c-1&algo_pvid=b24b32fc-d347-41f0-b20b-702e47e2d79c&transAbTest=ae803_3

      I have got this one. 5m with 60 LEDs per meter for about 17€

      posted in Show your Mirror
      cruunnerrC
      cruunnerr
    • RE: My First Mirror... until now ^^

      Well, if i had to do that project gain, i would not choose the RGB-5050 stripes again…

      I would directly get WS2812, because u just need one PWM Pin and with that you were able to do things like animations…

      In another project (infinity table) i choosed this one and was pretty amused :)

      https://youtu.be/IcDjzh03W-4

      posted in Show your Mirror
      cruunnerrC
      cruunnerr
    • RE: My First Mirror... until now ^^

      LED-Pin just shows, if the PIR detects motion. You don’t need to use it.

      The pir.py script starts the other shell scripts when motion is detected.

      So all commands for the RGB-Stripe are within the shell scripts (monitor_on / off.sh).
      And as u can see, i used GPIO 17,22 and 24.
      17 = red
      22 = green
      24 = blue

      To control the LEDs i used PIGPIOD and it’s commands, as i wrote.

      So after installing PIGIOD u can start it with:
      sudo pigpiod

      Commands like pigs p 22 128 will set green to 50%.
      pigs p 24 255 will set blue to 100%

      in the shell script i fade all colors from 1 to 12% with sleeps.

      Edit:

      As i wrote before u need to Autostart pigpiod via rc.local.

      sudo nano /etc/rc.local

      Mine looks like this:

      #!/bin/sh -e
      #
      # rc.local
      #
      # This script is executed at the end of each multiuser runlevel.
      # Make sure that the script will "exit 0" on success or any other
      # value on error.
      #
      # In order to enable or disable this script just change the execution
      # bits.
      #
      # By default this script does nothing.
      
      # Print the IP address
      _IP=$(hostname -I) || true
      if [ "$_IP" ]; then
        printf "My IP address is %s\n" "$_IP"
      fi
      
      iwconfig wlan0 power off &
      
      sleep 5 &
      
      /usr/local/bin/pigpiod
      
      sleep 10 &
      
      /usr/bin/python /home/pi/pir.py &
      
      exit 0
      
      posted in Show your Mirror
      cruunnerrC
      cruunnerr
    • RE: My First Mirror... until now ^^

      Well, meanwhile i changed my background, but still love it :P

      Bild Text

      posted in Show your Mirror
      cruunnerrC
      cruunnerr
    • RE: My First Mirror... until now ^^

      Hey @metalldetector

      I already did somewhere in the forum ^^

      You need to install PIGPIOD.

      sudo apt-get install build-essential python-dev unzip wget

      wget http://abyz.me.uk/rpi/pigpio/pigpio.zip && unzip pigpio.zip && cd PIGPIO && sudo make install

      Connect the PIR like shown at Part 2.2 and follow the guide:
      https://forum.magicmirror.builders/topic/6291/howto-turn-on-off-your-monitor-time-based-pir-button-app?page=1

      When creating the pir.py and fill ist with this code:

      #!/usr/bin/env python
      
      import sys
      import time
      import RPi.GPIO as io
      import subprocess
      import pigpio
      
      io.setmode(io.BCM)
      SHUTOFF_DELAY = 119 # seconds
      PIR_PIN = 25       # 22 on the board
      LED_PIN = 16
      
      def main():
          io.setup(PIR_PIN, io.IN)
          io.setup(LED_PIN, io.OUT)
          turned_off = False
          last_motion_time = time.time()
      
          while True:
              if io.input(PIR_PIN):
                  last_motion_time = time.time()
                  io.output(LED_PIN, io.LOW)
                  print ".",
                  sys.stdout.flush()
                  if turned_off:
                      turned_off = False
                      turn_on()
              else:
                  if not turned_off and time.time() > (last_motion_time + 
                                                       SHUTOFF_DELAY):
                      turned_off = True
                      turn_off()
                  if not turned_off and time.time() > (last_motion_time + 1):
                      io.output(LED_PIN, io.HIGH)
              time.sleep(.1)
      
      def turn_on():
      	subprocess.call("sh /home/pi/monitor_on.sh", shell=True)
      
      def turn_off():
      	subprocess.call("sh /home/pi/monitor_off.sh", shell=True)
      
      if __name__ == '__main__':
          try:
              main()
          except KeyboardInterrupt:
              io.cleanup()
      
      

      For the monitor_on.sh use this:

      vcgencmd display_power 1
      
      pigs p 17 1
      pigs p 22 1
      pigs p 24 1
      
      sleep 0.06s
      
      pigs p 17 2
      pigs p 22 2
      pigs p 24 2
      
      sleep 0.06s
      
      pigs p 17 3
      pigs p 22 3
      pigs p 24 3
      
      sleep 0.06s
      
      pigs p 17 4
      pigs p 22 4
      pigs p 24 4
      
      sleep 0.06s
      
      pigs p 17 5
      pigs p 22 5
      pigs p 24 5
      
      sleep 0.06s
      
      pigs p 17 6
      pigs p 22 6
      pigs p 24 5
      
      sleep 0.06s
      
      pigs p 17 7
      pigs p 22 7
      pigs p 24 6
      
      sleep 0.06s
      
      pigs p 17 8
      pigs p 22 8
      pigs p 24 7
      
      sleep 0.06s
      
      pigs p 17 9
      pigs p 22 9
      pigs p 24 8
      
      sleep 0.06s
      
      pigs p 17 10
      pigs p 22 10
      pigs p 24 9
      
      sleep 0.06s
      
      pigs p 17 11
      pigs p 22 11
      pigs p 24 10
      
      sleep 0.06s
      
      pigs p 17 12
      pigs p 22 12
      pigs p 24 11
      
      

      For monitor_off.sh use this:

      pigs p 17 12
      pigs p 22 12
      pigs p 24 11
      
      sleep 0.06s
      
      pigs p 17 11
      pigs p 22 11
      pigs p 24 10
      
      sleep 0.06s
      
      pigs p 17 10
      pigs p 22 10
      pigs p 24 9
      
      sleep 0.06s
      
      pigs p 17 9
      pigs p 22 9
      pigs p 24 8
      
      sleep 0.06s
      
      pigs p 17 8
      pigs p 22 8
      pigs p 24 7
      
      sleep 0.06s
      
      pigs p 17 7
      pigs p 22 7
      pigs p 24 6
      
      sleep 0.06s
      
      pigs p 17 6
      pigs p 22 6
      pigs p 24 5
      
      sleep 0.06s
      
      pigs p 17 5
      pigs p 22 5
      pigs p 24 5
      
      sleep 0.06s
      
      pigs p 17 4
      pigs p 22 4
      pigs p 24 4
      
      sleep 0.06s
      
      pigs p 17 4
      pigs p 22 4
      pigs p 24 4
      
      sleep 0.06s
      
      pigs p 17 3
      pigs p 22 3
      pigs p 24 3
      
      sleep 0.06s
      
      pigs p 17 2
      pigs p 22 2
      pigs p 24 2
      
      vcgencmd display_power 0
      
      sleep 0.06s
      
      pigs p 17 1
      pigs p 22 1
      pigs p 24 1
      
      sleep 0.06s
      
      pigs p 17 0
      pigs p 22 0
      pigs p 24 0
      
      

      Hope that helps. Try to find your best way and ask, if u need more help :)

      Edit:
      Oh and u need to start Pigpio on reboot with rc.local. ;)

      posted in Show your Mirror
      cruunnerrC
      cruunnerr
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      @chandra said in {HowTo} turn on/off your monitor (Time based, PIR/Button, App):

      Screen goes off after 120sec, But when it sense the motion, the screen is black.

      Hint from the main post:

      To check if it works just go into terminal via ssh and type:

      sudo tvservice -o to turn off
      sudo tvservice -p to turn on

      edit: for some monitors the following commands work better. Please use them if your monitor needs it:

      vcgencmd display_power 0 to turn off
      vcgencmd display_power 1 to turn on

      edit:
      also check this:
      https://forum.magicmirror.builders/topic/6291/howto-turn-on-off-your-monitor-time-based-pir-button-app/11

      posted in Tutorials
      cruunnerrC
      cruunnerr
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      There is no mistake as far as i can see.

      The “&” just need to be written, when a second or third command follows.

      So when u are just using this one command both (with or without the “&”) should work

      posted in Tutorials
      cruunnerrC
      cruunnerr
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      I am glad, you got it :)

      As you can see i used PIN 25 for the PIR and 17,22,24 for the LED’s.

      Keep in mind, that the physical GPIO Number isn’t the same as with BCM numbering !!! Thats important!

      In the script (line 9) u can see that it uses the BCM Numbering. That means the following:

      BCM pin 17 = physical PIN 11
      BCM pin 22 = physical PIN 15
      BCM pin 24 = physical PIN 18
      BCM pin 25 = physical PIN 22

      So the LED’s must be connected with physical PIN 11,15,18 and the PIR on PIN 22.

      Hope that was clear ^^
      My english isn’t very well.

      posted in Tutorials
      cruunnerrC
      cruunnerr
    • RE: Wifi-power socket

      Do not forget:

      The Wifi Power socket itself consumes about 1-2W

      I have many of these ^^
      You can reduce it by updating the sockets with alternative firmware, but it still consumes 0,5-1W

      Just to let you know ;)

      posted in Hardware
      cruunnerrC
      cruunnerr
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      @Rec3ptor

      If u followed the guide i posted, your PIGPIOD installation path should be “/usr/local/bin/pigpiod”

      For autostart when booting u must edit the rc.local. Mine is like this:

      pi@MagicMirror:~ $ cat /etc/rc.local
      #!/bin/sh -e
      #
      # rc.local
      #
      # This script is executed at the end of each multiuser runlevel.
      # Make sure that the script will "exit 0" on success or any other
      # value on error.
      #
      # In order to enable or disable this script just change the execution
      # bits.
      #
      # By default this script does nothing.
      
      # Print the IP address
      _IP=$(hostname -I) || true
      if [ "$_IP" ]; then
        printf "My IP address is %s\n" "$_IP"
      fi
      
      iwconfig wlan0 power off &
      
      sleep 5 &
      
      /usr/local/bin/pigpiod
      
      sleep 10 &
      
      /usr/bin/python /home/pi/pir.py &
      
      exit 0
      

      So enter this via ssh:

      sudo nano /etc/rc.local
      

      and just put this into the file:

      /usr/local/bin/pigpiod
      
      posted in Tutorials
      cruunnerrC
      cruunnerr
    • RE: {HowTo} turn on/off your monitor (Time based, PIR/Button, App)

      Hey dude,

      sorry for not answering, but i am only rarely here :(

      First i would try to edit the config file:

      sudo nano /boot/config.txt
      

      try to uncomment “hdmi_force_hotplug=1” and try to uncomment “config_hdmi_boost=4”

      maybe play around with some other settings.
      https://www.raspberrypi.org/documentation/configuration/config-txt/video.md

      Rebooting the pi once a day is not the best solution :/
      But however, if necessary:
      http://www.simsalabim-solutions.net/vademecum/raspberry_pi/setting_up_reboot_cron_job_on_pi

      posted in Tutorials
      cruunnerrC
      cruunnerr
    • 1 / 1