{ "info": { "author": "Marian Steinbach", "author_email": "marian@sendung.de", "bugtrack_url": null, "classifiers": [], "description": "dwd-weather\n===========\n\nPython client to access DWD weather data (Germany)\n\nInstall\n~~~~~~~\n\n::\n\n pip install dwdweather\n\nQuick reference (Python module)\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n.. code:: python\n\n from dwdweather import DwdWeather\n from datetime import datetime\n\n # create client\n dw = DwdWeather()\n\n # Find closest station to position\n closest = dw.nearest_station(lon=7, lat=51)\n\n # The hour you're interested in.\n # The example is 2014-03-22 12:00 (UTC).\n query_hour = datetime(2014, 3, 22, 12)\n\n result = dw.query(station_id=closest[\"station_id\"], hour=query_hour)\n print result\n\n``DwdWeather.query()`` returns a dict with the following keys:\n\n- ``station_id``: Station identifier, as int.\n- ``datetime``: The hour as int, e.g. ``2013011212``.\n- ``precipitation_fallen``: Whether or not there has been precipitation\n within the hour, as int. 0 for no, 1 for yes.\n- ``precipitation_form``: TODO\n- ``precipitation_height``: Height of hourly precipitation in mm, as\n float.\n- ``precipitation_quality_level``: Data quality level, as int.\n- ``soiltemp_1_depth``: first soil temperature measurement, depth in\n meters, as float.\n- ``soiltemp_1_temperature``: first soil temperature measurement,\n temperature in degrees centigrade, as float.\n- ``soiltemp_2_depth``: second soil temperature measurement, depth in\n meters, as float.\n- ``soiltemp_2_temperature``: second soil temperature measurement,\n temperature in degrees centigrade, as float.\n- ``soiltemp_3_depth``: third soil temperature measurement, depth in\n meters, as float.\n- ``soiltemp_3_temperature``: third soil temperature measurement,\n temperature in degrees centigrade, as float.\n- ``soiltemp_4_depth``: fourth soil temperature measurement, depth in\n meters, as float.\n- ``soiltemp_4_temperature``: fourth soil temperature measurement,\n temperature in degrees centigrade, as float.\n- ``soiltemp_5_depth``: fifth soil temperature measurement, depth in\n meters, as float.\n- ``soiltemp_5_temperature``: fifth soil temperature measurement,\n temperature in degrees centigrade, as float.\n- ``soiltemp_quality_level``: soil temperature quality level, as int.\n- ``solar_quality_level``: quality level of solar data, as int.\n- ``solar_duration``: sunshine duration in minutes, as int.\n- ``solar_sky``: TODO\n- ``solar_global``: TODO\n- ``solar_atmosphere``: TODO\n- ``solar_zenith``: TODO\n- ``sun_duration``: Duration of sunshine per hour in minutes, as float.\n- ``sun_quality_level``: quality level of sunshine data, as int.\n- ``sun_structure_version``: version number, as int.\n- ``temphum_humidity``: relative air humidity in percent, as float.\n- ``temphum_quality_level``: data quality level of air temperature and\n humidity data, as int.\n- ``temphum_structure_version``: version number, as int.\n- ``temphum_temperature``: air temperature in degrees centigrade, as\n float.\n- ``wind_direction``: wind direction in degrees, as int (0 - 360).\n- ``wind_quality_level``: wind data quality level, as int.\n- ``wind_speed``: wind speed in meters per second, as float.\n- ``wind_structure_version``: version number, as int.\n\nCommand line utility:\n~~~~~~~~~~~~~~~~~~~~~\n\nGet closest station (first argument is longitude, second is latitude):\n\n::\n\n $ dwdweather station 7.0 51.0\n\nGet all stations:\n\n::\n\n $ dwdweather stations\n\nExport stations as CSV:\n\n::\n\n $ dwdweather stations -t csv -f stations.csv\n\nExport stations as GeoJSON:\n\n::\n\n $ dwdweather stations -t geojson -f stations.geojson\n\nGet weather at station for certain hour (UTC):\n\n::\n\n $ dwdweather weather 2667 2014060122\n\nSome notes\n~~~~~~~~~~\n\n- Data is cached in a local sqlite3 database for fast queries.\n- The Stations cache is filled upon first request to\n ``DwdWeather.stations()`` or ``DwdWeather.nearest_station()``\n- The Stations cache will not be refreshed automatically. Use\n ``DwdWeather.import_stations()`` to do this.\n- The Measures cache is filled upon first access to measures using\n ``DwdWeather.query()`` and updated whenever a query cannot be\n fullfilled from the cache.\n- The cache by default resides in ``~/.dwd-weather`` directory. This\n can be influenced using the ``cachepath`` argument of\n ``DwdWeather()``.\n- The amount of data can be ~60 MB per station for full historic extend\n and this will of course grow in the future.\n- If weather data is queried and the query can't be fullfilled from the\n cache, data is loaded from the server at every query. Even if the\n data has been updated a second before. If the server doesn't have\n data for the requested time (e.g. since it's not yet available), this\n causes superfluous network traffic and wait time. Certainly space for\n improvement here.\n\nStatus\n~~~~~~\n\nThis piece of software is in a very early stage. No test cases yet. Only\nused unter Python 2.7.5. Use at your own risk.\n\nLicense (Code)\n~~~~~~~~~~~~~~\n\nLicensed under the MTI license. See file LICENSE for details.\n\nData license\n~~~~~~~~~~~~\n\nThe DWD has information about their re-use policy in\n`German `__\nand\n`English `__.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/marians/dwd-weather", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "dwdweather", "package_url": "https://pypi.org/project/dwdweather/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/dwdweather/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/marians/dwd-weather" }, "release_url": "https://pypi.org/project/dwdweather/0.7/", "requires_dist": null, "requires_python": null, "summary": "Inofficial DWD weather data client (Deutscher Wetterdienst)", "version": "0.7" }, "last_serial": 1172285, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "c9dd6e6a1d06e23e7ecb0100796d7e0f", "sha256": "ac5ad45d06c38ac2c6ab4d14441ddf4f7c96c8f9fd130b40e2e9a30ed26c83fb" }, "downloads": -1, "filename": "dwdweather-0.1.tar.gz", "has_sig": false, "md5_digest": "c9dd6e6a1d06e23e7ecb0100796d7e0f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7029, "upload_time": "2014-07-17T10:53:50", "url": "https://files.pythonhosted.org/packages/5e/93/44c89cbfea197b23c3bf4b68aaefcf1678faf2d719304afaab1802306c01/dwdweather-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "640e3a04a3b6fde635bb0c53413194b1", "sha256": "79b9225cf936c27e67e66fb669cafff77bf86d1f623d5865ac20b545431f7d59" }, "downloads": -1, "filename": "dwdweather-0.2.tar.gz", "has_sig": false, "md5_digest": "640e3a04a3b6fde635bb0c53413194b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7018, "upload_time": "2014-07-17T10:56:22", "url": "https://files.pythonhosted.org/packages/2c/2d/06c49791839b22b323e83dec72da15aecceb7d9cc56baa05a0b159bdcdea/dwdweather-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "e4852ee82d8b29134712f28b36165586", "sha256": "33bab5fe2dee16c9aa222584a21637bf20335ddd38aa7cc54315c936581d35f1" }, "downloads": -1, "filename": "dwdweather-0.3.tar.gz", "has_sig": false, "md5_digest": "e4852ee82d8b29134712f28b36165586", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6471, "upload_time": "2014-07-18T08:41:45", "url": "https://files.pythonhosted.org/packages/ae/a7/7f166d2da6d08e0f636aa5c732b826397165193942c89a71baa1779ce654/dwdweather-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "117676be0b25c58abad8ca9c264c513e", "sha256": "9843ff4e476fde00eea717530dd88fdb1a6ddfc95410f64baa995f3cfd85e7bb" }, "downloads": -1, "filename": "dwdweather-0.4.tar.gz", "has_sig": false, "md5_digest": "117676be0b25c58abad8ca9c264c513e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7076, "upload_time": "2014-07-18T14:39:55", "url": "https://files.pythonhosted.org/packages/13/9b/52b558756baac9f9aa8bc59e45a0ffb5ec9dd4146da9462b6c4445631536/dwdweather-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "713345164548ad7ac29f32ed87814c02", "sha256": "3aaea9c47f726686033914892a4de534da0668e53b4244e3a8637fab35153690" }, "downloads": -1, "filename": "dwdweather-0.5.tar.gz", "has_sig": false, "md5_digest": "713345164548ad7ac29f32ed87814c02", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10819, "upload_time": "2014-07-23T16:13:43", "url": "https://files.pythonhosted.org/packages/42/f5/15b659b332750c941585746f04b115195a34440a4d56b04bd655d9407809/dwdweather-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "24a9cb9f77a4720b278d8373f21c43ec", "sha256": "25e04f5ce98d411d01e332b696cb1175a78674cd0d656e857191344b6f7fa8f4" }, "downloads": -1, "filename": "dwdweather-0.6.tar.gz", "has_sig": false, "md5_digest": "24a9cb9f77a4720b278d8373f21c43ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7119, "upload_time": "2014-07-25T14:28:16", "url": "https://files.pythonhosted.org/packages/4e/ad/3b9b4631661629721130085b05c8cb2b2d10f00a852b2aa9500711eacb83/dwdweather-0.6.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "2afb65f3fd7a99510ccb4dd15769d391", "sha256": "5fb93c59fbae9ae89d7527919a55a8dd885dfbf77098e17aacd539b0d4de88ff" }, "downloads": -1, "filename": "dwdweather-0.7.tar.gz", "has_sig": false, "md5_digest": "2afb65f3fd7a99510ccb4dd15769d391", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10833, "upload_time": "2014-07-28T21:03:49", "url": "https://files.pythonhosted.org/packages/ee/4f/4bd3ceff7b6158133d6e7cbfd68f27e4d72fd2f80c83d032944e16bbbb2f/dwdweather-0.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2afb65f3fd7a99510ccb4dd15769d391", "sha256": "5fb93c59fbae9ae89d7527919a55a8dd885dfbf77098e17aacd539b0d4de88ff" }, "downloads": -1, "filename": "dwdweather-0.7.tar.gz", "has_sig": false, "md5_digest": "2afb65f3fd7a99510ccb4dd15769d391", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10833, "upload_time": "2014-07-28T21:03:49", "url": "https://files.pythonhosted.org/packages/ee/4f/4bd3ceff7b6158133d6e7cbfd68f27e4d72fd2f80c83d032944e16bbbb2f/dwdweather-0.7.tar.gz" } ] }