A MagicMirror² module that displays real-time weather data from your personal Weather Underground station.
- Real-time weather data from Weather Underground Personal Weather Stations
- Comprehensive weather information including:
- Current temperature with feels-like temperature
- Dew point and wind chill
- Humidity and barometric pressure
- Wind speed, gusts, and direction (compass abbreviation)
- Precipitation rate and daily total
- UV Index and solar radiation (when available)
- Station location and elevation
- Last observation time
- Navigate to your MagicMirror's
modulesfolder:
cd ~/MagicMirror/modules- Clone this repository:
git clone https://github.com/msimon360/MMM-PWSWeather- Navigate to the module folder:
cd MMM-PWSWeather- Install dependencies:
npm installAdd the module to your config/config.js file:
{
module: "MMM-PWSWeather",
position: "top_right",
config: {
apiKey: "your-weather-underground-api-key",
stationId: "your-station-ID",
updateInterval: 300000, // Update every 5 minutes (in milliseconds)
}
}| Option | Description | Default | Required |
|---|---|---|---|
apiKey |
Your Weather Underground API key | - | Yes |
stationId |
Your Weather Underground station ID | - | Yes |
updateInterval |
How often to fetch new data (milliseconds) | 300000 (5 min) |
No |
If you have a Personal Weather Station that reports to Weather Underground you can get an API key with your FREE account. You can also get an API key with a paid subscription to pull data from other Weather Stations.
- Go to Weather Underground
- Sign up or log in to your account
- Visit the API Keys page
- Create a new API key
- Copy the 32-character key into your config
Important: Make sure you copy all 32 characters of the API key. Missing even one character will cause a 401 authentication error.
- Go to Weather Underground
- Search for your location
- Find your chosen weather station on the map
- Click on it to see the Station ID (format:
KSSCCCCNNNwhere SS is state, CCCC is city, NNN is number)
This means your API key is invalid or incorrectly entered. Check that:
- Your API key is exactly 32 characters
- There are no extra spaces or quotes in the config
- Your API key is still active on Weather Underground
- Verify your station ID is correct
- Check that your station is actively reporting data
- Look at the console output with
npm startfor error messages - Ensure your Raspberry Pi has internet connectivity
- Confirm your station is online and reporting
- Try a different nearby station ID to test
- Check the MagicMirror logs for JavaScript errors
MIT License - feel free to use and modify as needed.
Developed for MagicMirror² using Weather Underground API.
Pull requests and suggestions are welcome!
