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.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0720bcc757ddd1cf8f36d4b32d997406fb534910d21d8ea2f1e660fd0d1f696e |
|
MD5 | fea7793ff8a2369cd459f33f0477dafc |
|
BLAKE2b-256 | 073a4430c0630b192c98b52e556f6ef84906d0758501f1fa5ccfe214c01de9e3 |