Read the statement by Michael Teeuw here.
MMM-MarineWeather troubleshooting
-
Re : MMM-MarineWeather
Bonjour,
Je rencontre actuellement un problème sur ce module.
Je me suis bien enregistré avec la version 3.0 pour obtenir l’API Key, mais malgré cela, j’ai le message chargement ou Please set the correct Storm Glass appid in the config for module : MMM-MarineWeather.
Voici mon code :
{ module: "MMM-MarineWeather", position: "top_right", header: "Conditions Marines", config: { // --- OpenWeather 3.0 --- provider: "openweathermap", // "openweathermap" ou "openweather" selon ta version apiKey: "XXxXXXXXxxxXxXXXcXXXXXXXxXXXxxx", // Coordonnées de ta zone latitude: XX.390394, longitude: -X.XX390394, // Unitée & langue units: "metric", // metric pour °C, m/s, mètres lang: "fr", // --- Rafraîchissement --- updateInterval: 10 * 60 * 1000, // 10 minutes retryDelay: 2 * 60 * 1000, // --- Affichage principal --- showHeader: false, showWeather: true, showTemperature: true, showFeelsLike: true, showHumidity: true, showPressure: true, showDewPoint: false, // --- VENT --- showWind: true, windUnit: "km/h", // km/h, m/s, knots windGust: true, // --- MER / HOULE (si données disponibles par OpenWeather Marine API) --- showWaves: true, showSwell: true, showSeaState: true, // --- Prévisions --- showForecast: true, forecastLimit: 5, // nombre de jours affichés forecastWind: true, forecastSea: true, // --- Storm Glass --- showStormGlass: true, stormglassStyle: "crystal", // default, simple, crystal stormglassSize: 150, // taille en pixels stormglassAlign: "center", // --- Mise en forme visuelle --- iconTheme: "marine", // marine, default, dark, light showSunrise: true, showSunset: true, // --- Options avancées --- animationSpeed: 1000, timeFormat: 24, decimalSymbol: ",", } },Code généré via Chat GPT.
J’avoue que je tourne en rond.
MERCI pour votre retour.
-
J’ai finalement trouvé le problème qui vient de Node.js (node-fetch) qui n’était pas installé sur ma version de Magic Mirror.
Je l’ai donc installé dans le répertoire du module :
/…/MMM-MarineWeather
npm install node-fetch@2
-> Il faut installer la version 2 car la version 3 n’est pas compatible.
puis redémarrer le Magic Mirror est le tour est joué.
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