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 lang: "en", // Select language nl, de, en, fr 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/
Versions
v1.0.0 - Initial release
-
@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
