Frogweather - a Frog-Themed Weather Station
What is Frogweather?
Frogweather is a weather app written in Python. It generates images that show both the current time and weather information, specifically the temperature and precipitation probability within the next nine hours. The background image shows a frog-themed visualization of the current weather.
Since this app is meant to provide weather station images that are displayed on
a 64x128 LED matrix, the images are of size 64x128. If you need other sizes, you
can resize the images or replace the background images by your own images. The
background images are located in the
images folder.
How to use Frogweather?
First, run the example program:
-
Install the Python package:
pip install frogweather
-
Request a Dark Sky API key. The key comes for free and allows you to access the Dark Sky weather service 1000 times a day without charge. Frogweather is designed not to exceed this limit.
-
Paste your key into the file
darkskykey.yaml. -
Find out the geographical coordinates of your location, for example via GPS Coordinates.
-
Paste your coordinates into the file
location.yaml. -
Run the example program:
python frogweather.pyThis command will open a window that displays the weather station image. It will also continuously update the image.
Now you can use the frogweather module in your own Python program. The following Python code snippet shows how to do it:
# Import the module.
import frogweather
# Read the configuration files.
frogweather.init()
# Continuously check for new weather station images.
while True:
# Check if a new weather station image is available.
if frogweather.update():
# Access the updated image.
image = frogweather.get_image()
How does Frogweather work?
In order to generate an image, the frogweather Python module executes the following steps:
- It retrieves the current time from the operating system.
- It downloads the current local weather information, i.e. temperature and precipitation probability, from the Dark Sky weather server.
- It renders the weather station image.
Credits
- The background images used in this project are modifications of the background images shown in Google's weather app.
- This app is powered by Dark Sky: The weather data is downloaded from the Dark Sky weather server.
Metadata
Release files for frogweather 0.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 | Provenance | |
|---|---|---|---|---|
| frogweather-0.5.tar.gz | 6.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| frogweather-0.5-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 13.1 kB
Release files / frogweather-0.5.tar.gz
| Download URL | frogweather-0.5.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
698fffccaf88ac6f01f39def729ac1c034870be6ff6d9b7d30c1580b24a8dca2
|
|
BLAKE2b-256 checksum How to use checksums |
dd2b1c00d2be4381a5171401aa45f9df5becb66e45ea7b81a209d9dd5da6c35e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.9.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2
|
Release files / frogweather-0.5-py2-none-any.whl
| Download URL | frogweather-0.5-py2-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
6aa5dd9742e82e194d26e0c8b1b48d99c28d54b0ef7dc8b6717b41b7992b8b56
|
|
BLAKE2b-256 checksum How to use checksums |
b225b58d97f0e0225828cffb13470ce4f32186e808edd6b45db32ff4755a4b63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.9.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2
|
Security for frogweather 0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.