Jump to content

Recommended Posts

Posted

Meteo is a weather integration module for ProcessWire. It fetches current weather and forecast data, normalizes responses from different providers into one predictable array format, and can optionally render ready-made weather widgets.

kop_meteo.thumb.jpg.23c9197171a21b7b80d16c4ad2666a36.jpg

Providers

Meteo supports:

  • Open-Meteo
  • OpenWeatherMap
  • WeatherAPI.com

Open-Meteo works without an API key. OpenWeatherMap and WeatherAPI.com can be used as primary or fallback providers when API keys are configured.

Features

  • Current weather, hourly forecast, and daily forecast
  • City geocoding
  • Provider fallback chain
  • File cache with configurable TTL
  • Structured array output for custom templates or frontend frameworks
  • Bundled widget templates: card, full, minimal
  • Widget themes: auto, light, dark
  • One-click Material M3 demo page installer
  • Error tracking via getLastError()

Basic usage

$meteo = $modules->get('Meteo');

$weather = $meteo->getWeather(40.7128, -74.0060, [
    'location_name' => 'King of Prussia',
    'timezone' => 'America/New_York',
]);

echo $weather['current']['temperature'];
echo $weather['current']['weather_label'];

Render a bundled widget:

echo $modules->Meteo->styleTag();

echo $modules->Meteo->renderWidgetForCity('King of Prussia', [
    'language' => 'en',
    'widget_theme' => 'auto',
], 'card');

 

Links

  • Like 3

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...