MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    MMM-GPSWeather

    Utilities
    1
    3
    3418
    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.
    • mochman
      mochman Module Developer last edited by

      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
      • mochman
        mochman Module Developer last edited by

        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
        • MichMich
          MichMich Admin last edited by

          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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy