• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

My First Mirror... until now ^^

Scheduled Pinned Locked Moved Show your Mirror
37 Posts 17 Posters 44.1k Views 18 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    swvalenti Project Sponsor
    last edited by Apr 20, 2019, 8:48 PM

    If you told me that your background wasn’t a stock photo I would upvote this! Nice work!

    1 Reply Last reply Reply Quote 0
    • C Offline
      cruunnerr
      last edited by Apr 21, 2019, 5:32 AM

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

      Bild Text

      1 Reply Last reply Reply Quote 0
      • M Offline
        metalldetector @cruunnerr
        last edited by Apr 21, 2019, 6:49 AM

        @c:face_with_steam_from_nose: ruunnerr ok that works…
        -What ist the Funktion of LED_PIN = 16 .
        Only one pin …
        Do I need RGB pins in the script?

        -And then the led stripe start it’s flickering…
        Thx4yourhelp

        1 Reply Last reply Reply Quote 0
        • C Offline
          cruunnerr
          last edited by cruunnerr Apr 21, 2019, 7:08 AM Apr 21, 2019, 7:05 AM

          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
          
          M 1 Reply Last reply Apr 21, 2019, 7:26 AM Reply Quote 0
          • M Offline
            metalldetector @cruunnerr
            last edited by Apr 21, 2019, 7:26 AM

            @cruunnerr ok I think this is the right way and I understand it with the led pin on Pin16
            … Just the flickering looks not good… I try a other power consumption…

            …can I only fade the LEDs or can I make a light like a animation around my mirror?

            Thanks for your help … And so fast.

            This is a good forum for me…

            Thx to all guys

            1 Reply Last reply Reply Quote 0
            • C Offline
              cruunnerr
              last edited by cruunnerr Apr 21, 2019, 10:33 AM Apr 21, 2019, 10:32 AM

              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

              1 Reply Last reply Reply Quote 0
              • M Offline
                metalldetector
                last edited by Apr 22, 2019, 6:25 AM

                Yes. But what is the difference between WS2812, WS2812, neopixel…
                What is the best stripe with a good price…
                I think a meter for 60 euro is to much…

                Greetings from Saxony, Germany

                1 Reply Last reply Reply Quote 0
                • C Offline
                  cruunnerr
                  last edited by Apr 22, 2019, 6:29 AM

                  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€

                  M 1 Reply Last reply Apr 22, 2019, 7:36 AM Reply Quote 0
                  • M Offline
                    metalldetector @cruunnerr
                    last edited by Apr 22, 2019, 7:36 AM

                    @cruunnerr very good deal.
                    But what is the difference in the product options… blue or black pcm …

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      metalldetector
                      last edited by Apr 22, 2019, 7:56 AM

                      Mensch… du sprichst bestimmt deutsch…
                      Wie hast du die Temperatur Module angebunden?

                      Etwa mit wlan esp’s ?

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 3 / 4
                      3 / 4
                      • First post
                        21/37
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy