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 &
Metadata
Release files for weather-collector 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| weather_collector-0.2.5.tar.gz | 7.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| weather_collector-0.2.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.4 kB
Release files / weather_collector-0.2.5.tar.gz
| Download URL | weather_collector-0.2.5.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4368a82eca638a317b2dad9d4a0ea110a3ae3eab7c4190012cf8d2500036f483
|
|
BLAKE2b-256 checksum How to use checksums |
a65ef2f2041a2dd7332b249455903583cf19d453b1cc84ccae05f9af2d589d2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / weather_collector-0.2.5-py3-none-any.whl
| Download URL | weather_collector-0.2.5-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
46f73f26842ff26e126d401144d45940953da7df3991564ea6fe9743d7fc5a5f
|
|
BLAKE2b-256 checksum How to use checksums |
55d6b1390edbb85cc771e4dc9ab86c3bdf89a3c4d31892598491f5462a0b9079
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|