# weather-collector
[![License: GPL v3](https://img.shields.io/badge/License-GPL_v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
![Python Versions](https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11%20%7C%20-blue)
![Style Black](https://warehouse-camo.ingress.cmh1.psfhosted.org/fbfdc7754183ecf079bc71ddeabaf88f6cbc5c00/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64652532307374796c652d626c61636b2d3030303030302e737667)
[![Documentation Status](https://readthedocs.org/projects/xml-formatter/badge/?version=latest)](https://prettify-py.readthedocs.io/en/latest/?badge=latest)
# Why
Need to register a command to collect weather data in difficult environments and as part of other automatation tasks. For example,
a regular, scheduled event triggers the collector.
# What
Build upon bulkhead to collect weather data without contaminating the package `bulkhead`
# Usage
-o specifies the filename
-i specifies the interval in seconds
-l the longitude
-t the latitude
```bash
weather-collector -o /home/dev/Documents/weather-collector/sample.csv -i 1 -l 53.551086 -t 9.993682
```
# Installation
## Production Build
```bash
pip install weather-collector
```
## Dev Build
Clone the repository with
### Linux
Run with one of the following:
```bash
bash install.sh
./install.sh
sh install.sh
```
### Windows
Double click on `install.bat` or run
```bash
install.bat
```
# Run sample
Place .env file with parameters in the directory
```bash
OpenWeatherMapKey=key
OpenWeatherMapURL=api.openweathermap.org
TomorrowIOKey=key
TomorrowIOURL=api.tomorrow.io
```
For robustness consider using `screen`
```bash
sudo apt-get install screen
```
To detach press `CTRL+A,CTRL+D`
To get back to a session type
```bash
screen -r
```
```bash
weather-collector -o ./sample.csv -i 60 -l 53.551086 -t 9.993682 &
```
Raw data
{
"_id": null,
"home_page": "https://codeberg.org/cap_jmk/weather-collector",
"name": "weather-collector",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "",
"keywords": "",
"author": "Julian M. Kleber",
"author_email": "julian.kleber@sail.black",
"download_url": "https://files.pythonhosted.org/packages/2a/a2/87eb45013e3604c289b7e58840efa3e38a389f0f43d405437ce67ff36392/weather_collector-0.1.9.tar.gz",
"platform": null,
"description": "# weather-collector\n\n[![License: GPL v3](https://img.shields.io/badge/License-GPL_v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n![Python Versions](https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11%20%7C%20-blue) \n![Style Black](https://warehouse-camo.ingress.cmh1.psfhosted.org/fbfdc7754183ecf079bc71ddeabaf88f6cbc5c00/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64652532307374796c652d626c61636b2d3030303030302e737667) \n[![Documentation Status](https://readthedocs.org/projects/xml-formatter/badge/?version=latest)](https://prettify-py.readthedocs.io/en/latest/?badge=latest)\n\n\n# Why \n\nNeed to register a command to collect weather data in difficult environments and as part of other automatation tasks. For example, \na regular, scheduled event triggers the collector. \n\n# What \n\nBuild upon bulkhead to collect weather data without contaminating the package `bulkhead`\n# Usage \n\n-o specifies the filename\n-i specifies the interval in seconds \n-l the longitude\n-t the latitude \n```bash\nweather-collector -o /home/dev/Documents/weather-collector/sample.csv -i 1 -l 53.551086 -t 9.993682 \n```\n\n# Installation\n\n## Production Build \n\n```bash \npip install weather-collector\n```\n\n## Dev Build\nClone the repository with\n\n\n### Linux \n\nRun with one of the following: \n```bash\nbash install.sh\n./install.sh\nsh install.sh\n```\n\n\n### Windows\n\nDouble click on `install.bat` or run\n\n```bash\ninstall.bat\n```\n\n# Run sample \n\nPlace .env file with parameters in the directory \n\n```bash \nOpenWeatherMapKey=key\nOpenWeatherMapURL=api.openweathermap.org\n\nTomorrowIOKey=key\nTomorrowIOURL=api.tomorrow.io\n\n```\n\nFor robustness consider using `screen`\n\n```bash\nsudo apt-get install screen\n```\n\nTo detach press `CTRL+A,CTRL+D`\n\nTo get back to a session type\n\n```bash\nscreen -r\n```\n\n\n```bash \nweather-collector -o ./sample.csv -i 60 -l 53.551086 -t 9.993682 &\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "CLI for collecting weather data",
"version": "0.1.9",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3ec32e956d20df642df2b8c9ec382e47dc2cda0ca92c6b1a59158b3e9aceff69",
"md5": "d31542a7770d414f5f40a60115e65c4d",
"sha256": "70196e4938019a93def7cf1c487ba986858656a033dba9d86cfae3ca91d99bac"
},
"downloads": -1,
"filename": "weather_collector-0.1.9-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d31542a7770d414f5f40a60115e65c4d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 7715,
"upload_time": "2023-01-06T21:48:17",
"upload_time_iso_8601": "2023-01-06T21:48:17.544582Z",
"url": "https://files.pythonhosted.org/packages/3e/c3/2e956d20df642df2b8c9ec382e47dc2cda0ca92c6b1a59158b3e9aceff69/weather_collector-0.1.9-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2aa287eb45013e3604c289b7e58840efa3e38a389f0f43d405437ce67ff36392",
"md5": "6be6adfda6d319e07dcf865cbd8a625f",
"sha256": "5a8a79ac0ec01d663423462fbff9102dc4827a5238a0381b4c2f87c5a1349d31"
},
"downloads": -1,
"filename": "weather_collector-0.1.9.tar.gz",
"has_sig": false,
"md5_digest": "6be6adfda6d319e07dcf865cbd8a625f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 7715,
"upload_time": "2023-01-06T21:48:19",
"upload_time_iso_8601": "2023-01-06T21:48:19.967284Z",
"url": "https://files.pythonhosted.org/packages/2a/a2/87eb45013e3604c289b7e58840efa3e38a389f0f43d405437ce67ff36392/weather_collector-0.1.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-06 21:48:19",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "weather-collector"
}