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.

    Weather forecast from current location/calendar location

    Scheduled Pinned Locked Moved Troubleshooting
    11 Posts 0 Posters 8.5k Views 3 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.
    • E Offline
      EoinOG
      last edited by

      Hi all! Loving my Magic Mirror. Quick one. Is there any way to use the current location for the weather forecast instead of typing in a specific location in the config? Or if current location isn’t possible, could it load the current location from a calendar?

      I move weekly on tour and would hate to have to edit the config every week.

      Thanks in advance!

      1 Reply Last reply Reply Quote 0
      • KirAsh4K Offline
        KirAsh4 Moderator
        last edited by

        It might be possible to write a module helper that fetches your location from a calendar entry, but if that location doesn’t resolve in the weather database (because it doesn’t have a station reporting), you’ll end up with some weird stuff.

        A Life? Cool! Where can I download one of those from?

        1 Reply Last reply Reply Quote 0
        • Wilco89W Offline
          Wilco89
          last edited by

          Or try something with GPS , so it will always use your location. but then you have to (re)write some code i think.

          1 Reply Last reply Reply Quote 0
          • KirAsh4K Offline
            KirAsh4 Moderator
            last edited by

            Adding a GPS will add more code, yes. And you’d also have to figure out how to tell it to get an area location, as opposed to a pin-point location (which a GPS is excellent at.)

            A Life? Cool! Where can I download one of those from?

            1 Reply Last reply Reply Quote 0
            • E Offline
              EoinOG
              last edited by

              Amazing, Thanks for the responses guys. Is this something easily achievable? And if so, where should I start? I’m a noob to code.

              mochmanM 1 Reply Last reply Reply Quote 0
              • Wilco89W Offline
                Wilco89
                last edited by

                I can’t help you with that, i’m a noob in coding JS. but i think first of all is to look if there is an GPS module you can use for the raspberry

                1 Reply Last reply Reply Quote 0
                • mochmanM Offline
                  mochman Module Developer @EoinOG
                  last edited by

                  @EoinOG I made something similar to what you want. It takes a GPS location from your phone and updates a webpage that the raspberry pulls in and give you weather in that location.

                  MMM-GPSWeather

                  1 Reply Last reply Reply Quote 0
                  • E Offline
                    EoinOG
                    last edited by

                    This is amazing. Thanks so much @mochman. Is there any more documentation anywhere to guide me through installing it?

                    mochmanM 1 Reply Last reply Reply Quote 0
                    • mochmanM Offline
                      mochman Module Developer @EoinOG
                      last edited by

                      @EoinOG I can make some up for you. How far have you gotten with the installation?

                      1 Reply Last reply Reply Quote 0
                      • E Offline
                        EoinOG
                        last edited by

                        I’ve installed the module. But don’t know where to go from here with regards the configuration of it.

                        1 Reply Last reply Reply Quote 0
                        • mochmanM Offline
                          mochman Module Developer
                          last edited by

                          I updated this module page with a step-by-step’ish guide on how to install and configure the module. Let me know if you run into any issues.

                          Since the module pulls lat/long data in JSON format from a file, you could just manually edit that file to update your location. This is in case you don’t want to use the GPS tracker on your phone.
                          What this means is that if you want to tweak the code, you could just have a file on your raspberry pi, or somewhere else on your home network that the lat/long is pulled from instead of setting up a website.

                          1 Reply Last reply Reply Quote 0

                          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
                          • 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