WP Manifestindependent plugin directory
manifest / utilities / wordpress-weather-shortcode-plugin

Weather Report Plugin self-updates

Display a weather report.

by Sam Coppock · github.com/samcoppock/wordpress-weather-shortcode-plugin · 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/samcoppock/wordpress-weather-shortcode-plugin/archive/refs/heads/master.zip

Ships its own WordPress updater (Update URI header), so new versions show up under Dashboard → Updates.

Display Weather Plugin

--- About ---

This is a plugin which provides a shortcode block which displays the current temperature and a description of the weather in any UK city.

-- Assumptions -- This guide assumes that you already have a wordpress instance working which you have admin access to. It also assumes knowledge of basic administration tasks such as use of the backend dashboard and use of the graphical page editor.

-- Requirements --

Wordpress 6.9 Php 8.4 Wordpress Docket Cache plugin ( optional ) openweathermap One Call API 3.0 subscription and API key ( https://openweathermap.org )

-- Installation --

  1. Copy the contents of the "current-weather" folder into wp-content/plugins folder in your site root.

  2. Enable the Weather Report plugin here.

    /wp-admin/plugins.php
  3. If you do not already have an API key for openweathermap sign up for the One Call API 3.0 service and generate an API key, The API key may take some time to activate so if it does not work Immediately wait for half an hour. https://openweathermap.org/price#onecall https://home.openweathermap.org/api_keys

  4. Set the $apiKey variable in \wp-content\plugins\current-weather\Includes\sccw-display-weather.php ( its near the top of the file).

-- Usage --

To insert a weather report shortcode simply visit any page while logged in as admin and add a shortcode block. an example shortcode is.

[sccw-weather city=”thame”]

Where 'thame' is any valid city or town name in England. If an invalid one if provided an error will be thrown.