guten abend,
ich habe es fast hinbekommen, das Problem sitzt vor dem PC.
Jetzt habe ich das Problem, dass das Modul es nicht ansteuert und keine 4Pages hinbekomme.
Kannst du dir evtl mein Programmiercode ansehen und dies verbessern. Vielen dank
good evening,
I almost managed it, the problem is in front of the PC.
Now I have the problem that the module does not control it and does not get 4Pages.
Can you possibly look at my programming code and improve this. Many Thanks
here a my config.
/* Magic Mirror Config Sample
*
*/
var config = {
address: “localhost”, // Address to listen on, can be:
// - “localhost”, “127.0.0.1”, “::1” to listen on loopback interface
// - another specific IPv4/6 to listen on a specific interface
// - “”, “0.0.0.0”, “::” to listen on any interface
// Default, when address config is left out, is “localhost”
port: 8080,
ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”], // Set [] to allow all IP addresses
// or add a specific IPv4 of 192.168.1.5 :
// [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.1.5”],
// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
// [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.3.0/28”],
language: "de",
timeFormat: 24,
units: "metric",
modules: [
{
module: "alert",
},
{
module: 'MMM-pages',
config: {
modules:
[[ "weatherforecast", "newsfeed"],
[ "calendar", "MMM-EventHorizon" ]],
fixed: ["clock", "currentweather", "MMM-page-indicator"],
}
},
{
module: 'MMM-page-indicator',
position: 'bottom_bar',
config: {
pages: 2,
}
},
{
module: "updatenotification",
position: "top_bar"
},
{
module: "clock",
position: "top_left"
},
{
module: "MMM-Navigate",
header: "Navigation",
position: "top_left",
config: {
// Alias: [
// 'Wetter anzeigen',
// 'Webcam Vogelnest',
// 'Türstation',
// 'Fritzbox',
// 'News - weniger Details',
// 'Neustart MagicMirror (PM2)',
// 'Neustart',
// 'Herunterfahren'
// ],
// Action: [
// [{notification:'PAGE_INCREMENT',payload:''},{notification:'PAGE_DECREMENT',payload:''}],//action array, first press locks menu, after this rotation CW/CCW executes, second press release lock mode
// [{notification:'ARTICLE_MORE_DETAILS',payload:''},{notification:'ARTICLE_LESS_DETAILS',payload:''}],
// {notification: "SHOW_ALERT", payload: {type:"notification",message:"http://192.168.xx.xx:8080/remote.html"}},//single action, execute on press
// {notification:'ARTICLE_MORE_DETAILS',payload:''},
// {notification:'ARTICLE_LESS_DETAILS',payload:''},
// {notification: "REMOTE_ACTION", payload: {action: "RESTART"}},
// {notification: "REMOTE_ACTION", payload: {action: "REBOOT"}},
// {notification: "REMOTE_ACTION", payload: {action: "SHUTDOWN"}}
// ],
GPIOPins: [26,20,19]//rotary cw, rotary ccw, rotary press (BCM Numbering)
},
},
{
module: "calendar",
header: "Johannes&Jennifer Kalender",
position: "top_left",
config: {
maximumEntries: 3, // Total Maximum Entries
calendars: [
{
symbol: "calendar-check",
url: "webcal://www.kreis-alzey-worms.eu/verwaltung-wGlobal/wGlobal/scripts/php/anwendungen/abfallwirtschaft/termine_icalendar.php?Location=Saulheim&Type=Next"
}
]
}
},
{
module: ‘MMM-DWD-WarnWeather’,
position: ‘top_left’,
config: {
region: ‘Saulheim’,
changeColor: true,
minutes: false,
displayRegionName: true,
interval: 10 * 60 * 1000, // every 10 minutes
loadingText: ‘Warnungen werden geladen…’,
noWarningText: ‘Keine Warnungen’,
severityThreshold: 1
}
},
{
module: “currentweather”,
position: “top_right”,
header: “Aktuelles Wetter”,
config: {
location: “Saulheim”,
locationID: “2874225”, //ID from http://bulk.openweathermap.org/sample/; unzip the gz file and find your city
appid: " xxxxxx "
}
},
{
module: “weatherforecast”,
position: “top_right”,
header: “Wetterprognose”,
config: {
maxNumberOfDays: 3,
location: “Saulheim”,
locationID: “2874225”, //ID from https://openweathermap.org/city
appid: " xxxxxx "
}
},
{
module: “MMM-Fuel”,
position: “top_right”,
config: {
provider: “tankerkoenig”,
api_key: " xxxxxx ",
lat: 49.86376,
lng: 8.13526,
types: [“e5”,“diesel”],
sortBy: “diesel”,
open: true,
updateInterval: 900000,
radius: 8,
max: 3,
}
},
{
module: “MMM-NetworkScanner”,
position: “top_right”,
header: “Wer ist zu Hause online?”,
config: {
devices: [
{ macAddress: “xxxxxx”, name: “Jennifer”, icon: “female”},
{ macAddress: " xxxxxx ", name: “Johannes”, icon: “male”},
{ macAddress: " xxxxxx ", name: “Ma”, icon: “female”},
{ macAddress: " xxxxxx ", name: “Pa”, icon: “male”},
{ ipAddress: “192.168.2.101”, name: “Pi-Hole”, icon: “server”},
{ ipAddress: “192.168.2.180”, name: “K1”, icon: “globe”},
{ ipAddress: “192.168.2.181”, name: “K2”, icon: “globe”},
],
showUnknown: true,
showOffline: true,
keepAlive: 10,
updateInterval: 5
}
},
{
module: ‘MMM-pihole-stats’,
position: ‘top_left’, // Or any valid MagicMirror position.
header: “Pihole-Statstik”,
config: {
// See ‘Configuration options’ for more information.
apiURL: ‘http://192.168.2.101/admin/api.php’,
}
},
{
disabled: false,
module: ‘MMM-EventHorizon’,
position: ‘top_center’,
config: {
timezone: “n37”, // See Timezone chart at bottom
units: “1”, // 1=no units, 2=units initial only, 3=units abbr singular, 4= units abbr plural, 5= units full name
size: “large”, // small, medium or large
countUp: “yes”, // Count up after timer ends
date: “2019-08-24”, // YYYY-MM-DD format ONLY
time: “00:00:01”, // (HH:MM:SS) Exact time you want timer to end
text1: “Hochzeit”, // 2 lines of text during timer
text2: “Jennifer&Johannes”, // 2 lines of text during timer
text1Color: “FF0000”, // Hex color codes
text2Color: “62FF00”, // Hex color codes
timerColor: “CCEEFF”, // Hex color codes
endText1: “When timer ends”, // 2 lines of text when timer ends
endText2: “Say something here”, // 2 lines of text when timer ends
endText1Color: “FFFFFF”, // Hex color codes
endText2Color: “62FF00”, // Hex color codes
timerUpColor: “CCEEFF”, // Hex color codes
colorpc: “000”, // color of the background 000 = black, t = transparent
}
},
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== “undefined”) {module.exports = config;}