language: "fr",
timeFormat: 24,
units: "metric",
modules: [
{
module: "alert",
},
{
module: "updatenotification",
position: "top_bar"
},
{
module: "clock",
position: "top_left"
},
{
module: "compliments",
position: "lower_third"
},
{
module: "currentweather",
position: "top_right",
config: {
location: "ferel",
locationID: "3018692", //ID from http://bulk.openweathermap.org/sample/; unzip the gz file and find your city
appid: "3d1a7886937461a9c659f9f2984fac88"
}
},
{
module: "weatherforecast",
position: "top_right",
header: " ",
config: {
location: "Ferel",
locationID: "3018692", //ID from https://openweathermap.org/city
appid: "3d1a7886937461a9c659f9f2984fac88"
}
},
{
module: "newsfeed",
position: "bottom_bar",
config: {
feeds: [
{
title: "Le Monde",
url: "http://www.lemonde.fr/rss/une.xml"
}
],
showSourceTitle: true,
showPublishDate: true
}
},
{
module: "MMM-Screencast",
position: "center", // This position is for a hidden <div /> and not the screencast window
config: {
position: "center",
height: 300,
width: 500,
}
},
{
module : "MMM-PIR-Sensor",
config : {
sensorPIN: 4,
powerSaving: true
}
},
{
module: "MMM-LocalTemperature",
position: "top_left", // Only add a position if you want this module to display the data
header: "temperature de la maison",
config: {
sensorPin: 21, // For GPIO 22
}
},
]
I tried everything I don’t understand I still have wring-pi
put the code request in the config.js and in the command prompt
-Navigate into your MagicMirror’s modules folder and execute git clone https://github.com/paviro/MMM-PIR-Sensor.git. A new folder will appear navigate into it.
-Execute npm install to install the node dependencies.
-Add your user (pi?) to the gpio group by executing sudo usermod -a -G gpio pi.
-Execute sudo chmod u+s /opt/vc/bin/tvservice && sudo chmod u+s /bin/chvt to allow turning on/off the hdmi output.
-Reboot your Pi.