Linux 软件免费装
Banner图

Elio Blocks

开发者 alexandrebuffet
更新时间 2026年10月27日 22:12
PHP版本: 8.2 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

blocks location weather forecast block-editor

下载

0.4.0 1.0.0

详情介绍:

Elio Blocks brings the weather to the Block Editor the way WordPress would have built it: with blocks that look, feel and behave like the ones you already use every day. Insert the Weather block, start typing a city and pick it among the suggestions: the live forecast shows up right in the editor. Publish, and see if the sun shines! ☀️ No coding required. No widgets, no shortcodes, no iframe either. Try it live on the Elio Blocks website, and read the handbook to go further: every block, and how to add a weather provider or an icon collection from your own code. Feels native, because it is Fast and up to date on the front end Blocks are rendered on the server, so the weather is in the page from the first byte. Then the Interactivity API, the front-end framework of WordPress itself, keeps the data fresh in your visitors' browsers without reloading the page. No jQuery, no heavy scripts: condition icons are shared across the page and forecast data is cached on your server. Weather data and location search are provided by the Open-Meteo API. See the External services section below for what is sent to it and when. Source code The scripts and styles in the build folder of the plugin are compiled. Their human-readable sources (the src folder) and the configuration of the build tools are public on GitHub, where the plugin is developed: https://github.com/alexandrebuffet/elio-blocks To build the plugin from its sources, with Node.js 22 and Composer:
  1. git clone https://github.com/alexandrebuffet/elio-blocks.git
  2. cd elio-blocks
  3. composer install
  4. npm install
  5. npm run build
The build uses @wordpress/scripts (webpack), the build tool of WordPress itself. See the README of the repository for every command.

安装:

Installation from within WordPress
  1. Visit Plugins > Add New.
  2. Search for Elio Blocks.
  3. Install and activate the Elio Blocks plugin.
Manual installation
  1. Upload the entire elio-blocks folder to the /wp-content/plugins/ directory.
  2. Visit Plugins.
  3. Activate the Elio Blocks plugin.

屏幕截图:

  • A daily forecast on the front end, in the colors of the theme.
  • Style the block with the design tools you already know: background, font, size.
  • Start blank and choose a layout for the Weather block.
  • Locations are suggested as you type.
  • Three reports side by side, each laid out its own way.
  • The General section of the settings page: units and data refresh.

常见问题:

Is it free?

Yes, this plugin is totally free to use. Let the sunshine in. ☀️

Does it require a license or an API key?

No, this plugin uses the Open-Meteo API, an open-source weather API that needs no account and no API key. Its free access is for non-commercial use only: see the External services section below. For commercial use, enter the API key of an Open-Meteo subscription in the Providers section of the plugin settings. 😎

How does it work?

The plugin adds its own REST API endpoints: one serves the weather forecast, another finds locations by name. In the Block Editor, a data store fetches the forecast and passes it to the Weather block and all its inner blocks through block context. On the front end, the blocks are rendered on the server, then the Interactivity API keeps the data up to date in the browser. ⚡️

Where can I find the source code?

On GitHub: see the Source code section of the description.

Can I use a weather service other than Open-Meteo?

Open-Meteo is the only one included for now. The plugin was built so that others can join: a developer can register a new weather data provider in PHP, exactly the way Open-Meteo is registered: the handbook shows how. ⛅️

Can I change the weather icons?

Yes. Pick the icon collection for the whole site in the plugin settings, or for a single Weather block or icon in its sidebar. Developers can also register a collection of their own. 🌙

Can I customize the blocks?

Yes. Like core blocks, the Weather blocks come with the standard design tools, such as colors, spacing and typography, straight from the Block Editor. Beyond that, you can style them with theme.json, block style variations or plain CSS. Clear skies ahead. 🌤️

Does it work with widgets or shortcodes?

No, this plugin only provides blocks. It's your time to shine: move from widgets and shortcodes to the Block Editor! ⛈️

Does it work with the Classic Editor?

No, this plugin is only compatible with the Block Editor. Don’t let your website get clouded: make the switch to the Block Editor today! 🌧️

Can I use it with page builders?

No, this plugin only works with the Block Editor. Don’t wait for the weather to change: move on to the native Block Editor! 🌈

更新日志:

1.0.0