Read the statement by Michael Teeuw here.
MMM-MyWeatherForecast
-
I’ve created a new weather module, named MyWeatherForecast. I wanted a simple weather module, free weather information, and not too much fuss.
It has language support. Currently for Dutch, English, French and German.I know, it’s one of many, but for me it’s nice and I hope you can enjoy it too!
MMM-MyWeatherForecast
This is a MagicMirror² module for weather information and an optional 4-day forecast.
It only uses the weather information from PirateWeather with a free API.Installation
Clone this repository in your modules folder, and install dependencies:
cd ~/MagicMirror/modules git clone https://github.com/htilburgs/MMM-MyWeatherForecast.git cd MMM-MyWeatherForecast npm installUpdate
When you need to update this module:
cd ~/MagicMirror/modules/MMM-MyWeatherForecast git pull npm installConfiguration
Go to the MagicMirror/config directory and edit the config.js file.
Add the module to your modules array in your config.js.{ module: "MMM-MyWeatherForecast", position: "top_right", header: "My WeatherForeCast", disabled: false, config: { apiKey: "PUT_API_KEY_HERE", latitude: "PUT_LAT_HERE", longitude: "PUT_LON_HERE", units: "metric", // metric or imperial showForecast: true, // Show 4 day forecast showLastUpdate: true, // Show when the data is last updated showSunTimes: true, // Show Sun up and Sun Down information riseSetDisplay: "both", // Show Sunrise / Sunset as text | icon | both lang: "en", // Select language nl, de, en, fr iconSet: "standard", // standard | animated | custom (upload your own PNG icons) updateInterval: 10 * 60 * 1000 //Updates every 10 minutes } },- To get your latitude and longitude, you can go to https://www.latlong.net/
- To get your Pirate Weather API key, you can go to https://pirateweather.net/en/latest/
Icons
The standard icons are free icons from Flaticon
The animated icons are free icons from Meteocons by Bas MiliusVersions
v1.2.0 (08-03-2026)
- Add Iconsets for animated
- Possibility for custom icons
- Update language files
- Add riseSetDisplay option in config, to show Sunrise / Sunset as text, only icon or both
- Code optimized
v1.1.0 (27-01-2026)
- code and CSS optimize
v1.0.0 (Initial release 2026)
-
@htilburgs nice
How is it different from https://github.com/b-reich/MMM-PirateSkyForecast
-
@sdetweil
Hi Sam, I didn’t know of the existence of this module.
I wrote MyWeaterForecast because a lot of other mdules had to much, or I didn’t like the layout, etc…I’m currently working on IconSets, but that’s it.
Sorry for the resemblance. -
-
@htilburgs said in MMM-MyWeatherForecast:
I’ve created a new weather module, named MyWeatherForecast.
Looks nice! 👏 Where are the icons from? I like them.
@htilburgs said in MMM-MyWeatherForecast:
I’m currently working on IconSets, but that’s it.
MMM-OneCallWeather has some icon sets, maybe you can get some inspiration from there: https://github.com/KristjanESPERANTO/MMM-OneCallWeather#icon-sets 🙂
And don’t forget to add it to the module list: https://github.com/MagicMirrorOrg/MagicMirror/wiki/3rd-party-modules
-
Got it to work straight away and it is the perfect format that I have been chasing for years, thank you for your input
-
@waynerob11
Thank you for the nice words. I had the same problem and that is why I decided to write it myself. -
@KristjanESPERANTO
The icons came from https://www.flaticon.com/search?word=weather partly clouded nightI will give MMM-OneCallWeather a look for the icons, but I hope I will stay unique.
-
@htilburgs Cool. The icons are licensed under the Flaticon License. This is not a problem for the module, but the license states that you must add an attribution when using the icons. I’m not a lawyer, but I would add a credits section to the README and write there that the icons are from flaticon.com and put a link to it. Since people have taken the trouble to create the icons and make them available for free, that should be not to much to acknowledge their work 🙂
I hope I will stay unique
I think your layout is unique and it looks really good too.
Don’t forget to add it to the module list: https://github.com/MagicMirrorOrg/MagicMirror/wiki/3rd-party-modules
-
@KristjanESPERANTO
Thanks for the advice.
I put a comment in the readme and placed the module in the 3rd-party module list. -
@htilburgs
Looks nice and clean! Thanks i put it on our mirror. -
I just published an update to v1.2.0
- Add Iconsets for animated
- Possibility for custom icons
- Update language files
- Add riseSetDisplay option in config, to show Sunrise / Sunset as text, only icon or both
- Code optimized
Don’t forget to update the config.js with the extra options:
riseSetDisplay: "both", // Show Sunrise / Sunset as text | icon | both iconSet: "standard", // standard | animated | custom (upload your own PNG icons)If there are any issues, please add the issue here
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