Skip to main content

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 &

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file weather_collector-0.2.5.tar.gz.

File metadata

  • Download URL: weather_collector-0.2.5.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for weather_collector-0.2.5.tar.gz
Algorithm Hash digest
SHA256 4368a82eca638a317b2dad9d4a0ea110a3ae3eab7c4190012cf8d2500036f483
MD5 645e0eb3cd4395adbd5951a0167023e0
BLAKE2b-256 a65ef2f2041a2dd7332b249455903583cf19d453b1cc84ccae05f9af2d589d2a

See more details on using hashes here.

File details

Details for the file weather_collector-0.2.5-py3-none-any.whl.

File metadata

File hashes

Hashes for weather_collector-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 46f73f26842ff26e126d401144d45940953da7df3991564ea6fe9743d7fc5a5f
MD5 2a0f887f316fecc6ead092e689ff05e7
BLAKE2b-256 55d6b1390edbb85cc771e4dc9ab86c3bdf89a3c4d31892598491f5462a0b9079

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.5 This release

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page