Read the statement by Michael Teeuw here.
Weather module not getting shown
-
Nach der Grundinstallation fehlt mir die Wetteranzeige und die Wettervorhersage.
Beide Werte werden im Spiegel nicht angezeigt obwohl diese als Standardmodule mitinstalliert wurden.Mir ist nicht ganz klar ob hier was angepasst werden muss ausser den API’s.
Hat jemand eine Idee? -
(Ich mach das hier mal auf englisch, damit du deine Chancen erhöhst, dein Problem zu lösen.)
It’s probably best to share your config with us. Just remember to remove anything you don’t want to share (e.g. API keys, maybe location etc.).
-
hier ist meine config Datei
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: "updatenotification", position: "top_bar" }, { module: "clock", position: "top_right" }, { module: "compliments", position: "lower_third" }, { module: "currentweather", position: "top_left", config: { location: "***", locationID: "****", //ID from http://www.openweathermap.org/help/city_list.txt appid: "****" } }, { module: "weatherforecast", position: "top_left", header: "Weather Forecast", config: { location: "***", locationID: "***", //ID from http://www.openweathermap.org/help/city_list.txt appid: "****" } }, { module: "newsfeed", position: "bottom_bar", config: { feeds: [ { title: "aktuelle Nachrichten", url: "https://www.bild.de/rss-feeds/rss-16725492,feed=news.bild.html" } ], showSourceTitle: true, showPublishDate: true } }, ] }; -
I don’t really see anything wrong with your config. All other default modules are displayed? Did you rename the config.js.sample to config.js?
-
You may take a look at the log. If you use
pm2you can just typepm2 restart MagicMirror && pm2 log MagicMirror, this will restart your MacigMirror and then echo out the log. You then can look for any error or warning messages. -
Warum umbenennen?
Das habe ich nicht gemacht -
@MichaelS The config.js.sample is only a sample file. You have to rename it by removing the sample part in the end. But you most likely did already, otherwise the mirror would ask you to create a config file.
Are the other modules showing?
-
@MichaelS said in Wetter wird nicht angezigt:
Warum umbenennen?
because the Mainprogram looks for a file named config.js without this file it dontn know what to display
-
Uhrzeit, News und Sprüche werden angezeigt.
Wetter nach wie vor nicht. -
@MichaelS said in Wetter wird nicht angezigt:
module: “currentweather”,
heißt das Modul currentweather? oder MMM-Wounderground?
unter Modul muss der Name des Moduls stehen der gleich mit dem Name des Ordners ist -
@sek_is_back said in Wetter wird nicht angezigt:
@MichaelS said in Wetter wird nicht angezigt:
module: “currentweather”,
heißt das Modul currentweather? oder MMM-Wounderground?
unter Modul muss der Name des Moduls stehen der gleich mit dem Name des Ordners istDas default Modul heisst currentweather. Soweit ist alles richtig.
MicharlS: hast du mal gemacht, was idoodler gesagt hat? Logs könnten weiterhelfen. -
There is no location in your config, or did you replaced the location with the *** ?
Da ist keine location in deiner config angegeben, es sei denn, du hast die id durch die *** ersetzt.
-
@idoodler said in Wetter wird nicht angezigt:
pm2 restart MagicMirror && pm2 log MagicMirror
Hier bekomme ich nur eine Fehlermeldung: Kommando nicht gefunden
pi@Door:~/MagicMirror $ npm start > magicmirror@2.3.1 start /home/pi/MagicMirror > sh run-start.sh Starting MagicMirror: v2.3.1 Loading config ... Loading module helpers ... No helper found for module: alert. Initializing new module helper ... Module helper loaded: updatenotification No helper found for module: clock. No helper found for module: compliments. No helper found for module: currentweather. No helper found for module: weatherforecast. Initializing new module helper ... Module helper loaded: newsfeed All module helpers loaded. Starting server on port 8080 ... Server started ... Connecting socket for: updatenotification Connecting socket for: newsfeed Starting module: newsfeed Sockets connected & modules started ... Launching application. Create new news fetcher for url: https://www.bild.de/rss-feeds/rss-16725492,feed=news.bild.html - Interval: 300000 Shutting down server... Stopping module helper: updatenotification Stopping module helper: newsfeed pi@Door:~/MagicMirror $ pm2 restart MagicMirror && pm2 log MagicMirror bash: pm2: Kommando nicht gefunden. pi@Door:~/MagicMirror $Ist es normal das die Helper Module nicht gefunden werden?
-
This is an English forum. Please try to stick to English!
-
@michaels It looks like you don’t use pm2 to run MagicMirror.
How did you install MagicMirror, did you use the automatic installation?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login