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.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46f73f26842ff26e126d401144d45940953da7df3991564ea6fe9743d7fc5a5f |
|
MD5 | 2a0f887f316fecc6ead092e689ff05e7 |
|
BLAKE2b-256 | 55d6b1390edbb85cc771e4dc9ab86c3bdf89a3c4d31892598491f5462a0b9079 |