Python buienradar library
=========================
Library and CLI tools for interacting with buienradar xml/api.
- https://data.buienradar.nl/2.0/feed/json
and precipitation forecast from:
- https://gpsgadget.buienradar.nl/data/raintext?lat=<latitude>&lon=<longitude>
Old XML-based APIs used before http://xml.buienradar.nl.
Requirements
------------
- Python 3.4 (or higher)
Description
-----------
This package is created as a library for the Home assistant buienradar component implementation. A CLI has been created mainly for debugging purposes but may be extended in the future for more real-world application if needed.
Installation
------------
.. code-block:: bash
$ pip install buienradar
Usage
-----
.. code-block:: bash
$ python -m buienradar -h
Command line interface for buienradar library.
Usage:
buienradar [-v | -vv] [options]
buienradar (-h | --help)
buienradar --version
Options:
-h --help Show this screen.
-v Increase verbosity.
-vv Increase verbosity more.
--version Show version.
--longitude=<longitude> Longitude to use [default: 5.119734]
--latitude=<latitude> Latitude to use [default: 52.091579]
--timeframe=<timeframe> Minutes to look ahead for
precipitation (5..120) [default: 60]
--usexml Use the (old) XML API; will use JSON API otherwise.
$ python -m buienradar
{'distance': 4.235064, 'success': True, 'msg': None, 'data': {'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/cc.png', 'condition': 'cloudy', 'exact': 'Heavily clouded', 'condcode': 'c', 'detailed': 'cloudy', 'exact_nl': 'Zwaar bewolkt'}, 'barometerfcname': 'Rain', 'barometerfc': 3, 'windgust': 12.2, 'attribution': 'Data provided by buienradar.nl', 'measured': datetime.datetime(2019, 3, 3, 20, 10, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'humidity': 80, 'rainlasthour': 0.1, 'temperature': 11.8, 'stationname': 'De Bilt (6260)', 'winddirection': 'Z', 'precipitation_forecast': {'timeframe': 60, 'average': 0, 'total': 0.0}, 'precipitation': 0.0, 'rainlast24hour': 3.9, 'forecast': [{'maxtemp': 9.0, 'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/f.png', 'condition': 'rainy', 'exact': 'Alternatingly cloudy with some light rain', 'condcode': 'f', 'detailed': 'partlycloudy-light-rain', 'exact_nl': 'Afwisselend bewolkt met (mogelijk) wat lichte regen'}, 'rainchance': 70, 'temperature': 9.0, 'snow': 0, 'rain': 4.0, 'min_rain': 4.0, 'max_rain': 4.0, 'windforce': 7, 'sunchance': 40, 'datetime': datetime.datetime(2019, 3, 4, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'winddirection': 'zw', 'mintemp': 8.0}, {'maxtemp': 0.0, 'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/q.png', 'condition': 'rainy', 'exact': 'Heavily clouded with rain', 'condcode': 'q', 'detailed': 'rainy', 'exact_nl': 'Zwaar bewolkt en regen'}, 'rainchance': 70, 'temperature': 0.0, 'snow': 0, 'rain': 4.0, 'min_rain': 1.0, 'max_rain': 4.0, 'windforce': 4, 'sunchance': 10, 'datetime': datetime.datetime(2019, 3, 5, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'winddirection': 'zw', 'mintemp': 4.0}, {'maxtemp': 0.0, 'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/q.png', 'condition': 'rainy', 'exact': 'Heavily clouded with rain', 'condcode': 'q', 'detailed': 'rainy', 'exact_nl': 'Zwaar bewolkt en regen'}, 'rainchance': 90, 'temperature': 0.0, 'snow': 0, 'rain': 9.0, 'min_rain': 5.0, 'max_rain': 9.0, 'windforce': 4, 'sunchance': 10, 'datetime': datetime.datetime(2019, 3, 6, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'winddirection': 'z', 'mintemp': 0.0}, {'maxtemp': 0.0, 'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/f.png', 'condition': 'rainy', 'exact': 'Alternatingly cloudy with some light rain', 'condcode': 'f', 'detailed': 'partlycloudy-light-rain', 'exact_nl': 'Afwisselend bewolkt met (mogelijk) wat lichte regen'}, 'rainchance': 70, 'temperature': 0.0, 'snow': 0, 'rain': 5.0, 'min_rain': 2.0, 'max_rain': 5.0, 'windforce': 5, 'sunchance': 30, 'datetime': datetime.datetime(2019, 3, 7, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'winddirection': 'zw', 'mintemp': 0.0}, {'maxtemp': 0.0, 'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/f.png', 'condition': 'rainy', 'exact': 'Alternatingly cloudy with some light rain', 'condcode': 'f', 'detailed': 'partlycloudy-light-rain', 'exact_nl': 'Afwisselend bewolkt met (mogelijk) wat lichte regen'}, 'rainchance': 40, 'temperature': 0.0, 'snow': 0, 'rain': 2.0, 'min_rain': 0.0, 'max_rain': 2.0, 'windforce': 4, 'sunchance': 30, 'datetime': datetime.datetime(2019, 3, 8, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'winddirection': 'w', 'mintemp': 0.0}], 'irradiance': 0, 'visibility': 22600, 'pressure': 997.2, 'groundtemperature': 11.3, 'feeltemperature': 9.2, 'windspeed': 7.2, 'windforce': 4, 'windazimuth': 187}}
$ python -m buienradar -v
INFO:__main__:Start...
INFO:buienradar.buienradar:Getting buienradar JSON data for latitude=52.091579, longitude=5.119734
INFO:buienradar.buienradar_json:Getting buienradar json data for latitude=52.091579, longitude=5.119734
INFO:buienradar.buienradar_json:Retrieving weather data (https://data.buienradar.nl/2.0/feed/json)...
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): data.buienradar.nl
INFO:buienradar.buienradar_json:Retrieving weather data (https://gpsgadget.buienradar.nl/data/raintext?lat=52.09&lon=5.12)...
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): gpsgadget.buienradar.nl
INFO:buienradar.buienradar_json:Parse ws data: latitude: 52.091579, longitude: 5.119734
INFO:__main__:result: {'data': {'temperature': 11.8, 'winddirection': 'Z', 'forecast': [{'temperature': 9.0, 'snow': 0, 'winddirection': 'zw', 'min_rain': 4.0, 'datetime': datetime.datetime(2019, 3, 4, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'maxtemp': 9.0, 'max_rain': 4.0, 'rain': 4.0, 'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/f.png', 'detailed': 'partlycloudy-light-rain', 'condition': 'rainy', 'exact_nl': 'Afwisselend bewolkt met (mogelijk) wat lichte regen', 'exact': 'Alternatingly cloudy with some light rain', 'condcode': 'f'}, 'windforce': 7, 'mintemp': 8.0, 'rainchance': 70, 'sunchance': 40}, {'temperature': 0.0, 'snow': 0, 'winddirection': 'zw', 'min_rain': 1.0, 'datetime': datetime.datetime(2019, 3, 5, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'maxtemp': 0.0, 'max_rain': 4.0, 'rain': 4.0, 'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/q.png', 'detailed': 'rainy', 'condition': 'rainy', 'exact_nl': 'Zwaar bewolkt en regen', 'exact': 'Heavily clouded with rain', 'condcode': 'q'}, 'windforce': 4, 'mintemp': 4.0, 'rainchance': 70, 'sunchance': 10}, {'temperature': 0.0, 'snow': 0, 'winddirection': 'z', 'min_rain': 5.0, 'datetime': datetime.datetime(2019, 3, 6, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'maxtemp': 0.0, 'max_rain': 9.0, 'rain': 9.0, 'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/q.png', 'detailed': 'rainy', 'condition': 'rainy', 'exact_nl': 'Zwaar bewolkt en regen', 'exact': 'Heavily clouded with rain', 'condcode': 'q'}, 'windforce': 4, 'mintemp': 0.0, 'rainchance': 90, 'sunchance': 10}, {'temperature': 0.0, 'snow': 0, 'winddirection': 'zw', 'min_rain': 2.0, 'datetime': datetime.datetime(2019, 3, 7, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'maxtemp': 0.0, 'max_rain': 5.0, 'rain': 5.0, 'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/f.png', 'detailed': 'partlycloudy-light-rain', 'condition': 'rainy', 'exact_nl': 'Afwisselend bewolkt met (mogelijk) wat lichte regen', 'exact': 'Alternatingly cloudy with some light rain', 'condcode': 'f'}, 'windforce': 5, 'mintemp': 0.0, 'rainchance': 70, 'sunchance': 30}, {'temperature': 0.0, 'snow': 0, 'winddirection': 'w', 'min_rain': 0.0, 'datetime': datetime.datetime(2019, 3, 8, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'maxtemp': 0.0, 'max_rain': 2.0, 'rain': 2.0, 'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/f.png', 'detailed': 'partlycloudy-light-rain', 'condition': 'rainy', 'exact_nl': 'Afwisselend bewolkt met (mogelijk) wat lichte regen', 'exact': 'Alternatingly cloudy with some light rain', 'condcode': 'f'}, 'windforce': 4, 'mintemp': 0.0, 'rainchance': 40, 'sunchance': 30}], 'feeltemperature': 9.2, 'precipitation': 0.0, 'visibility': 22600, 'windspeed': 7.2, 'humidity': 80, 'precipitation_forecast': {'timeframe': 60, 'total': 0.0, 'average': 0}, 'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/cc.png', 'detailed': 'cloudy', 'condition': 'cloudy', 'exact_nl': 'Zwaar bewolkt', 'exact': 'Heavily clouded', 'condcode': 'c'}, 'rainlast24hour': 3.9, 'windazimuth': 187, 'irradiance': 0, 'barometerfcname': 'Rain', 'stationname': 'De Bilt (6260)', 'attribution': 'Data provided by buienradar.nl', 'barometerfc': 3, 'windgust': 12.2, 'measured': datetime.datetime(2019, 3, 3, 20, 10, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'rainlasthour': 0.1, 'pressure': 997.2, 'groundtemperature': 11.3, 'windforce': 4}, 'success': True, 'distance': 4.235064, 'msg': None}
$ python -m buienradar -v --longitude=5.10 --latitude=52.1 --timeframe=45
INFO:__main__:Start...
INFO:buienradar.buienradar:Getting buienradar JSON data for latitude=52.1, longitude=5.1
INFO:buienradar.buienradar_json:Getting buienradar json data for latitude=52.1, longitude=5.1
INFO:buienradar.buienradar_json:Retrieving weather data (https://data.buienradar.nl/2.0/feed/json)...
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): data.buienradar.nl
INFO:buienradar.buienradar_json:Retrieving weather data (https://gpsgadget.buienradar.nl/data/raintext?lat=52.1&lon=5.1)...
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): gpsgadget.buienradar.nl
INFO:buienradar.buienradar_json:Parse ws data: latitude: 52.1, longitude: 5.1
INFO:__main__:result: {'data': {'rainlast24hour': 3.9, 'rainlasthour': 0.1, 'visibility': 22600, 'barometerfcname': 'Rain', 'measured': datetime.datetime(2019, 3, 3, 20, 10, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'windazimuth': 187, 'winddirection': 'Z', 'windforce': 4, 'humidity': 80, 'barometerfc': 3, 'temperature': 11.8, 'windgust': 12.2, 'pressure': 997.2, 'precipitation': 0.0, 'precipitation_forecast': {'timeframe': 45, 'total': 0.0, 'average': 0.0}, 'attribution': 'Data provided by buienradar.nl', 'irradiance': 0, 'feeltemperature': 9.2, 'groundtemperature': 11.3, 'condition': {'condcode': 'c', 'exact': 'Heavily clouded', 'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/cc.png', 'detailed': 'cloudy', 'condition': 'cloudy', 'exact_nl': 'Zwaar bewolkt'}, 'stationname': 'De Bilt (6260)', 'windspeed': 7.2, 'forecast': [{'temperature': 9.0, 'winddirection': 'zw', 'snow': 0, 'maxtemp': 9.0, 'max_rain': 4.0, 'rainchance': 70, 'windforce': 7, 'datetime': datetime.datetime(2019, 3, 4, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'mintemp': 8.0, 'condition': {'condcode': 'f', 'exact': 'Alternatingly cloudy with some light rain', 'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/f.png', 'detailed': 'partlycloudy-light-rain', 'condition': 'rainy', 'exact_nl': 'Afwisselend bewolkt met (mogelijk) wat lichte regen'}, 'sunchance': 40, 'rain': 4.0, 'min_rain': 4.0}, {'temperature': 0.0, 'winddirection': 'zw', 'snow': 0, 'maxtemp': 0.0, 'max_rain': 4.0, 'rainchance': 70, 'windforce': 4, 'datetime': datetime.datetime(2019, 3, 5, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'mintemp': 4.0, 'condition': {'condcode': 'q', 'exact': 'Heavily clouded with rain', 'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/q.png', 'detailed': 'rainy', 'condition': 'rainy', 'exact_nl': 'Zwaar bewolkt en regen'}, 'sunchance': 10, 'rain': 4.0, 'min_rain': 1.0}, {'temperature': 0.0, 'winddirection': 'z', 'snow': 0, 'maxtemp': 0.0, 'max_rain': 9.0, 'rainchance': 90, 'windforce': 4, 'datetime': datetime.datetime(2019, 3, 6, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'mintemp': 0.0, 'condition': {'condcode': 'q', 'exact': 'Heavily clouded with rain', 'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/q.png', 'detailed': 'rainy', 'condition': 'rainy', 'exact_nl': 'Zwaar bewolkt en regen'}, 'sunchance': 10, 'rain': 9.0, 'min_rain': 5.0}, {'temperature': 0.0, 'winddirection': 'zw', 'snow': 0, 'maxtemp': 0.0, 'max_rain': 5.0, 'rainchance': 70, 'windforce': 5, 'datetime': datetime.datetime(2019, 3, 7, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'mintemp': 0.0, 'condition': {'condcode': 'f', 'exact': 'Alternatingly cloudy with some light rain', 'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/f.png', 'detailed': 'partlycloudy-light-rain', 'condition': 'rainy', 'exact_nl': 'Afwisselend bewolkt met (mogelijk) wat lichte regen'}, 'sunchance': 30, 'rain': 5.0, 'min_rain': 2.0}, {'temperature': 0.0, 'winddirection': 'w', 'snow': 0, 'maxtemp': 0.0, 'max_rain': 2.0, 'rainchance': 40, 'windforce': 4, 'datetime': datetime.datetime(2019, 3, 8, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'mintemp': 0.0, 'condition': {'condcode': 'f', 'exact': 'Alternatingly cloudy with some light rain', 'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/f.png', 'detailed': 'partlycloudy-light-rain', 'condition': 'rainy', 'exact_nl': 'Afwisselend bewolkt met (mogelijk) wat lichte regen'}, 'sunchance': 30, 'rain': 2.0, 'min_rain': 0.0}]}, 'distance': 5.48199, 'msg': None, 'success': True}
Example python code:
.. code-block:: python
from buienradar.buienradar import (get_data, parse_data)
from buienradar.constants import (CONTENT, RAINCONTENT, SUCCESS)
# minutes to look ahead for precipitation forecast
# (5..120)
timeframe = 45
# gps-coordinates for the weather data
latitude = 52.1
longitude = 5.10
result = get_data(latitude=latitude,
longitude=longitude,
)
if result.get(SUCCESS):
data = result[CONTENT]
raindata = result[RAINCONTENT]
result = parse_data(data, raindata, latitude, longitude, timeframe)
print(result)
Example of returned data:
.. code-block:: python
{
'msg': None,
'success': True,
'distance': 5.48199
'data': {
'attribution': 'Data provided by buienradar.nl',
'barometerfc': 4,
'barometerfcname': 'Cloudy',
'condition': {
'exact_nl': 'Zwaar bewolkt en regen',
'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/q.png',
'condition': 'rainy',
'detailed': 'rainy',
'condcode': 'q',
'exact': 'Heavily clouded with rain',
'night': True
},
'feeltemperature': 8.8,
'groundtemperature': 11.3,
'humidity': 91,
'irradiance': 67,
'measured': datetime.datetime(2019, 3, 3, 12, 40, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>),
'precipitation': 0.1,
'precipitation_forecast': {
'average': 0.8,
'total': 0.6,
'timeframe': 45
},
'pressure': 1003.7,
'rainlast24hour': 2.8,
'rainlasthour': 0.2,
'stationname': 'De Bilt (6260)',
'temperature': 11.5,
'visibility': 10800
'windazimuth': 215,
'winddirection': 'ZW',
'windforce': 4,
'windgust': 12.9,
'windspeed': 7.4,
'forecast': [
{
'condition': {
'condition': 'rainy',
'condcode': 'f',
'detailed': 'partlycloudy-light-rain',
'exact': 'Alternatingly cloudy with some light rain',
'night': False},
'exact_nl': 'Afwisselend bewolkt met (mogelijk) wat lichte regen',
'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/f.png',
'sunchance': 40,
'temperature': 9.0
},
'datetime': datetime.datetime(2019, 3, 4, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>),
'max_rain': 4.0,
'maxtemp': 9.0,
'min_rain': 4.0,
'mintemp': 8.0,
'rain': 4.0,
'rainchance': 70,
'snow': 0,
'winddirection': 'zw',
'windforce': 7,
, {} ...
]
},
}
Use the constants defined in the buienradar component to get the data from the returned dictionary:
- DISTANCE: Distance between the given GPS coordinates and the selected weather-station (m)
- MESSAGE: Error message with more info regarding what went wrong
- SUCCESS: Boolean indicating if data was retrieved ok
- *STATUS_CODE: Sometimes present in data, if a http-get was not successful*
- *HEADERS: Sometimes present in data, if a http-get was not successful*
- CONTENT: get the weather data returned from get_data request
- RAINCONTENT: get the rain forcast data returned from get_data request
- DATA: weather data for the selected weather-station
- ATTRIBUTION: attribution to buienradar.nl
- BAROMETERFC: a numerical value for the barometric forecast (only when using json API (default))
- BAROMETERFCNAME: s textual value for the barometric forecast (only when using json API (default))
- 0: no pressure data available
- 1: Thunderstorms
- 2: Stormy
- 3: Rain
- 4: Cloudy
- 5: Unstable
- 6: Stable
- 7: Very dry
- CONDITION: The current condition
- CONDCODE: unique condition code (a-z)
- CONDITION: condition
- clear
- cloudy
- fog
- rainy
- snowy
- lightning
- DETAILED: more detailed condition
- clear
- partlycloudy
- cloudy
- partlycloudy-fog
- partlycloudy-light-rain
- partlycloudy-rain
- light-rain
- rainy
- snowy-rainy
- partlycloudy-light-snow
- partlycloudy-snow
- light-snow
- snowy
- partlycloudy-lightning
- lightning
- EXACT: the exact condition as reported (translated to english)
- EXACTNL: the exact condition as reported
- IMAGE: A symbol (url) for the current weather
- NIGHTTIME: indicator if the condition is a daytime or nighttime condition
- FEELTEMPERATURE: The feeltemperature (json only)
- GROUNDTEMP: the current ground temperature (in C)
- HUMIDITY: the relative humidity (%)
- IRRADIANCE: sun intensity in Watt per square meter (W/m2)
- MEASURED: the time the data was retrieved
- PRECIPITATION: the amount of precipitation/rain in mm/h
- PRECIPITATION_FORECAST: information on forecasted precipitation
- AVERAGE: the average expected precipitation (mm/h)
- TOTAL: the total expected precipitation (mm)
- TIMEFRAME: the time-frame for the forecasted precipitation (min)
- PRESSURE: the sea-level air pressure in hPa
- RAINLAST24HOUR: rainfall last 24 hours (json only)
- RAINLASTHOUR: rain fall in the lat houd (json only)
- STATIONNAME: the name of the selected meteo-station
- TEMPERATURE: the current temperature (in C)
- VISIBILITY: visibility in meters (m)
- WINDAZIMUTH: where the wind is coming from: N (North), Z (south), NO (North-East), etc.
- WINDDIRECTION: where the wind is coming from in degrees, with true north at 0° and progressing clockwise
- WINDFORCE: the wind speed/force in Bft
- WINDGUST: the wind-speed of wind gusts (m/s)
- WINDSPEED: the wind speed in m/s
- FORECAST: array of forcasted days
- CONDITION: the expected condition (see condition above)
- DATETIME: date for the forcasted data
- MAX_RAIN: the maximum expected rain (in mm)
- MAX_TEMP: the maximum temperature (in C)
- MIN_RAIN: the minimum expected rainfall (in mm)
- MIN_TEMP: the minimum temperature (in C)
- RAIN: the expected rain in (mm)
- RAIN_CHANCE: the chance for rain (%)
- SUN_CHANCE: the chance for sun (%)
- SNOW: the expected snowfall (in cm) (NOTE: will always be 0 when using json API!)
- TEMPERATURE: the temperature (in C)
- WINDFORCE: the wind speed/force in Bft
Raw data
{
"_id": null,
"home_page": "https://github.com/mjj4791/python-buienradar",
"name": "buienradar",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "buienradar weather",
"author": "mjj4791",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/4a/89/b80e9977e8932756ce11a6cae9171572a300466360a655efbc7999320697/buienradar-1.0.8.tar.gz",
"platform": null,
"description": "Python buienradar library\r\n=========================\r\n\r\nLibrary and CLI tools for interacting with buienradar xml/api.\r\n\r\n- https://data.buienradar.nl/2.0/feed/json\r\n\r\nand precipitation forecast from:\r\n\r\n- https://gpsgadget.buienradar.nl/data/raintext?lat=<latitude>&lon=<longitude>\r\n\r\nOld XML-based APIs used before http://xml.buienradar.nl.\r\n\r\nRequirements\r\n------------\r\n\r\n- Python 3.4 (or higher)\r\n\r\n\r\nDescription\r\n-----------\r\n\r\nThis package is created as a library for the Home assistant buienradar component implementation. A CLI has been created mainly for debugging purposes but may be extended in the future for more real-world application if needed.\r\n\r\nInstallation\r\n------------\r\n\r\n.. code-block:: bash\r\n\r\n $ pip install buienradar\r\n\r\nUsage\r\n-----\r\n\r\n.. code-block:: bash\r\n\r\n $ python -m buienradar -h\r\n Command line interface for buienradar library.\r\n\r\n Usage:\r\n buienradar [-v | -vv] [options]\r\n buienradar (-h | --help)\r\n buienradar --version\r\n\r\n Options:\r\n -h --help Show this screen.\r\n -v Increase verbosity.\r\n -vv Increase verbosity more.\r\n --version Show version.\r\n --longitude=<longitude> Longitude to use [default: 5.119734]\r\n --latitude=<latitude> Latitude to use [default: 52.091579]\r\n --timeframe=<timeframe> Minutes to look ahead for\r\n precipitation (5..120) [default: 60]\r\n --usexml Use the (old) XML API; will use JSON API otherwise.\r\n\r\n $ python -m buienradar\r\n {'distance': 4.235064, 'success': True, 'msg': None, 'data': {'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/cc.png', 'condition': 'cloudy', 'exact': 'Heavily clouded', 'condcode': 'c', 'detailed': 'cloudy', 'exact_nl': 'Zwaar bewolkt'}, 'barometerfcname': 'Rain', 'barometerfc': 3, 'windgust': 12.2, 'attribution': 'Data provided by buienradar.nl', 'measured': datetime.datetime(2019, 3, 3, 20, 10, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'humidity': 80, 'rainlasthour': 0.1, 'temperature': 11.8, 'stationname': 'De Bilt (6260)', 'winddirection': 'Z', 'precipitation_forecast': {'timeframe': 60, 'average': 0, 'total': 0.0}, 'precipitation': 0.0, 'rainlast24hour': 3.9, 'forecast': [{'maxtemp': 9.0, 'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/f.png', 'condition': 'rainy', 'exact': 'Alternatingly cloudy with some light rain', 'condcode': 'f', 'detailed': 'partlycloudy-light-rain', 'exact_nl': 'Afwisselend bewolkt met (mogelijk) wat lichte regen'}, 'rainchance': 70, 'temperature': 9.0, 'snow': 0, 'rain': 4.0, 'min_rain': 4.0, 'max_rain': 4.0, 'windforce': 7, 'sunchance': 40, 'datetime': datetime.datetime(2019, 3, 4, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'winddirection': 'zw', 'mintemp': 8.0}, {'maxtemp': 0.0, 'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/q.png', 'condition': 'rainy', 'exact': 'Heavily clouded with rain', 'condcode': 'q', 'detailed': 'rainy', 'exact_nl': 'Zwaar bewolkt en regen'}, 'rainchance': 70, 'temperature': 0.0, 'snow': 0, 'rain': 4.0, 'min_rain': 1.0, 'max_rain': 4.0, 'windforce': 4, 'sunchance': 10, 'datetime': datetime.datetime(2019, 3, 5, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'winddirection': 'zw', 'mintemp': 4.0}, {'maxtemp': 0.0, 'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/q.png', 'condition': 'rainy', 'exact': 'Heavily clouded with rain', 'condcode': 'q', 'detailed': 'rainy', 'exact_nl': 'Zwaar bewolkt en regen'}, 'rainchance': 90, 'temperature': 0.0, 'snow': 0, 'rain': 9.0, 'min_rain': 5.0, 'max_rain': 9.0, 'windforce': 4, 'sunchance': 10, 'datetime': datetime.datetime(2019, 3, 6, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'winddirection': 'z', 'mintemp': 0.0}, {'maxtemp': 0.0, 'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/f.png', 'condition': 'rainy', 'exact': 'Alternatingly cloudy with some light rain', 'condcode': 'f', 'detailed': 'partlycloudy-light-rain', 'exact_nl': 'Afwisselend bewolkt met (mogelijk) wat lichte regen'}, 'rainchance': 70, 'temperature': 0.0, 'snow': 0, 'rain': 5.0, 'min_rain': 2.0, 'max_rain': 5.0, 'windforce': 5, 'sunchance': 30, 'datetime': datetime.datetime(2019, 3, 7, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'winddirection': 'zw', 'mintemp': 0.0}, {'maxtemp': 0.0, 'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/f.png', 'condition': 'rainy', 'exact': 'Alternatingly cloudy with some light rain', 'condcode': 'f', 'detailed': 'partlycloudy-light-rain', 'exact_nl': 'Afwisselend bewolkt met (mogelijk) wat lichte regen'}, 'rainchance': 40, 'temperature': 0.0, 'snow': 0, 'rain': 2.0, 'min_rain': 0.0, 'max_rain': 2.0, 'windforce': 4, 'sunchance': 30, 'datetime': datetime.datetime(2019, 3, 8, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'winddirection': 'w', 'mintemp': 0.0}], 'irradiance': 0, 'visibility': 22600, 'pressure': 997.2, 'groundtemperature': 11.3, 'feeltemperature': 9.2, 'windspeed': 7.2, 'windforce': 4, 'windazimuth': 187}}\r\n\r\n $ python -m buienradar -v\r\n INFO:__main__:Start...\r\n INFO:buienradar.buienradar:Getting buienradar JSON data for latitude=52.091579, longitude=5.119734\r\n INFO:buienradar.buienradar_json:Getting buienradar json data for latitude=52.091579, longitude=5.119734\r\n INFO:buienradar.buienradar_json:Retrieving weather data (https://data.buienradar.nl/2.0/feed/json)...\r\n INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): data.buienradar.nl\r\n INFO:buienradar.buienradar_json:Retrieving weather data (https://gpsgadget.buienradar.nl/data/raintext?lat=52.09&lon=5.12)...\r\n INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): gpsgadget.buienradar.nl\r\n INFO:buienradar.buienradar_json:Parse ws data: latitude: 52.091579, longitude: 5.119734\r\n INFO:__main__:result: {'data': {'temperature': 11.8, 'winddirection': 'Z', 'forecast': [{'temperature': 9.0, 'snow': 0, 'winddirection': 'zw', 'min_rain': 4.0, 'datetime': datetime.datetime(2019, 3, 4, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'maxtemp': 9.0, 'max_rain': 4.0, 'rain': 4.0, 'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/f.png', 'detailed': 'partlycloudy-light-rain', 'condition': 'rainy', 'exact_nl': 'Afwisselend bewolkt met (mogelijk) wat lichte regen', 'exact': 'Alternatingly cloudy with some light rain', 'condcode': 'f'}, 'windforce': 7, 'mintemp': 8.0, 'rainchance': 70, 'sunchance': 40}, {'temperature': 0.0, 'snow': 0, 'winddirection': 'zw', 'min_rain': 1.0, 'datetime': datetime.datetime(2019, 3, 5, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'maxtemp': 0.0, 'max_rain': 4.0, 'rain': 4.0, 'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/q.png', 'detailed': 'rainy', 'condition': 'rainy', 'exact_nl': 'Zwaar bewolkt en regen', 'exact': 'Heavily clouded with rain', 'condcode': 'q'}, 'windforce': 4, 'mintemp': 4.0, 'rainchance': 70, 'sunchance': 10}, {'temperature': 0.0, 'snow': 0, 'winddirection': 'z', 'min_rain': 5.0, 'datetime': datetime.datetime(2019, 3, 6, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'maxtemp': 0.0, 'max_rain': 9.0, 'rain': 9.0, 'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/q.png', 'detailed': 'rainy', 'condition': 'rainy', 'exact_nl': 'Zwaar bewolkt en regen', 'exact': 'Heavily clouded with rain', 'condcode': 'q'}, 'windforce': 4, 'mintemp': 0.0, 'rainchance': 90, 'sunchance': 10}, {'temperature': 0.0, 'snow': 0, 'winddirection': 'zw', 'min_rain': 2.0, 'datetime': datetime.datetime(2019, 3, 7, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'maxtemp': 0.0, 'max_rain': 5.0, 'rain': 5.0, 'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/f.png', 'detailed': 'partlycloudy-light-rain', 'condition': 'rainy', 'exact_nl': 'Afwisselend bewolkt met (mogelijk) wat lichte regen', 'exact': 'Alternatingly cloudy with some light rain', 'condcode': 'f'}, 'windforce': 5, 'mintemp': 0.0, 'rainchance': 70, 'sunchance': 30}, {'temperature': 0.0, 'snow': 0, 'winddirection': 'w', 'min_rain': 0.0, 'datetime': datetime.datetime(2019, 3, 8, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'maxtemp': 0.0, 'max_rain': 2.0, 'rain': 2.0, 'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/f.png', 'detailed': 'partlycloudy-light-rain', 'condition': 'rainy', 'exact_nl': 'Afwisselend bewolkt met (mogelijk) wat lichte regen', 'exact': 'Alternatingly cloudy with some light rain', 'condcode': 'f'}, 'windforce': 4, 'mintemp': 0.0, 'rainchance': 40, 'sunchance': 30}], 'feeltemperature': 9.2, 'precipitation': 0.0, 'visibility': 22600, 'windspeed': 7.2, 'humidity': 80, 'precipitation_forecast': {'timeframe': 60, 'total': 0.0, 'average': 0}, 'condition': {'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/cc.png', 'detailed': 'cloudy', 'condition': 'cloudy', 'exact_nl': 'Zwaar bewolkt', 'exact': 'Heavily clouded', 'condcode': 'c'}, 'rainlast24hour': 3.9, 'windazimuth': 187, 'irradiance': 0, 'barometerfcname': 'Rain', 'stationname': 'De Bilt (6260)', 'attribution': 'Data provided by buienradar.nl', 'barometerfc': 3, 'windgust': 12.2, 'measured': datetime.datetime(2019, 3, 3, 20, 10, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'rainlasthour': 0.1, 'pressure': 997.2, 'groundtemperature': 11.3, 'windforce': 4}, 'success': True, 'distance': 4.235064, 'msg': None}\r\n\r\n $ python -m buienradar -v --longitude=5.10 --latitude=52.1 --timeframe=45\r\n INFO:__main__:Start...\r\n INFO:buienradar.buienradar:Getting buienradar JSON data for latitude=52.1, longitude=5.1\r\n INFO:buienradar.buienradar_json:Getting buienradar json data for latitude=52.1, longitude=5.1\r\n INFO:buienradar.buienradar_json:Retrieving weather data (https://data.buienradar.nl/2.0/feed/json)...\r\n INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): data.buienradar.nl\r\n INFO:buienradar.buienradar_json:Retrieving weather data (https://gpsgadget.buienradar.nl/data/raintext?lat=52.1&lon=5.1)...\r\n INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): gpsgadget.buienradar.nl\r\n INFO:buienradar.buienradar_json:Parse ws data: latitude: 52.1, longitude: 5.1\r\n INFO:__main__:result: {'data': {'rainlast24hour': 3.9, 'rainlasthour': 0.1, 'visibility': 22600, 'barometerfcname': 'Rain', 'measured': datetime.datetime(2019, 3, 3, 20, 10, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'windazimuth': 187, 'winddirection': 'Z', 'windforce': 4, 'humidity': 80, 'barometerfc': 3, 'temperature': 11.8, 'windgust': 12.2, 'pressure': 997.2, 'precipitation': 0.0, 'precipitation_forecast': {'timeframe': 45, 'total': 0.0, 'average': 0.0}, 'attribution': 'Data provided by buienradar.nl', 'irradiance': 0, 'feeltemperature': 9.2, 'groundtemperature': 11.3, 'condition': {'condcode': 'c', 'exact': 'Heavily clouded', 'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/cc.png', 'detailed': 'cloudy', 'condition': 'cloudy', 'exact_nl': 'Zwaar bewolkt'}, 'stationname': 'De Bilt (6260)', 'windspeed': 7.2, 'forecast': [{'temperature': 9.0, 'winddirection': 'zw', 'snow': 0, 'maxtemp': 9.0, 'max_rain': 4.0, 'rainchance': 70, 'windforce': 7, 'datetime': datetime.datetime(2019, 3, 4, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'mintemp': 8.0, 'condition': {'condcode': 'f', 'exact': 'Alternatingly cloudy with some light rain', 'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/f.png', 'detailed': 'partlycloudy-light-rain', 'condition': 'rainy', 'exact_nl': 'Afwisselend bewolkt met (mogelijk) wat lichte regen'}, 'sunchance': 40, 'rain': 4.0, 'min_rain': 4.0}, {'temperature': 0.0, 'winddirection': 'zw', 'snow': 0, 'maxtemp': 0.0, 'max_rain': 4.0, 'rainchance': 70, 'windforce': 4, 'datetime': datetime.datetime(2019, 3, 5, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'mintemp': 4.0, 'condition': {'condcode': 'q', 'exact': 'Heavily clouded with rain', 'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/q.png', 'detailed': 'rainy', 'condition': 'rainy', 'exact_nl': 'Zwaar bewolkt en regen'}, 'sunchance': 10, 'rain': 4.0, 'min_rain': 1.0}, {'temperature': 0.0, 'winddirection': 'z', 'snow': 0, 'maxtemp': 0.0, 'max_rain': 9.0, 'rainchance': 90, 'windforce': 4, 'datetime': datetime.datetime(2019, 3, 6, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'mintemp': 0.0, 'condition': {'condcode': 'q', 'exact': 'Heavily clouded with rain', 'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/q.png', 'detailed': 'rainy', 'condition': 'rainy', 'exact_nl': 'Zwaar bewolkt en regen'}, 'sunchance': 10, 'rain': 9.0, 'min_rain': 5.0}, {'temperature': 0.0, 'winddirection': 'zw', 'snow': 0, 'maxtemp': 0.0, 'max_rain': 5.0, 'rainchance': 70, 'windforce': 5, 'datetime': datetime.datetime(2019, 3, 7, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'mintemp': 0.0, 'condition': {'condcode': 'f', 'exact': 'Alternatingly cloudy with some light rain', 'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/f.png', 'detailed': 'partlycloudy-light-rain', 'condition': 'rainy', 'exact_nl': 'Afwisselend bewolkt met (mogelijk) wat lichte regen'}, 'sunchance': 30, 'rain': 5.0, 'min_rain': 2.0}, {'temperature': 0.0, 'winddirection': 'w', 'snow': 0, 'maxtemp': 0.0, 'max_rain': 2.0, 'rainchance': 40, 'windforce': 4, 'datetime': datetime.datetime(2019, 3, 8, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 'mintemp': 0.0, 'condition': {'condcode': 'f', 'exact': 'Alternatingly cloudy with some light rain', 'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/f.png', 'detailed': 'partlycloudy-light-rain', 'condition': 'rainy', 'exact_nl': 'Afwisselend bewolkt met (mogelijk) wat lichte regen'}, 'sunchance': 30, 'rain': 2.0, 'min_rain': 0.0}]}, 'distance': 5.48199, 'msg': None, 'success': True}\r\n\r\n\r\nExample python code:\r\n\r\n.. code-block:: python\r\n\r\n from buienradar.buienradar import (get_data, parse_data)\r\n from buienradar.constants import (CONTENT, RAINCONTENT, SUCCESS)\r\n\r\n # minutes to look ahead for precipitation forecast\r\n # (5..120)\r\n timeframe = 45\r\n\r\n # gps-coordinates for the weather data\r\n latitude = 52.1\r\n longitude = 5.10\r\n\r\n result = get_data(latitude=latitude,\r\n longitude=longitude,\r\n )\r\n\r\n if result.get(SUCCESS):\r\n data = result[CONTENT]\r\n raindata = result[RAINCONTENT]\r\n\r\n result = parse_data(data, raindata, latitude, longitude, timeframe)\r\n\r\n print(result)\r\n\r\nExample of returned data:\r\n\r\n.. code-block:: python\r\n\r\n {\r\n 'msg': None,\r\n 'success': True,\r\n 'distance': 5.48199\r\n 'data': {\r\n 'attribution': 'Data provided by buienradar.nl',\r\n 'barometerfc': 4,\r\n 'barometerfcname': 'Cloudy',\r\n 'condition': {\r\n 'exact_nl': 'Zwaar bewolkt en regen',\r\n 'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/q.png',\r\n 'condition': 'rainy',\r\n 'detailed': 'rainy',\r\n 'condcode': 'q',\r\n 'exact': 'Heavily clouded with rain',\r\n 'night': True\r\n },\r\n 'feeltemperature': 8.8,\r\n 'groundtemperature': 11.3,\r\n 'humidity': 91,\r\n 'irradiance': 67,\r\n 'measured': datetime.datetime(2019, 3, 3, 12, 40, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>),\r\n 'precipitation': 0.1,\r\n 'precipitation_forecast': {\r\n 'average': 0.8,\r\n 'total': 0.6,\r\n 'timeframe': 45\r\n },\r\n 'pressure': 1003.7,\r\n 'rainlast24hour': 2.8,\r\n 'rainlasthour': 0.2,\r\n 'stationname': 'De Bilt (6260)',\r\n 'temperature': 11.5,\r\n 'visibility': 10800\r\n 'windazimuth': 215,\r\n 'winddirection': 'ZW',\r\n 'windforce': 4,\r\n 'windgust': 12.9,\r\n 'windspeed': 7.4,\r\n 'forecast': [\r\n {\r\n 'condition': {\r\n 'condition': 'rainy',\r\n 'condcode': 'f',\r\n 'detailed': 'partlycloudy-light-rain',\r\n 'exact': 'Alternatingly cloudy with some light rain',\r\n 'night': False},\r\n 'exact_nl': 'Afwisselend bewolkt met (mogelijk) wat lichte regen',\r\n 'image': 'https://www.buienradar.nl/resources/images/icons/weather/30x30/f.png',\r\n 'sunchance': 40,\r\n 'temperature': 9.0\r\n },\r\n 'datetime': datetime.datetime(2019, 3, 4, 0, 0, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>),\r\n 'max_rain': 4.0,\r\n 'maxtemp': 9.0,\r\n 'min_rain': 4.0,\r\n 'mintemp': 8.0,\r\n 'rain': 4.0,\r\n 'rainchance': 70,\r\n 'snow': 0,\r\n 'winddirection': 'zw',\r\n 'windforce': 7,\r\n , {} ...\r\n ]\r\n },\r\n }\r\n\r\n\r\n\r\nUse the constants defined in the buienradar component to get the data from the returned dictionary:\r\n\r\n- DISTANCE: Distance between the given GPS coordinates and the selected weather-station (m)\r\n- MESSAGE: Error message with more info regarding what went wrong\r\n- SUCCESS: Boolean indicating if data was retrieved ok\r\n- *STATUS_CODE: Sometimes present in data, if a http-get was not successful*\r\n- *HEADERS: Sometimes present in data, if a http-get was not successful*\r\n- CONTENT: get the weather data returned from get_data request\r\n- RAINCONTENT: get the rain forcast data returned from get_data request\r\n- DATA: weather data for the selected weather-station\r\n\r\n - ATTRIBUTION: attribution to buienradar.nl\r\n - BAROMETERFC: a numerical value for the barometric forecast (only when using json API (default))\r\n - BAROMETERFCNAME: s textual value for the barometric forecast (only when using json API (default))\r\n\r\n - 0: no pressure data available\r\n - 1: Thunderstorms\r\n - 2: Stormy\r\n - 3: Rain\r\n - 4: Cloudy\r\n - 5: Unstable\r\n - 6: Stable\r\n - 7: Very dry\r\n\r\n - CONDITION: The current condition\r\n - CONDCODE: unique condition code (a-z)\r\n - CONDITION: condition\r\n\r\n - clear\r\n - cloudy\r\n - fog\r\n - rainy\r\n - snowy\r\n - lightning\r\n\r\n - DETAILED: more detailed condition\r\n\r\n - clear\r\n - partlycloudy\r\n - cloudy\r\n - partlycloudy-fog\r\n - partlycloudy-light-rain\r\n - partlycloudy-rain\r\n - light-rain\r\n - rainy\r\n - snowy-rainy\r\n - partlycloudy-light-snow\r\n - partlycloudy-snow\r\n - light-snow\r\n - snowy\r\n - partlycloudy-lightning\r\n - lightning\r\n\r\n - EXACT: the exact condition as reported (translated to english)\r\n - EXACTNL: the exact condition as reported\r\n - IMAGE: A symbol (url) for the current weather\r\n - NIGHTTIME: indicator if the condition is a daytime or nighttime condition\r\n\r\n - FEELTEMPERATURE: The feeltemperature (json only)\r\n - GROUNDTEMP: the current ground temperature (in C)\r\n - HUMIDITY: the relative humidity (%)\r\n - IRRADIANCE: sun intensity in Watt per square meter (W/m2)\r\n - MEASURED: the time the data was retrieved\r\n - PRECIPITATION: the amount of precipitation/rain in mm/h\r\n - PRECIPITATION_FORECAST: information on forecasted precipitation\r\n\r\n - AVERAGE: the average expected precipitation (mm/h)\r\n - TOTAL: the total expected precipitation (mm)\r\n - TIMEFRAME: the time-frame for the forecasted precipitation (min)\r\n - PRESSURE: the sea-level air pressure in hPa\r\n - RAINLAST24HOUR: rainfall last 24 hours (json only)\r\n - RAINLASTHOUR: rain fall in the lat houd (json only)\r\n - STATIONNAME: the name of the selected meteo-station\r\n - TEMPERATURE: the current temperature (in C)\r\n - VISIBILITY: visibility in meters (m)\r\n - WINDAZIMUTH: where the wind is coming from: N (North), Z (south), NO (North-East), etc.\r\n - WINDDIRECTION: where the wind is coming from in degrees, with true north at 0\u00b0 and progressing clockwise\r\n - WINDFORCE: the wind speed/force in Bft\r\n - WINDGUST: the wind-speed of wind gusts (m/s)\r\n - WINDSPEED: the wind speed in m/s\r\n\r\n - FORECAST: array of forcasted days\r\n\r\n - CONDITION: the expected condition (see condition above)\r\n - DATETIME: date for the forcasted data\r\n - MAX_RAIN: the maximum expected rain (in mm)\r\n - MAX_TEMP: the maximum temperature (in C)\r\n - MIN_RAIN: the minimum expected rainfall (in mm)\r\n - MIN_TEMP: the minimum temperature (in C)\r\n - RAIN: the expected rain in (mm)\r\n - RAIN_CHANCE: the chance for rain (%)\r\n - SUN_CHANCE: the chance for sun (%)\r\n - SNOW: the expected snowfall (in cm) (NOTE: will always be 0 when using json API!)\r\n - TEMPERATURE: the temperature (in C)\r\n - WINDFORCE: the wind speed/force in Bft\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Library and CLI tools for interacting with buienradar.",
"version": "1.0.8",
"project_urls": {
"Homepage": "https://github.com/mjj4791/python-buienradar"
},
"split_keywords": [
"buienradar",
"weather"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "cfa22dc3e472912a8192c86a62e9cf6831fbcf2a22be9e3faf415de160b0a6ab",
"md5": "29ba986360026f376903fb614a7f4304",
"sha256": "e45bd8705c005df73db33bc531448a532705669866f3494c95c2aa6ed61899cb"
},
"downloads": -1,
"filename": "buienradar-1.0.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "29ba986360026f376903fb614a7f4304",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 21685,
"upload_time": "2025-02-14T22:10:13",
"upload_time_iso_8601": "2025-02-14T22:10:13.098415Z",
"url": "https://files.pythonhosted.org/packages/cf/a2/2dc3e472912a8192c86a62e9cf6831fbcf2a22be9e3faf415de160b0a6ab/buienradar-1.0.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "4a89b80e9977e8932756ce11a6cae9171572a300466360a655efbc7999320697",
"md5": "c11d6d0f9c4ed8e243900a75e1daba88",
"sha256": "9d8834558788cdd41e93a695c1dfe6568ed43245140ded7f04284c95384fde90"
},
"downloads": -1,
"filename": "buienradar-1.0.8.tar.gz",
"has_sig": false,
"md5_digest": "c11d6d0f9c4ed8e243900a75e1daba88",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 36603,
"upload_time": "2025-02-14T22:10:14",
"upload_time_iso_8601": "2025-02-14T22:10:14.751471Z",
"url": "https://files.pythonhosted.org/packages/4a/89/b80e9977e8932756ce11a6cae9171572a300466360a655efbc7999320697/buienradar-1.0.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-14 22:10:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "mjj4791",
"github_project": "python-buienradar",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"tox": true,
"lcname": "buienradar"
}