Wx Twitter Bot
A bot that tweets about the weather.
Capabilities
- Solar Times (sunrise, noon, sunset)
- Lunar Times (moonrise, illumination, moonset)
- Air Quality
Quick Start
In order to use this application with Twitter, developer credentials are required. Get them here.
Command Line
To run this application via the command line, execute the following from the project root directory:
python src/main.py [options]
Options:
| Name | Description |
|---|---|
--app-root |
Path to the application root directory which contains the .env file. |
Docker
This application can be run in a docker container using a published image.
For example:
docker pull ghcr.io/karjanme/wx-twitter-bot:latest
Configure the TZ environment variable when setting up the container.
Required volume mapping:
| Volume | Description |
|---|---|
/app |
Must point to a directory on your host which contains the .env file. The appliation will create subdirectories to facilitate runtime needs. |
Environment Variables
The following variables can be set using a .env file placed in the application root directory.
| Name | Description |
|---|---|
LOG_LEVEL |
(optional) Specifies the level of logging to use when executing the application (Default = "INFO") |
LOCATION |
A label for the location associated the this instance of the application |
REGION |
A label for the location's region associated with this instance of the application |
TIMEZONE |
The timezone name for the location associated with this instance of the application from the "tz database" |
LATITUDE |
The latitude for the location associated with this application, decimal format |
LONGITUDE |
The longitude for the location associated with this application, decimal format |
AIR_NOW_API_KEY |
The key for the AirNow API |
TWITTER_CONSUMER_KEY |
The consumer key for the Twitter API |
TWITTER_CONSUMER_SECRET |
The consumer secret for the Twitter API |
TWITTER_ACCESS_TOKEN |
The access token for the Twitter API |
TWITTER_ACCESS_TOKEN_SECRET |
The access token secret for the Twitter API |
TWITTER_BEARER_TOKEN |
The bearer token for the Twitter API |
TWITTER_HASHTAG |
(optional) Text to be appended to all tweets as a hashtag |
License
Metadata
Release files for wxtwitterbot 1.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wxtwitterbot-1.3.2-py3-none-any.whl | Python 3 | none | any | Details for wxtwitterbot-1.3.2-py3-none-any.whl |
Release files / wxtwitterbot-1.3.2-py3-none-any.whl
| Download URL | wxtwitterbot-1.3.2-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f83e1fe20389fc135ebabf7c0395d62ca06355ddeaefafbae265639a44f4007f
|
|
BLAKE2b-256 checksum How to use checksums |
2ed69546995fdb76c5a2b5457480768102869c43cc634a79fa2880933c4b76a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for wxtwitterbot 1.3.2
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.