WP Manifestindependent plugin directory
manifest / utilities / vantagepro-weather

VantagePro Weather Station

WordPress plugin to display weather data from Davis VantagePro 2 via Metrilog

by Thomas Heute · github.com/theute/vantagepro-weather · website

0stars
0forks

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.zip

A 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

  1. Upload the vantagepro-weather folder to /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Go to Settings > VantagePro Weather to configure your Metrilog credentials

Configuration

  1. Navigate to Settings > VantagePro Weather in your WordPress admin
  2. Enter your Metrilog credentials:
    • Station ID: Your Metrilog station ID
    • Username: Your Metrilog username
    • Password: Your Metrilog password
  3. Configure cache duration (default: 5 minutes)
  4. Select your preferred units (metric or imperial)
  5. Click "Test Connection" to verify your settings
  6. 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 2m
  • temperature_max - Temperature 2m (max)
  • temperature_min - Temperature 2m (min)
  • temperature_indoor - Temperature Indoors
  • humidity - Relative Humidity
  • humidity_indoor - Relative Humidity Indoors
  • wind_speed - Wind Speed
  • wind_speed_gust - Wind Speed (gust)
  • wind_direction - Wind Direction
  • wind_direction_gust - Wind Direction (gust)
  • pressure - Air Pressure
  • precipitation - Precipitation
  • uv_index - UV Index
  • solar_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