Skip to main content

CLI for collecting weather data

Project description

weather-collector

License: GPL v3 Python Versions Style Black status-badge

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

weather_collector-0.2.5.tar.gz (7.7 kB view hashes)

Uploaded Source

Built Distribution

weather_collector-0.2.5-py3-none-any.whl (7.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page