@thobach thanks for your effort. Just got this up and running from your instructions in the README. Very pleased. :thumbs_up:
Read the statement by Michael Teeuw here.
Posts
-
RE: Microsoft To-Do (wunderlist replacement?)
-
RE: MMM-Wunderlist
Two things from your config:
You’ve written “accessTOKEN:” instead of “accessToken:”
And you have a comma after “clientID:‘2cxxxxxxxxxxxx49’,”
This is the last line in this bracket and therefore shouldn’t have a comma. -
RE: MMM-Ruter (for Oslo and Akershus in Norway)
@simonhh can you post the Ruter section of your config file?
Here’s mine which is working fine for comparisson:
{ module: 'MMM-Ruter', header: 'Ruter', position: 'bottom_left', config: { showPlatform: false, maxItems: 10, stops: [ { stopId: "3010430", platforms: [ ], timeToThere: 1 } ] } }, -
RE: Update Error of v.2.2.0 :(
-
RE: ipWhitelist HowTo
@mochman sorry for the slow reply. I’ve been on holiday.
Wanted to let you know that your suggestion fixed my problem. I added your suggested IPs and now I can both access through SSH and through a mobile device/browser.
Thanks for your replies!
-
RE: ipWhitelist HowTo
Hi @mochman thanks for your reply!
You’re correct that I’m SSH’ing to the mirror from within my home network. I use putty from a laptop that is connected to my wireless router and uses an IPv4 address. The setup looks like this if I run ipconfig from the laptop:
Link-local IPv6 Address . . . . . : XXXX::XXXXX:XXXX:XXXX:XXXX%XX
IPv4 Address. . . . . . . . . . . : 192.168.X.XX
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.X.XI can gain access through my mobile and laptop as long as I open for all devices. But as soon as I limit it to even a broad range of ip addresses - they get shut out.
Here’s the setup on the mirror:
wlan0: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether XX:XX:XX:XX:XX:XX XXX ff:ff:ff:ff:ff:ff
inet 192.168.0.19/24 brd 192.168.0.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 XXXX::XXXX:XXXX:XXXX:XXXX/XX scope link
valid_lft forever preferred_lft foreverHere’s the full ipWhitelist I’m trying at the moment:
[“127.0.0.1”, “::ffff:127.0.0.1”, “::fff:192.168.1.1/112”, “::1”, “::ffff:192.168.1.1/120”, “::ffff:192.168.0.14”, “::ffff:192.168.0.16”]
Any tips, or anything else I can supply to help?
EDIT: mobile ip config looks the same as the laptop ip config.
-
RE: ipWhitelist HowTo
@mochman I’m experiencing a similar problem to the one @looolz describes above.
I can access through SSH (putty) no problem. I’ve seen the logs “Access denied to …” and added the two addresses (my laptop and mobile) to the ipWhitelist.
I’ve also added the “…1.1/120” and “…1.1/112” to the list but I still get access denied.
I did get both devices working for a while - but was then denied access through putty! I’d really like to be able to access through mobilebrowser for MMM-remotecontrol AND SSH for other work.
The reason for this comment is that I checked wlan0 and I have an inett6 addr listed.
You mention this above but don’t say what to consider next. If you’re still around and have any thoughts about this I’d appreciate it!
resulted in me being able to connect from mobile/laptop but meant that SSH stopped working. -
RE: MMM-Pnews
Hey @cowboysdude, thanks for another great module!
You should update the readme with the correct link for cloning:
git clone https://github.com/cowboysdude/MMM-PNews.git
This will save precious seconds for us copy-pasters ;)
-
RE: [Remote-Control] Shutdown, Configure and Update your MagicMirror
Well done for getting the update out!
Can’t wait to give it a try.
-
RE: My Mirror
@planet4 I got some cheap heat sinks for the RPi 3 I’m using just for safety, but my mounting solution avoids boxing the thing in. It’s open around the sides and looks as though it’s floating 4cm from the wall. This effect works fine for where I’m hanging my mirror - no one can see the sides!
-
RE: My Mirror
Those bubble and dust are hard to avoid when applying the film. I followed this instructional film on youtube and made a huge improvement to my own mirror.
Watch the whole thing and I’m sure you’ll see a big improvement next time you try it.
-
RE: MMM-Ruter (for Oslo and Akershus in Norway)
@Cato yes. yes I am. Thanks. That’s it!
-
RE: MMM-Ruter (for Oslo and Akershus in Norway)
Hi @Cato ,
I’ve just updated with MM 2.1.0 and checked that I’m running the latest version of MMM-Ruter.
When I tried to run the module with two different stops, it crashed the config file.
´´´´javascript´´´´
{
module: ‘MMM-Ruter’,
header: ‘Ruter’,
position: ‘bottom_right’,
config: {
showPlatform: true,
maxItems: 10,
stops: [
{
stopId: “3010430”,
platforms: [ “1”, “2” ],
timetoThere: 2
}
{
stopId: “3010425”,
platforms: [ “1”, “2” ]
timetoThere: 2
}
]
}
},
´´´´javascript´´´´It runs fine with 1 stop. But I get a config error message with 2 stops. Even if I just copy the exact same information two times.
Is there an error in the config above? Let me know!
-
RE: Today's weather [default module] not correct. Rest of the week is fine.
You’re right! An area around Oslo and to the North of the city is showing an incorrect temprature on the site.
I’ve submitted an issue to them. Hopefully they’ll fix it soon.
-
Today's weather [default module] not correct. Rest of the week is fine.
I’m using the default Weather module and have added the api key from openweathermap.
The module is working OK, and has previously worked perfectly.
Recently, however, today’s weather has been wrong. Both on Current weather and the Weather forecast. (The week ahead is fine).
Here’s the config:
{ module: 'currentweather', position: 'top_right', config: { location: 'Oslo', locationID: '3143244', //ID from http://www.openweathermap.org appid: '***********************************' } }, { module: 'weatherforecast', position: 'top_right', header: 'Weather Forecast', config: { location: 'Oslo', locationID: '3143244', //ID from http://www.openweathermap.org appid: '*******************************' } },The API key is the same. The weather is equally wrong on both Today’s Weather and Forecast modules.
I’ve done the obvious and checked Openweather map website. The weather there is correct.
The weather outside is also correct.
What should I try next?
-
RE: MMM-PIR-Sensor tuning
@jc21 just for closure here I found the issue. After running the python script again I realised that the PIR was always HIGH even with the sensitivty dialled right down.
So I checked the leads going into the pi and found that, despite checking it many times, I’d mixed up GND and VCC :(
The lesson for any other idiots out there when testing is, run this Python script and make sure that the PIR stops broadcasting “Motion Detected!” when you cover it with something:
from gpiozero import MotionSensor import os pir= MotionSensor(22) //the gpio pin PIR OUT is connected to while True: if pir.motion_detected: print (“Motion Detected!”)Code from this site
With some further adjustments for sensitivity it’s now working great!
-
RE: MMM-Ruter (for Oslo and Akershus in Norway)
Hi @Cato all good!
Default config language is “en” (english).
Here is a film demonstrating the refreshing issue:
https://www.dropbox.com/s/5n0lkx9z3lhznkn/2016-11-05 18.52.26.mp4?dl=0
I tried setting the animation speed to 10 to elimate the display flicker. It’s a simple hack, but worked fine. Now it’s barely noticeable.
:)
-
RE: MMM-Ruter (for Oslo and Akershus in Norway)
Hi @Cato sorry for the slow response.
I’ve pulled v 1.0.2 but haven’t changed my config file. It looks like this:
{ module: 'MMM-Ruter', header: 'Ruter', position: 'bottom_left', config: { showPlatform: false, maxItems: 10, stops: [ { stopId: "3010430", platforms: [ ] } ] } },In reply to your previous question: I haven’t changed the time settings on the module. The time in the default clock module is in 24 hour format. So is the Pi. Any guesses as to the reason? It’s not a big problem for me, or it wasn’t, until you pointed it out ;)
Two other comments:
The GUI visibly refreshes inconsistently (between every 5 and 20 seconds) but often. Often enough that it’s visually distracting. Not sure what is triggering the refresh - serviceReloadInterval or timeReloadInterval maybe? Have you changed these in your setup? If so maybe post the config so that I can copy those settings and see if the problem fixes.
See you have down as a point for future improvement the ability to run two instances of the module at the same time. I’d just like to second that! I’d like to have two instances running in two different corners of my mirror for the two nearest transport hubs we use. I would certainly make use of it if/when you get the time to add it.
Hope to be a bit more available in the week ahead if you have any other questions.
-
RE: MMM-Ruter (for Oslo and Akershus in Norway)
Great work @Cato!
Super easy install. Will look forward to playing with the config in the week ahead.

Proof: https://www.dropbox.com/s/zafm6q8k8hg8e1t/2016-10-24 23.42.24.jpg?dl=0
-
RE: MMM-PIR-Sensor tuning
@jc21 hi again, thanks for your input so far.
I’ve had the sensorPIN at 22 previously. And tested it using the python script shared on a few other threads:
´´´python
from gpiozero import MotionSensor
import ospir= MotionSensor(22)
while True:
if pir.wait_for_motion(timeout=10*60):
print(“It lives”)
else:
os.system(“/opt/vc/bin/tvservice -0”)
´´´
The result spammed “It lives”. Which I understand to mean that the sensor is working… If I change the if to “os.system(”/opt/vc/bin/tvservice -p")" the screen shutsdown.The reason I changed it was based on the results of “gpio readall”. I currently have power in pin 1 (3.3v), ground in pin 6 and data in pin 15
gpio readall tells me that physical 15 = BCM 22 = GPIO 3 so I decided to try sensorPin: 3.
I’ve changed it back to 22 now, but the result is still the same.
Other possible vectors are:
I’m forcing HDMI output because I’m using a HDMI -> DVI converter and so it seemed like a safe choice.
With dev tools open I can see that USER_PRESENCE is not being logged anywhere in the console.
I followed this post and ran:
“Run npm rebuild --runtime=electron --target=1.3.4 --disturl=https://atom.io/download/atom-shell --abi=49”
in the MMM-PIR-Sensor folder,