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

MMM-GPSWeather

Scheduled Pinned Locked Moved Utilities
3 Posts 1 Posters 3.7k 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.
  • M Offline
    mochman Module Developer
    last edited by May 25, 2016, 7:11 PM

    I made a module that pulls wunderground.com’s weather from a lat/long page/file.

    I set up my phone with Hervé Renault’s Self-Hosted_GPS-Tracker.
    Wunderground weather based off of MattLugar’s module.

    I travel a lot, so when the wife looks at the mirror, she can see the city I’m in as well as the weather there.

    0_1464203442498_module.jpg

    1 Reply Last reply Reply Quote 2
    • M Offline
      mochman Module Developer
      last edited by Jul 11, 2016, 7:39 PM

      Installation instructions:

      Step 1: Download the module.
      Run git clone https://github.com/mochman/MMM-GPSWeather.git in your modules folder.

      Step 2: Get your API Keys
      To get your Google API Key, go to this website and follow the steps to get your location API key.
      To get your Wunderground API Key, go to this website and follow the steps to get your API key (cumulus plan).
      Copy those down since you will be adding it to your config.js file.

      Step 3: Add your server files
      You will need to have a webserver somewhere (could be on the Raspberry pi) that is accessible from the internet. I used host-ed.net since it was free.
      Place the *.php files contained from the server-files/ directory to the location of your webserver.
      The files will need to be placed in a folder and not in your webserver’s root.
      Create another folder called tmp in the folder you placed the server files.
      For example:
      mkdir -p /var/www/GPSLuke/tmp
      mv MMM-GPSWeather/server-files/*.php /var/www/Luke/
      The reason why the folder is called Luke is that the module will use this to display the username.

      Step 4: Edit your config.js file
      Open up your config.js file with whatever text editor you like.
      Add this to your config and edit the API Key’s, latlongUrlBase, and username as appropriate.

      {
          module: 'MMM-GPSWeather',
          position: 'bottom_left',    
          config: {
              locationAPIKey: '1234567890zbcdefghijkl',
              username: 'Luke',
              latlonUrlBase: "http://yourserver.net/", 
              WUAPIKey: '12391290348sjdf834'
           }
      },
      

      Step 5: Install the GPS Tracker software on your Android Phone
      Install the GPS Tracker on your phone and configure as appropriate by setting the server you used.
      If you enable the timestamp, the module will display a rough “last updated” time.

      Step 6: Run the tracker
      Then check your server, hopefully there will be a file called gps-position.php in your server/folder/tmp/ directory. It should have your GPS coords.

      Step 7: Run the module.
      If everything is setup correctly, you should see something like what I have pictured above.

      1 Reply Last reply Reply Quote 0
      • M Offline
        MichMich Admin
        last edited by Jul 12, 2016, 2:09 PM

        Nice work! Make sure to add it to: https://github.com/MichMich/MagicMirror/wiki/MagicMirror²-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