2017 © Pedro PelĂĄez
 

symfony-bundle weatherwidget-bundle

Widget to display current weather

image

infinitedevelopers/weatherwidget-bundle

Widget to display current weather

  • Thursday, January 15, 2015
  • by fdicioccio
  • Repository
  • 4 Watchers
  • 1 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

WeatherWidgetBundle

Twig extension to display a widget with the current wheater and temperature using openweathermap and cmfcmf/OpenWeatherMap-PHP-Api, (*1)

Installation

  • add dependencie in your composer.json :
"require": {
    [...],
    "infinitedevelopers/weatherwidget-bundle": "dev-master"
}
  • add package and dependencies in AppKernel.php
$bundles = array(
    [...],
    new InfiniteDevelopers\Base64Bundle\InfiniteDevelopersBase64Bundle(),
    new InfiniteDevelopers\WeatherWidgetBundle\InfiniteDevelopersWeatherWidgetBundle()
);

Configuration

add this in your config.yml, (*2)

infinite_developers_weather_widget: 
    owm_key: your_open_weather_map_api_key #default null
    owm_units: metric #or imperial (°F), default metric (°C)

Usage

Use it in a twig template like this, (*3)

{{ weather_widget('query') }}

query is an open weather map query exemple for current weather in Lyon, french city :, (*4)

{{ weather_widget('Lyon, France') }}

Roadmap

Coming soon * ~~caching open weather map request~~ * ~~serveral images for different weather conditions~~, (*5)

Suggestion * we're currenlyt using internal base64 converter twig extension for displaying images, we may change it, (*6)

Licence

Code is under MIT licence, image are free to use., (*7)

The Versions

15/01 2015

dev-master

9999999-dev http://github.com/InfiniteDevelopers/WeatherWidgetBundle

Widget to display current weather

  Sources   Download

MIT

The Requires

 

by François Di Cioccio

widget twig extension weather

27/08 2014

dev-cache

dev-cache http://github.com/InfiniteDevelopers/WeatherWidgetBundle

Widget to display current weather

  Sources   Download

MIT

The Requires

 

by François Di Cioccio

widget twig extension weather