VantagePro Weather Station
WordPress plugin to display weather data from Davis VantagePro 2 via Metrilog
by Thomas Heute · github.com/theute/vantagepro-weather · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/theute/vantagepro-weather/archive/refs/heads/main.zipA WordPress plugin to display real-time weather data from Davis VantagePro 2 weather station via Metrilog WAP interface.
Description
VantagePro Weather Station integrates with Metrilog's Web Access Protocol (WAP) to fetch and display current weather conditions from your Davis VantagePro 2 weather station. The plugin provides a flexible shortcode system that allows you to display selected weather fields in any order on your WordPress posts and pages.
Features
- Real-time Weather Data: Fetches current conditions from Metrilog WAP interface
- Flexible Display: Use shortcodes to display any combination of weather fields
- Field Selection: Choose which fields to display and in what order
- Unit Support: Display data in metric or imperial units
- Caching: Configurable cache duration to reduce API calls
- Multilingual: French translations included (easily extensible)
- Timezone Support: Displays timestamps in Zurich timezone (CET/CEST)
Installation
- Upload the
vantagepro-weatherfolder to/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- Go to Settings > VantagePro Weather to configure your Metrilog credentials
Configuration
- Navigate to Settings > VantagePro Weather in your WordPress admin
- Enter your Metrilog credentials:
- Station ID: Your Metrilog station ID
- Username: Your Metrilog username
- Password: Your Metrilog password
- Configure cache duration (default: 5 minutes)
- Select your preferred units (metric or imperial)
- Click "Test Connection" to verify your settings
- Save the settings
Usage
Basic Shortcode
Display all available weather fields:
[vantagepro_weather]
Display Specific Fields
Display only selected fields in a specific order:
[vantagepro_weather fields="temperature,humidity,pressure,wind_speed"]
Available Fields
The following field keys can be used in the fields attribute:
temperature- Temperature 2mtemperature_max- Temperature 2m (max)temperature_min- Temperature 2m (min)temperature_indoor- Temperature Indoorshumidity- Relative Humidityhumidity_indoor- Relative Humidity Indoorswind_speed- Wind Speedwind_speed_gust- Wind Speed (gust)wind_direction- Wind Directionwind_direction_gust- Wind Direction (gust)pressure- Air Pressureprecipitation- Precipitationuv_index- UV Indexsolar_radiation- Global Radiation
Override Units
Display data in imperial units (even if default is metric):
[vantagepro_weather fields="temperature,humidity" units="imperial"]
View Available Fields
After testing your connection in the plugin settings, you'll see a list of all available fields with their keys that you can use in the shortcode.
Requirements
- WordPress 5.0 or higher
- PHP 7.2 or higher
- Metrilog account with WAP access
Changelog
1.0.0
- Initial release
- Metrilog WAP integration
- Shortcode support with field selection
- Admin settings page
- French translations
- Zurich timezone support
Support
For issues, feature requests, or contributions, please visit the GitHub repository.
License
This plugin is licensed under the GPL-2.0+ license.
Credits
Developed by Thomas Heute