• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Automatic Location Refreshed Daily

Scheduled Pinned Locked Moved Feature Requests
6 Posts 3 Posters 3.1k Views 2 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.
  • N Offline
    Nichollsg
    last edited by May 22, 2016, 6:01 PM

    Hello, I think I have a good suggestion for everything weather based. I am looking to use this as a gift for some of my friends, and the issue I am running into is some of them might be moving at somepoint/ do not stay in the same city all year. I think it would be great if there was a way to get a script to run during start up (the mirror should only need new location when it is unplugged and plugged back in) to find the location name automatically. this could be fed into the location name field and be used for headers as well as both OpenWeather and WU.

    I have done some research and asked around about something like this, and I got some good responses on reddit as seen in the link below:

    https://www.reddit.com/r/raspberry_pi/comments/4kfntb/automated_location_management_with_magicmirror2/

    This looks like there is already a service to return information about an ip address in XML and JSON. Would anyone be able to help me make a script to get this to work?

    1 Reply Last reply Reply Quote 0
    • K Offline
      KirAsh4 Moderator
      last edited by May 22, 2016, 6:12 PM

      The issue with that is that it isn’t reliable. For example, my public IP says I’m in a town about an hour away because that is where Comcast’s main hub is. I’ve gone through this with a different project as well and it simply wasn’t reliable. For some people, or some cities it would work, but others it would simply put you where the service provider decide to resolve the IP, and often it’s at their main hub. You’re better off getting a cheap GPS unit for the rPi and using that. And no, that’s not a project I want to put on my plate, at least not for the foreseeable future.

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

      1 Reply Last reply Reply Quote 0
      • K Offline
        KirAsh4 Moderator
        last edited by KirAsh4 May 22, 2016, 6:14 PM May 22, 2016, 6:14 PM

        Also, depending on where they move to, the rPi’s settings will also need to be changed, timezones for example, and if they cross a big body of water, also the LOCALE … And that’s outside the scope of this project.

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

        N 1 Reply Last reply May 22, 2016, 6:20 PM Reply Quote 0
        • N Offline
          Nichollsg
          last edited by May 22, 2016, 6:17 PM

          Yeah, that is one of the things that I have heard about and that is one of my biggest concerns. However, the people that I am going to be gifting this too live in big enough cities that the IP address location I have searched of each is still within the correct city limits. I will look into adding GPS to the pi for that, but it is definitely going to increase the price of this project along with time to figure out how to make it to work.

          If I were to approach this problem of using IP to get a city name, how would I go about adding that to the default/non-default weather or future modules? would it be best to use Python or Node.js?

          1 Reply Last reply Reply Quote 0
          • N Offline
            Nichollsg @KirAsh4
            last edited by May 22, 2016, 6:20 PM

            @KirAsh4 Yeah, I totally see why that could cause a huge headache of a problem!

            1 Reply Last reply Reply Quote 0
            • C Offline
              cowboysdude Module Developer
              last edited by Sep 1, 2016, 2:30 AM

              Unless you install a GPS module to show location… which is possible…

              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