About Markup Yahoo! Weather
Display weather forecast using Yahoo! Weather API
Markup modules that are called upon to generate or parse markup (like HTML). Markup modules are most often used on the front-end of a site (rather than admin).
Should be safe for use in production environments. *
|Compatibility||2.2, 2.3, 2.4, 2.5, 2.6, 2.7|
|Date Added||July 22, 2013|
|Last Updated||March 31, 2016|
This module's files should be placed in /site/modules/MarkupYahooWeather/
How to install or uninstall modules
Display weather forecast using Yahoo! Weather API in ProcessWire
Unzip/copy module directory to /site/modules/ directory.
Click "Refresh" on ProcessWire Admin Modules page and Markup Yahoo! Weather will appear. Click "Install" button to install the module.
You can call the module in two different ways:
This is a basic call that renders the module, use this if you want only one instance of the module shown with WOEID set in the module settings.
<?php echo $modules->get('MarkupYahooWeather')->render(); ?>
If you want to show multiple instances of the module, call it this way:
$weather = $modules->get('MarkupYahooWeather');
$weather->woeid = 12587912; echo $weather->render();
$weather->woeid = 44418; echo $weather->render();
This module has the following options:
WOEID (Where On Earth ID) is an unique identifier for each city, you can easily find WOEID by using this site: http://woeid.rosselliot.co.nz. Default = Zagreb
Sets PHP locale, needed for localized date display. Default = en_US.UTF-8
Converts international date names to right format. Default = ISO-8859-1
Sets desired date output, formatted with PHP strftime function. Default = %A, %d.%m.%Y.
Cache time in minutes, caches .xml file(s) retrieved from Yahoo! API and pulls the data locally. Default = 5 minutes
Show weather conditions in Celsius or Fahrenheit scale (temperature: C/F; wind speed: km/h, mph; sunrise and sunset: 24h, am/pm).
Shows extended 5 day forecast, if unchecked, only current weather will be shown. Default = Checked
Shows wind direction and speed. Default = Checked
Shows sunrise and sunset time. Default = Checked
Renders script and stylesheet during page render, if you prefer to include them manually, turn this option off. Default = Checked
If "Autoload script and stylesheet" option is checked, you can select where script should be rendered automatically, before the end of head or body tag. Default = Unchecked
Deletes locally stored and cached .xml file(s) from Yahoo! API for all instances of the module.
Copyright 2015 Nikola Vidoni
No comments yet. Be the first to post!
Your e-mail is kept confidential and not included with your comment. Website is optional.
- Admin Helpers
- Core Modules
- Development Tools
- Field Types
- Input Fields
- Language Modules
- Language Packs
- Markup Generation
- Premium Modules
- Process Modules
- Proof of Concept
- Site Profiles
- Social, Feeds, Services
- Text Formatters
- Other Modules
- Users and Access
*Use modules at your own risk. There are no guarantees or warranties. It is recommended that you backup your site and database before installing new modules.