@pugsly It should work as requested now. I merged the branch with the master so you can just update the master now. If the text looks weird it’s probably because I don’t know css and just made up stuff until it worked on my screen.
Read the statement by Michael Teeuw here.
Posts
-
RE: Nest Thermostat & Protect
-
RE: Weather forecast from current location/calendar location
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. -
RE: MMM-GPSWeather
Installation instructions:
Step 1: Download the module.
Rungit 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 yourconfig.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 calledtmp
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 yourconfig.js
file with whatever text editor you like.
Add this to your config and edit the API Key’s,latlongUrlBase
, andusername
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 calledgps-position.php
in yourserver/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. -
RE: Weather forecast from current location/calendar location
@EoinOG I can make some up for you. How far have you gotten with the installation?
-
RE: Weather forecast from current location/calendar location
@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.
-
RE: Fresh install
@PointPubMedia Can you show us your
config.js
setup? Thanks. Just a dummy check, is your pi connected to the internet? -
RE: Nest Thermostat & Protect
It shouldn’t be that difficult. Can you add an issue to the repo and I’ll mess around with the code.
-
RE: Nest Thermostat & Protect
Hmm, it looks like you have it set up to heat/cool. I haven’t programmed that function so I don’t know if the data the Nest API sends is correct. Can you switch it over to cooling only and see if that fixes your temp?
-
RE: After installing MM2
The tutorial found here can help you with what to type to get your config correct.