Read the statement by Michael Teeuw here.
MMM-PIR-Sensor - White Screen
-
@Bangee hi ! thx for your nice tuto, i have proceed with it but i got a warning as below:
pi@raspberrypi:~/MagicMirror/modules/MMM-PIR-Sensor $ npm install
npm WARN prefer global npm@3.10.9 should be installed with –g
do i have to do smt specific or it’s just ok to leave it without any action?
ps: my config file is also not working with PIR module implemented… maybe that is the reason? thx you very much for any feedabck guys!! -
@bibi did you try it with the instructions from paviro:
https://github.com/paviro/MMM-PIR-SensorI don’t think that this warn is your problem. I have so many times these warnings :-D
You sould send us whats in yourpm2 logs mm
-
@Bangee yes i follow his and yours… quite the same… regarding this npm warning I do nothing then as understood?
I will send you the log later when I’m home
Thx bangee! Appreciated! -
@Bangee so as expected the pm2 log mm just show that the file has syntax error… here is my config file, i put the module at the end…
thx again :) -
@bibi
powerSaving: true
-
@strawberry-3.141 right was a typo but still the config file is “not created” :((
-
@bibi can you post your whole config file?
-
@strawberry-3.141 here you go and many thx in advance - i struggling with this now (sorry i don’t know why only few parts of the code is with the color background)
/* Magic Mirror Config Sample * * By Michael Teeuw http://michaelteeuw.nl * MIT Licensed. */ var config = { port: 8080, language: 'en', timeFormat: 24, units: 'metric', modules: [ { module: 'alert', }, { module: 'clock', position: 'top_left' }, { module: 'calendar', header: 'US Holidays', position: 'top_left', config: { calendars: [ { symbol: 'calendar-check-o ', url: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics' } ] } }, { module: 'compliments', position: 'lower_third' }, { module: 'currentweather', header: 'xxx', position: 'top_right', config: { location: 'xxx,xxx', locationID: 'xxx', //ID from http://www.openweathermap.org appid: 'xxx' } }, { module: 'newsfeed', position: 'bottom_bar', config: { feeds: [ { title: "New York Times", url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml" }, ], showSourceTitle: true, showPublishDate: true }, { module: 'MMM-PIR-Sensor', config: { sensorPIN: 22, powerSaving: true } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== 'undefined') {module.exports = config;}
Note from admin: Please use Markdown on code snippets for easier reading!
-
Everything with at least one tab indent is treated as code and highlighted. ;)
-
@yawns thx! :))