• 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
  1. Home
  2. MattG
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
M
Offline
  • Profile
  • Following 0
  • Followers 0
  • Topics 4
  • Posts 10
  • Groups 0

MattG

@MattG

0
Reputation
673
Profile views
10
Posts
0
Followers
0
Following
Joined Feb 2, 2017, 1:32 AM
Last Online Mar 11, 2017, 12:33 AM

MattG Unfollow Follow

Latest posts made by MattG

  • PIR Sensor turning display on/off over and over

    Hello!

    tl;dr - display wakes/sleeps repeatedly.

    Display sleeps fine, but once PIR Sensor is triggered, the monitor wakes, then immediately sleeps, then wakes, then sleeps, and so on, until I remove myself as a trigger to the PIR Sensor.

    FWIW - I utilized a tutorial for setting up the PIR Sensor and testing it via python script to see if it is even working. Here’s the script:

    from gpiozero import MotionSensor
    
    pir = MotionSensor(4)
    while True:
        if pir.motion_detected:
            print("Motion detected!")
    

    It works, but it continues to print over and over (and so on) until I remove the trigger for the PIR Sensor (much like how the display wakes and sleeps repeatedly).

    I’m honestly not sure if it is supposed to print that output over and over (like mine does), or not. But I feel like the two might be connected.

    Any pointers here would be much obliged. Thank you!

    posted in Troubleshooting
    M
    MattG
    Feb 22, 2017, 3:08 AM
  • RE: iFrame not working?

    @broberg I’m mobile right now so I apologize for the brevity.

    The issue is the same with any URL.

    I don’t think it’s missing a curly bracket because you can scroll to the left and you should see it. It’s just poorly formatted.

    Regarding the"why". Is like to display a calendar in month view with my appointments on the various days. To my knowledge this isn’t possible with the default and third party calendar modules. If it is… I’m all ears!!

    Cheers!

    posted in Troubleshooting
    M
    MattG
    Feb 12, 2017, 12:01 AM
  • iFrame not working?

    Working on getting an iFrame to display on my mirror, but it doesn’t seem to work. I’ve tried code from the repo for the module itself, as well as some code from various forum posts here on the site. Nothing seems to be working.

    This is the code I’m using. Nothing displays.

    {
    			module: 'iFrame',
    			position: 'middle_center',
    			config: {
    				url: "www.google.com",
    				width: "100%",
    				height: "100px",
    			}
    		},
    

    Further, I’d really like to display my google calendar, but I’m a little confused as to whether I should be using the full URL as generated from google, or if I should be modifying it? I’ve stripped my email address from the link.

    "https://calendar.google.com/calendar/embed?showTitle=0&showNav=0&showPrint=0&showTabs=0&showCalendars=0&showTz=0&height=600&wkst=1&bgcolor=%23FFFFFF&src=GMAIL_USER_ID1234&color=%2328754E&ctz=America%2FChicago" style="border-width:0" width="800" height="600" frameborder="0" scrolling="no"
    

    A quick note about that URL from google, part of my question is that it includes an “iframe” tag around the URL. I removed it because I couldn’t get it to display on this thread otherwise. Do I include the iframe tag as part of my URL when plugging this into my config file?

    Any help here would be much appreciated. Thank you!

    posted in Troubleshooting
    M
    MattG
    Feb 11, 2017, 9:54 PM
  • RE: How do you develop locally and push to the Pi?

    @onetwankyfive

    This is absolutely perfect. And I see you mentioned it before. Sorry for not reading as thoroughly as I should’ve. Thank you!!

    posted in Troubleshooting
    M
    MattG
    Feb 9, 2017, 2:14 AM
  • RE: How do you develop locally and push to the Pi?

    @onetwankyfive said in How do you develop locally and push to the Pi?:

    I use textwrangler and Netatalk:

    sudo apt-get install netatalk

    as far as I know u need to restart your mm pm2 everytime

    I also setup VNC to see it remotely but you can use the ipofthemm:8080 in your web browser as long as u setup whitelisting propperly

    @broberg @Snille Thanks for your response! I greatly appreciate it.

    Ultimately, I went with @onetwankyfive 's suggestion. For anyone interested, I googled the following tutorial to get netatalk up and going between my Pi and my Mac.

    http://raspberrypituts.com/access-raspberry-pi-files-in-your-os-x-finder/

    So now, my pi’s in one part of the house, and I’m in the other. I SSH into the Pi, connect up via netatalk to directly access my config (and whatever else) file, get to use my favorite text editor, and save my changes directly to the Pi.

    Finally, again per @onetwankyfive 's suggestion, I whitelisted my IP on the Pi, so now I can connect up in my browser and see it’s output. Awesome.

    One last question, if I can - When I view the output of the magicmirror via my ip:8080 in the browser, the modules overlap upon one another. They don’t seem to resize at all. Is this because I have my Pi rotated to vertical (portrait) mode? Any help with this, other than rotating the Pi output to horizontal?

    Cheers!

    posted in Troubleshooting
    M
    MattG
    Feb 8, 2017, 4:40 AM
  • How do you develop locally and push to the Pi?

    Sorry if this has been answered elsewhere. I did search, but wasn’t able to find anything. Please link me if it has been covered. Also, please understand I’m a total beginner.

    I’ve been experimenting with MM, and it’s been a lot of fun. Right now I have my Pi setup, and I SSH in via the terminal on my Mac. This has been working alright, but nano via terminal isn’t the greatest way to edit text as I experiment and learn how these modules work.

    I’ve gathered that it is possible to develop and see your changes on your local machine using a text editor and then push that code to the Pi. How? What would I need to setup on my Mac to do this?

    Thanks in advance!

    posted in Troubleshooting
    M
    MattG
    Feb 7, 2017, 3:11 AM
  • RE: Quit MagicMirror via SSH?

    @yawns

    Awesome! Thank you again! I will definitely be trying this out after work today. Cheers!

    posted in Troubleshooting
    M
    MattG
    Feb 2, 2017, 1:44 PM
  • RE: Quit MagicMirror via SSH?

    @yawns said in Quit MagicMirror via SSH?:

    @MattG
    This is the “official” way to schedule the MagicMirror process: https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror

    If you let us know how you start your mirror currently we will find a solution to stop/restart the process to avoid rebooting the pi.

    Nice! Thank you for the link. This looks like it is exactly what I am looking for. Given that I’ve already setup the MM, and messed around some with the config (modules), do you think I need to wipe the pi and start over, or can I go ahead and follow the steps you linked to implement pm2?

    Regarding your question about how I interface with the mirror currently -

    Right now, I make changes via ssh, and start the mirror via ssh using ```
    DISPLAY=:0 nohup npm start &

    which loads up the mirror interface after a few seconds. To stop the mirror, I use the keyboard physically plugged into the pi and hi ctrl+Q.

    Thanks!

    posted in Troubleshooting
    M
    MattG
    Feb 2, 2017, 12:59 PM
  • RE: Quit MagicMirror via SSH?

    @yawns Thank you for your reply!

    I believe I’ve tried that method, but I can say for sure later tonight when I get home from work.

    As for whether I’m using pm2 or not, I don’t believe so, but I am not 100% certain. I setup my Pi 2b fairly generically, and then followed the “how to” in MagPi Issue #54, which doesn’t seem to mention anything about pm2.

    Ultimately, I just want to be able to make changes to the config file, and refresh the mirror without having to interface with the Pi physically. Right now, it is just an annoyance, but once it is on the wall, it would be a real pain as I won’t have any mouse/keyboard hooked up to it.

    Is this something I should be using? If so, can you please point me to a n00b friendly resource?

    Thank you!

    posted in Troubleshooting
    M
    MattG
    Feb 2, 2017, 12:43 PM
  • Quit MagicMirror via SSH?

    Hello!

    How do you stop running MagicMirror via SSH? I’m on a mac if that matters.

    Full disclosure, I’m a total n00b. I did look on the forums for this, but couldn’t seem to find anything. Thank you for your time!

    posted in Troubleshooting
    M
    MattG
    Feb 2, 2017, 1:38 AM
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