Skip to main content

Installation:

You can either get the source code and include it in your application manlually, or use can use pip instead.

pip install iwPiWeather

Or depending on your raspberry config for python3 you might need to run

pip3 install iwPiWeather

Use example:

Include your package, define the pins and initialize the thread

import iwPiWeather

displayPinout = { "rs": 22, "en": 17, "d7": 18, "d6": 23, "d5": 24, "d4": 25 }
weather = iwPiWeather.weatherDisplay(apiKey='passyouroowmapikey', poolRate=120, dispPins=displayPinout, autoStart=True)

You can pass the following arguments in the constructor:

  • apiKey - Required field, you need to provide the OpenWeatherMap API key.

  • poolRate - Time to wait between each call to the OpenWeatherMap API.

  • dispPins - Layout of the display pins connection

  • autoStart - If this is toggled off, the thread will start in sleep mode, and no calls will be made until the thread is manually started.

The created weather object will be actually a thread that runs in the background. So you can integrate this functionality in your application, this will run as a background process in a separate thread.

You can temporarily pause the display update thread by calling weather.stopWatch() which will allow you for example to stop pooling and displaying the weather data on the display and use the display for something else in your integration.

To restart the thread and keep reprinting the weather data you can use weather.startWatch()

To stop the thread and cleanup the object you can call weather.stopThread(). This will kill the thread and you can safely stop the application.

Metadata

Release files for iwPiWeather 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iwPiWeather 0.1.1
File Size Uploaded Provenance Actions
iwPiWeather-0.1.1.tar.gz 3.2 kB Without provenance Details for iwPiWeather-0.1.1.tar.gz

Release files / iwPiWeather-0.1.1.tar.gz

Download URL iwPiWeather-0.1.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
05f8bf75338822005b97001381992a12a4494b33b47b29d2ac4374935f2fd25a
BLAKE2b-256 checksum
How to use checksums
d174239a16dee99fb71d33f165b9b51691d15418588a577f9d5439bde91d1319
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1

Security for iwPiWeather 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file No provenance

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