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 &

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)

Source distribution for weather-collector 0.2.5
File Size Uploaded
weather_collector-0.2.5.tar.gz 7.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for weather-collector 0.2.5
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.2.5 This release

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page