MagicMirror² v2.14.0 is available! For more information about this release, check out this topic.


  • Module Developer

    I made a module that pulls’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.


  • Module Developer

    Installation instructions:

    Step 1: Download the module.
    Run git clone 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 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: "", 
            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.

  • Admin

Log in to reply