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 /home/dev/Documents/weather-collector/sample_minute.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.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9648eb5540fecf7da7464d5236339cd6a30fbf17d229703553cb26690319c747 |
|
MD5 | 085290783d7733aa715c1d06db0d2c6f |
|
BLAKE2b-256 | 11c6b810e08db01fc0bfc341c55b234a41045fcb3a872b3c90bb71290dd8bac5 |