friendica-addons-sekb/curweather
Roland Häder f4763f67ad [curweather] x() no longer used and more (#669)
* [curweather] Fixes/rewrites:
- Added `App` as type-hint for $a and no & (call-by-reference) anymore
- use empty() instead of deprecated x()
- opening curly brace belongs into new line after function/method declaration
- added a lot other curly braces for better readability
- added spaces and empty lines

* [curweather] CR request:
- added/removed spaces
- added missing line-feed after opening curly brace

* [curweather] Another new line-feed added

* [curweather] CR request:
- added/removed extra spaces
- removed trailing spaces
- nicely indented code block with `'$foo' => 'bar'`

* [curweather] CR request:
- removed stray space
2018-07-24 20:18:59 -04:00
..
lang uCS translation of the curweather addon THX Aditoo 2018-07-06 06:32:21 +02:00
templates [curweather] Fix widget layout. [friendica#5473] (#662) 2018-07-23 17:06:09 -04:00
curweather.css [curweather] Fix widget layout. [friendica#5473] (#662) 2018-07-23 17:06:09 -04:00
curweather.php [curweather] x() no longer used and more (#669) 2018-07-24 20:18:59 -04:00
README.md added a note about XML/JSON to the README 2015-07-13 18:59:54 +02:00

Current Weather

If activated by your user this addon adds a widget to the users network tab sidebar showing current weather informations (temperature, relative humidity, wind conditions and preassure) from OpenWeatherMap. The user can configure the location as e.g. Berlin,DE or the zip code "14476,DE".

The language for the request at OpenWeatherMap is set to the UI language of friendica. If the string for the description of the current weather conditions is available in this language depends on OpenWeatherMap, fallback is english.

You should get an APPID from OpenWeatherMap if you want to use this widget. You can register here.

Credits

  • Tony Baldwin wrote the original addon for Friendica
  • Fabio Comuni
  • Tobias Diekershoff switched the sources to OpenWeatherMap after the original provider turned off support for locations outside of the USA.

Known Issues

  • Localization does not work (Jul 15) data requested via XML are EN only but have moew information available compared to data requested via JSON which is available in other languages as well. Right now we use the XML dataset