CLI for collecting weather data
Project description
weather-collector
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
weather-collector -o /home/dev/Documents/weather-collector/sample.csv -i 1 -l 53.551086 -t 9.993682
Installation
Production Build
pip install weather-collector
Dev Build
Clone the repository with
Linux
Run with one of the following:
bash install.sh
./install.sh
sh install.sh
Windows
Double click on install.bat
or run
install.bat
Run sample
Place .env file with parameters in the directory
OpenWeatherMapKey=key
OpenWeatherMapURL=api.openweathermap.org
TomorrowIOKey=key
TomorrowIOURL=api.tomorrow.io
For robustness consider using screen
sudo apt-get install screen
To detach press CTRL+A,CTRL+D
To get back to a session type
screen -r
weather-collector -o ./sample.csv -i 60 -l 53.551086 -t 9.993682 &
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for weather_collector-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49c6ebd1c74fd5f31d749270051a5a1d8e73cac25a86c7898a18aaade83e4aa5 |
|
MD5 | f25de55757895e272c234e4e59ed7456 |
|
BLAKE2b-256 | 776c712fa06701c870e8fe9ea1e75e6db1f9d380e3c22893cc7cad115bc6c9f8 |