Random Image
Peace, Love and Rock & Roll!
My Account

Locator Plugin Updated, Weather Plugin Released


A Weather plugin has been released for glFusion 1.2.0 and higher.  This plugin uses Google's weather API to retrieve weather conditions based on postal code or city & state.  The block at the left is an example of this plugin in action.

The Locator plugin has been updated to version 1.0.2.  This release includes a fix for cases where floating-point numbers use a comma as the decimal separator, which MySQL cannot handle.  Also new is integration with the new Weather plugin, allowing weather conditions to be displayed on the location pages.

The Weather Plugin

The Weather plugin has no special requirements and needs no API key.  It simply retrieves weather data from Google and caches it in a database table for a (configurable) period of time.  The current weather can be displayed alone in a block, and forecasts can be displayed on the plugin's main page.  You can search for locations and see what the weather is like in those areas.

The API function allows other plugins to leveage the Weather plugin to display weather data (the Locator Plugin is the first to use this feature). A "weather" autotag is also available, with options for "current" or "full" weather display:

Current Conditions for Pasadena, CA
75.6 F / 24.2 C
Clear, Wind 0mph North
Sunday, November 19 2017 @ 02:42 PM PST H:iA
Sun

55/80
Clear
3mph SW
Mon

59/77
Partly Cloudy
3mph S
Tue

61/87
Partly Cloudy
2mph SSW
Wed

65/92
Clear
3mph SSE
Thu

63/92
Partly Cloudy
4mph SW
Powered by

The above was created by including [_weather:full Pasadena, CA_] in the page (remove the underscores; they're there to prevent the tag from being replaced).

The Locator Plugin

The Locator Plugin contains no major updates, but some minor fixes and refactoring.  The most significant new feature is the ability to use the Weather plugin to display data on the location detail page.  For an example, see Los Angeles City Hall.

To configure the integration, simply select "Yes" for "Integrate with the Weather Plugin" in the Locator Plugin's configuration screen.  While you're there you'll also notice a new option called "Offer to get directions on detail page."  Choose "Yes" to have a form created on the location page where visitors can enter their own address to get directions via Google Maps.  (No personal data is kept or even seen by your site; the form links directly to Google.)

 

Share It!

Be the first to comment
Random Image
Peace, Love and Rock & Roll!
My Account