MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-MyWeatherForecast

    Scheduled Pinned Locked Moved Utilities
    9 Posts 4 Posters 168 Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • htilburgsH Offline
      htilburgs
      last edited by htilburgs

      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.

      image



      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 install
      

      Update

      When you need to update this module:

      cd ~/MagicMirror/modules/MMM-MyWeatherForecast
      git pull
      npm install
      

      Configuration

      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

      (still trying to learn JS, but not afraid to ask and AI is my best friend) ☺

      S 1 Reply Last reply Reply Quote 1
      • S Offline
        sdetweil @htilburgs
        last edited by

        @htilburgs nice

        How is it different from https://github.com/b-reich/MMM-PirateSkyForecast

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        htilburgsH 1 Reply Last reply Reply Quote 0
        • htilburgsH Offline
          htilburgs @sdetweil
          last edited by

          @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.

          (still trying to learn JS, but not afraid to ask and AI is my best friend) ☺

          S KristjanESPERANTOK 2 Replies Last reply Reply Quote 0
          • S Offline
            sdetweil @htilburgs
            last edited by

            @htilburgs said in MMM-MyWeatherForecast:

            Sorry for the resemblance.

            not to be sorry…

            just asking…

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 1
            • KristjanESPERANTOK Online
              KristjanESPERANTO Module Developer @htilburgs
              last edited by

              @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

              htilburgsH 1 Reply Last reply Reply Quote 0
              • W Offline
                waynerob11
                last edited by

                Got it to work straight away and it is the perfect format that I have been chasing for years, thank you for your input

                htilburgsH 1 Reply Last reply Reply Quote 0
                • htilburgsH Offline
                  htilburgs @waynerob11
                  last edited by

                  @waynerob11
                  Thank you for the nice words. I had the same problem and that is why I decided to write it myself.

                  (still trying to learn JS, but not afraid to ask and AI is my best friend) ☺

                  1 Reply Last reply Reply Quote 0
                  • htilburgsH Offline
                    htilburgs @KristjanESPERANTO
                    last edited by htilburgs

                    @KristjanESPERANTO
                    The icons came from https://www.flaticon.com/search?word=weather partly clouded night

                    I will give MMM-OneCallWeather a look for the icons, but I hope I will stay unique.

                    (still trying to learn JS, but not afraid to ask and AI is my best friend) ☺

                    KristjanESPERANTOK 1 Reply Last reply Reply Quote 1
                    • KristjanESPERANTOK Online
                      KristjanESPERANTO Module Developer @htilburgs
                      last edited by

                      @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

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy