PinkCrab - Ecowitt Weather Block WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
A custom gutenberg block, that adds live weather from a given weather station.
★ 0stars
3release downloads
1.0.0-RC2latest · never
Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/gin0115/ecowitt-weather-block/releases/download/1.0.0-RC2/ecowitt-weather-block.zipUpdates itself. It ships its own updater, so new versions appear under Dashboard → Updates.
A WordPress block plugin for displaying real-time and historical weather data from Ecowitt weather stations.
Features
- Live Weather Block — displays current weather observations with configurable auto-refresh
- Weather History Block — renders historical weather charts with adjustable date ranges and aggregation intervals
- Multiple Themes — default, materialike, slate and dashboard themes with customisable colours and icon sets
- Unit Conversion — automatic conversion between metric and imperial units for all measurement types
- Caching — database-backed observation cache to reduce API calls
- GitHub Auto-Updates — checks for new releases and provides one-click updates from the WordPress dashboard
Supported Measurements
| Category | Measurements |
|---|---|
| Outdoor | Temperature, Feels Like, Dew Point, Humidity |
| Indoor | Temperature, Humidity |
| Wind | Speed, Gust, Direction |
| Rainfall | Rate, Hourly, Daily, Event, Weekly, Monthly, Yearly |
| Pressure | Relative, Absolute |
| Solar | Solar Radiation, UV Index |
| Air Quality | PM1.0, PM2.5, PM4.0, PM10 (real-time AQI, 24h AQI) |
| CO2 | CO2 Level, 24h Average |
| Soil | Moisture (up to 8 channels) |
| Leaf | Wetness (up to 8 channels) |
| Lightning | Distance, Strike Count |
| Water Leak | Up to 4 channels |
| Battery | Status for all connected sensors |
Requirements
- WordPress 6.1+
- PHP 8.1+
- An Ecowitt weather station with API access
Setup
- Download the latest release from the releases page
- Upload and activate the plugin in WordPress
- Navigate to Settings > Ecowitt Weather and add your Ecowitt API connection (Application Key + API Key)
- Add the Live Weather or Weather History block to any post or page via the block editor
Development
Prerequisites
- Node.js 18+
- Composer
- PHP 8.1+
Install dependencies
composer install
npm ci
Build assets
npm run build
Watch for changes
npm start
Run tests
composer test:php
Static analysis
composer analyse:php
Lint
composer lint:php
npm run lint:scripts
npm run lint:styles
Built With
- Perique Framework — WordPress plugin framework
- Ecowitt API v3 — Weather station data
- Recharts — React charting library for history visualisation
License
Change Log
- 1.0.0-RC1 — Initial release candidate
Releases
2 releases. Each count is every asset in that release; expand a row for the breakdown.