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 ;)
Once spent a month trying to make a machine to ignite wire wool at the press of a button. It really shouldn't have taken that long.
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 ;)
@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!
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.
@bhepler @fox I had the same problem and followed the steps here to reinstall electron. It worked for me without further changes.
Thanks!
@thobach thanks for your effort. Just got this up and running from your instructions in the README. Very pleased. :thumbs_up:
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.
@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
}
]
}
},
@bhepler @fox I had the same problem and followed the steps here to reinstall electron. It worked for me without further changes.
Thanks!
@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!
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.X
I 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 forever
Here’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.
@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!
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 ;)
Well done for getting the update out!
Can’t wait to give it a try.
@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!