{ "info": { "author": "Fr\u00e9d\u00e9ric KIEBER", "author_email": "contact@frkb.fr", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Pyramid", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", "Topic :: Scientific/Engineering :: Atmospheric Science" ], "description": "Weather Data Web application\n============================\n\nFor the moment, only cron.py works.\nThe rest of this README file is not relevant.\nPlease look into cron.py for explanations.\nWait next releases to have full description.\n\nIn one word :\n\nInstall this software (For fedora)\n$ sudo dnf install python3-pip\n$ sudo dnf install mariadb-devel\n$ sudo dnf install gcc\n$ sudo dnf install redhat-rpm-config\n$ pip install wdwapp\n\nDownload development.ini file from : http://static.frkb.fr/wdwapp\nExemple. Do : wget http://static.frkb.fr/wdwapp/development.ini\n\nAdapt this file for your need.\n\nCreate a database (empty) for this app.\nIn phpMyAdmin for exemple you can do :\nCREATE USER 'wdwapp'@'localhost' IDENTIFIED BY 'my secret password';\nGRANT USAGE ON *.* TO 'wdwapp'@'localhost' REQUIRE NONE WITH\nMAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0\nMAX_USER_CONNECTIONS 0;CREATE DATABASE IF NOT EXISTS `wdwapp`;GRANT ALL\nPRIVILEGES ON `wdwapp`.* TO 'wdwapp'@'localhost';\n\nCreate tables :\n$ wdwapp_initialize_db development.ini\n\nPut in a cron job this command :\n$ wdwapp_cron /path/to/development.ini\n\nBecause by default data is saved every 15 minutes, it is a good idea to call\nthe cron job 3 minutes after. This mean every hour at 3, 18, 33 and 48 minute.\nTo do tis with con insert this line in the crontab :\n3,18,33,48 * * * * wdwapp_cron /path/to/development.ini\n\nStart web server :\n$ gunicorn --paste development.ini\n\n\n\nDO NOT USE the rest of this file =============================================\n\nGetting Started\n---------------\n\n- Change directory into your newly created project::\n\n cd meteoweb\n\n- Create a Python virtual environment::\n\n python3 -m venv env\n\n- Upgrade packaging tools::\n\n env/bin/pip install --upgrade pip setuptools\n\n- Install the project in editable mode with its testing requirements::\n\n env/bin/pip install -e \".[testing]\"\n\n- Run your project's tests::\n\n env/bin/pytest\n\n- Download ini files::\n\n wget http://static.frkb.fr/wdwapp/development.ini\n wget http://static.frkb.fr/wdwapp/production.ini\n\n- Adapt ``domaines`` entry in ``[app:main]`` section from ini file\n\tsee on https://api.ovh.com/ how to obtain keys.\n\t Or go directly to https://api.ovh.com/createToken/index.cgi\n\n- Run your project::\n\n env/bin/pserve development.ini\n or\n env/bin/pserve production.ini\n\n- Acces your project:\n\n http://localhost:6543\n\n- Retrieve weather data using a cron job.\n\n Get the URL http://localhost:6543/cron every 15 minutes.\n The best way is to add the following line in a crontab :\n\n */15 * * * * wget -q -O /dev/null http://dev.local:6543/cron\n\n Replace dev.local:6543 with your domain if you have one.\n The interval used to call this service determine the data interval.\n\n\n\n\nChange log\n----------\n\n- **0.0.8** 2017/12/28\n\n - Data base update. Suppress unique index on sensor id in location.\n Please run V007to008.sql available on http://static.frkb.fr/wdwapp\n\n Corrections :\n - When new sensor is detected save first data received.\n - Internal Server Error after lost MySql connection due to interactive\n timeout.\n Resolved by adding pool_pre_ping=True to create_engine.\n\n- **0.0.7** 2017/12/28\n\n - Data base update. Add rank and grah color to location.\n Please run V006to007.sql available on http://static.frkb.fr/wdwapp\n - Secure humidity reading. Cannot be below 1 or upper 100.\n - Added detail view of last 24h data for a location.\n\n- **0.0.6** 2017/12/26\n\n - Beginning with the webserver.\n A first page with last datas is available (in french sorry).\n - Data base update. Add long description to server.\n Please run V004to005.sql available on http://static.frkb.fr/wdwapp\n - Removed tests.\n\n- **0.0.4** 2017/12/25\n\n\t- Remove return value.\n - Change logging system to manage different levels (debug, error, warning,\n etc.). In this way, for example, warnings can be send by mail from cron.\n This implies mail option from log() have been removed.\n - Suppress of backup file. Replaced by sensor_data table.\n This table is indexed with sensor ID and timestamp so it is easier to\n re-process data for a new sensor (re-process part need to be written).\n\n- **0.0.3** 2017/12/22\n\n\t- Rounding results to avoid truncate warning during database update.\n - Avoid to insert already existing weather data.\n\n- **0.0.1** 2017/12/21\n\n\tFirst version.\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "webapp wdwsrv weather", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "wdwapp", "package_url": "https://pypi.org/project/wdwapp/", "platform": "", "project_url": "https://pypi.org/project/wdwapp/", "project_urls": null, "release_url": "https://pypi.org/project/wdwapp/0.0.8/", "requires_dist": [ "pyramid", "pyramid-chameleon", "deform", "sqlalchemy", "pyramid-tm", "gunicorn", "zope.sqlalchemy", "mysqlclient", "meteocalc", "requests", "bcrypt" ], "requires_python": "", "summary": "Webapps for recording and displaying weather data", "version": "0.0.8" }, "last_serial": 3625194, "releases": { "0.0.6": [ { "comment_text": "", "digests": { "md5": "85bf08da48fda8aedbe008d651863d3d", "sha256": "e35ef13fcbd4ba9b329f1a79ed26c3cdca6e1ecea7035a8d1c65d0044ca00917" }, "downloads": -1, "filename": "wdwapp-0.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "85bf08da48fda8aedbe008d651863d3d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 30821, "upload_time": "2017-12-26T00:00:15", "url": "https://files.pythonhosted.org/packages/88/09/cbc49df56e23f70a59de3089dff4b1fa43bd59629164171c28bec6be74d6/wdwapp-0.0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "62078529aac1d51782405b99c3404f57", "sha256": "d40a55a1692c835ff794b17bf975d6ab460d4fd6bb65889d5cca5490fdb5d298" }, "downloads": -1, "filename": "wdwapp-0.0.6.tar.gz", "has_sig": false, "md5_digest": "62078529aac1d51782405b99c3404f57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23018, "upload_time": "2017-12-26T00:00:17", "url": "https://files.pythonhosted.org/packages/b1/4e/c5fe746d01f76cf049776760bede0d1ab4ddc400a837d76fc0592c47db86/wdwapp-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "302084ddc74515a23c8347e922fcd4f4", "sha256": "125581e7d614df243d2ea65bc9d074e15c89ba150109e96e11c750392882a227" }, "downloads": -1, "filename": "wdwapp-0.0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "302084ddc74515a23c8347e922fcd4f4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 31853, "upload_time": "2017-12-28T13:49:12", "url": "https://files.pythonhosted.org/packages/2b/91/9650714caf9009fef89f9de75f9bd96528e2d152a69682b4c414a610bce2/wdwapp-0.0.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "25c9f3410f533fbee7e15c4190778c4c", "sha256": "0bffdcde693acb7e2d8ef148585c52ef6fcd12a0274840c8e0661386b6a92ffe" }, "downloads": -1, "filename": "wdwapp-0.0.7.tar.gz", "has_sig": false, "md5_digest": "25c9f3410f533fbee7e15c4190778c4c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23534, "upload_time": "2017-12-28T13:49:15", "url": "https://files.pythonhosted.org/packages/95/e6/498757e86060a8123760ef66ad576e586ad85784286dac38e3921a0c0fab/wdwapp-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "7b354bf0f98e9fa9ae4186fb22797f17", "sha256": "4ec655741d6f9186515cac8059bca0b66caa1329e7e99d776ce4d81fe8f5c52a" }, "downloads": -1, "filename": "wdwapp-0.0.8-py3-none-any.whl", "has_sig": false, "md5_digest": "7b354bf0f98e9fa9ae4186fb22797f17", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 33404, "upload_time": "2018-02-28T13:21:36", "url": "https://files.pythonhosted.org/packages/4f/97/c2e53df8c296264d67b9d4a205410efbef927d3988df506753b8d7f855f5/wdwapp-0.0.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "27f86dfe4a1b2c8879b3db9e47123900", "sha256": "9a7df050c7cad25b63106eb38e56c341e79fdabf1db88bb51495408dd3b7e630" }, "downloads": -1, "filename": "wdwapp-0.0.8.tar.gz", "has_sig": false, "md5_digest": "27f86dfe4a1b2c8879b3db9e47123900", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24759, "upload_time": "2018-02-28T13:21:40", "url": "https://files.pythonhosted.org/packages/0a/77/04f79a2066b5ee79f167c9cff05068fae8c8f73fc3b89162dff74b2297ce/wdwapp-0.0.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7b354bf0f98e9fa9ae4186fb22797f17", "sha256": "4ec655741d6f9186515cac8059bca0b66caa1329e7e99d776ce4d81fe8f5c52a" }, "downloads": -1, "filename": "wdwapp-0.0.8-py3-none-any.whl", "has_sig": false, "md5_digest": "7b354bf0f98e9fa9ae4186fb22797f17", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 33404, "upload_time": "2018-02-28T13:21:36", "url": "https://files.pythonhosted.org/packages/4f/97/c2e53df8c296264d67b9d4a205410efbef927d3988df506753b8d7f855f5/wdwapp-0.0.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "27f86dfe4a1b2c8879b3db9e47123900", "sha256": "9a7df050c7cad25b63106eb38e56c341e79fdabf1db88bb51495408dd3b7e630" }, "downloads": -1, "filename": "wdwapp-0.0.8.tar.gz", "has_sig": false, "md5_digest": "27f86dfe4a1b2c8879b3db9e47123900", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24759, "upload_time": "2018-02-28T13:21:40", "url": "https://files.pythonhosted.org/packages/0a/77/04f79a2066b5ee79f167c9cff05068fae8c8f73fc3b89162dff74b2297ce/wdwapp-0.0.8.tar.gz" } ] }