8000 Tags · NB-Dev/pyowm · GitHub
[go: up one dir, main page]

Skip to content

Tags

Tags

2.3.2

Toggle 2.3.2's commit message
Release 2.3.2 (csparpa#115)

* Set a test API key (the one in the API call examples from OWM API website)

* Try to fix Travis Virtualenv support for Py32

* Fix again

* Bump to version 2.3.1

* Don't commit coverage file

* Dockerfile (csparpa#106)

* First attempt

* Guide

* Fix Dockerfile and docs

* Update docs

* Change URL of documentation to comply with new readthedocs domain

* Backporting from master branch

* Refactor integration tests to use the API key specified in api_key.py

* Fix ValueError then sunrise_time & sunset time is less than zero when there is a polar day

* Fix ValueError then sunrise_time & sunset time is less than zero when there is a polar day

* Fix ValueError then sunrise_time & sunset time is less than zero when there is a polar day

* Fix ValueError then sunrise_time & sunset time is less than zero when there is a polar day

* Fix ValueError then sunrise_time & sunset time is less than zero when there is a polar day

* Messed up with Git... sunrise/sunset fix from csparpa#109 is OK now

* Sometimes Wind data is None

Hello !
I'm useing Homeassistant, and sometimes I got the following error:
```
Traceback (most recent call last):
  File "/home/titilambert/gits/domo/homeassitant/env/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 98, in _setup_platform
    discovery_info)
  File "/home/titilambert/gits/domo/homeassitant/env/lib/python3.4/site-packages/homeassistant/components/sensor/openweathermap.py", line 70, in setup_platform
    dev.append(OpenWeatherMapSensor(data, variable, unit))
  File "/home/titilambert/gits/domo/homeassitant/env/lib/python3.4/site-packages/homeassistant/components/sensor/openweathermap.py", line 94, in __init__
    self.update()
  File "/home/titilambert/gits/domo/homeassitant/env/lib/python3.4/site-packages/homeassistant/components/sensor/openweathermap.py", line 114, in update
    self.owa_client.update()
  File "/home/titilambert/gits/domo/homeassitant/env/lib/python3.4/site-packages/homeassistant/util/__init__.py", line 289, in wrapper
    result = method(*args, **kwargs)
  File "/home/titilambert/gits/domo/homeassitant/env/lib/python3.4/site-packages/homeassistant/components/sensor/openweathermap.py", line 179, in update
    self.longitude)
  File "/home/titilambert/gits/domo/homeassitant/config/deps/pyowm/webapi25/owm25.py", line 432, in three_hours_forecast_at_coords
    forecast = self._parsers['forecast'].parse_JSON(json_data)
  File "/home/titilambert/gits/domo/homeassitant/config/deps/pyowm/webapi25/forecastparser.py", line 66, in parse_JSON
    for item in d['list']]
  File "/home/titilambert/gits/domo/homeassitant/config/deps/pyowm/webapi25/forecastparser.py", line 66, in <listcomp>
    for item in d['list']]
  File "/home/titilambert/gits/domo/homeassitant/config/deps/pyowm/webapi25/weather.py", line 462, in weather_from_dictionary
    wind = d['wind'].copy()
AttributeError: 'NoneType' object has no attribute 'copy'
```

This patch fixes this error

* Regression test for csparpa#110

* update with new contributor

* Fixes for csparpa#110 and  csparpa#114

* Forgot...

* Were missing

* Bump to version 2.3.2

2.3.1

Toggle 2.3.1's commit message
Merge branch 'develop'

2.3.0

Toggle 2.3.0's commit message
Merge branch 'develop'

2.2.1

Toggle 2.2.1's commit message
Fix version prior to release

2.2

Toggle 2.2's commit message
Merge pull request csparpa#68 from csparpa/develop

Release 2.2.0

2.0.0

Toggle 2.0.0's commit message
Fixed error in lat/lon for Rio

1.2.0

Toggle 1.2.0's commit message
From now on Python2.6 is not officially supported. Removed relative T…

…ravis-CI hook.

1.0.0

Toggle 1.0.0's commit message
Updated environent values for release 1.0.0

0.4.0

Toggle 0.4.0's commit message
Release 0.4.0: implemented a basic cache system for the PyOWM library…

…. Fixed import about timeutils.py module which was broken

0.2.0

Toggle 0.2.0's commit message
Updated README.md and removed scripts for unit-tests execution as the…

…y won't be used anymore
0