Skip to main content

Get the forecast from the norwegian wheather service in python

Project description

Library for the norwegian wheather service in python.

#### Usage
from yr.libyr import Yr

weather = Yr(location_name='Norge/Telemark/Skien/Skien')
now =


#### This returns
"@from": "2014-06-04T08:00:00",
"@to": "2014-06-04T12:00:00",
"@period": "1",
"symbol": {
"@number": "3",
"@numberEx": "3",
"@name": "Partly cloudy",
"@var": "03d"
"precipitation": {
"@value": "0",
"@minvalue": "0",
"@maxvalue": "0.1"
"windDirection": {
"@deg": "159.4",
"@code": "SSE",
"@name": "South-southeast"
"windSpeed": {
"@mps": "1.3",
"@name": "Light air"
"temperature": {
"@unit": "celsius",
"@value": "13"
"pressure": {
"@unit": "hPa",
"@value": "1012.1"

For more usage examples visit folder [examples](/yr/examples) or project [wiki](

Pull requests are very welcomed! :-)

#### Changelog (2014 Jul 10)

* Bugfix: pypi/pip installer in ''

1.3.1 (2014 Jul 10)

* Bugfix: caching mechanism in 'is_fresh' function ~> thanks to antorweep
* Improve examples

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for python-yr, version
Filename, size File type Python version Upload date Hashes
Filename, size python-yr- (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page