Releases: BrianMitchL/weatherBot
weatherBot v2.1
weatherBot v2.1 will alert the user if the given configuration file does not exist.
Tests now use os.path
for all path handling. This may mean that Windows is supported, but this is still untested.
weatherBot v2.0.2
Fixes a crash when a weather alert was active.
weatherBot v2.0.1-1
Removed the space in the default hashtag
weatherBot 2.0.1
This fixes a bug causing WeatherBotString objects to not properly update when given new weather data.
Logging of weather data is also more concise and useful.
weatherBot 2.0
There are breaking changes with this new version. Environmental variables will need to be updated. Existing conf files will continue to work.
Much of the data code has been rewritten and strings are now stored in a YAML file.
Changes:
- Change
WEATHERBOT_FORECASTIO_KEY
toWEATHERBOT_DARKSKY_KEY
- Fixed missing degree symbol (º) in forecasts
- Caching to a file (
.wbcache.p
) - Configurable strings
- Language support
- Contributing guidelines
invoke
task runner- Large rework/refactor
- Object Oriented
- Improved code quality (linting, docstrings, classes)
- Increased test coverage
Check out the more formal list of closed issues in the v2.0 milestone.
weatherBot 1.2.3
Removes a double space in a weather forecast.
weatherBot 1.2.2
This introduces some breaking changes with keys and environmental variables.
Daily forecast and scheduled tweets are now configured in the conf file. You can have as many or as few scheduled tweets as you like now!
Twitter access tokens are now accessed though different variable names. The access token and token secret now match how Twitter documents them. You will need to migrate to use
'access_token': 'xxx',
'access_token_secret': 'xxx',
in keys.py
or use the WEATHERBOT_ACCESS_TOKEN
and WEATHERBOT_ACCESS_TOKEN_SECRET
environmental variables.
In short:
You can now add times for the forecast and scheduled tweets in the cons file.
keys.py:
access_key
➜ access_token
access_secret
➜ access_token_secret
environmental variables:
WEATHERBOT_ACCESS_KEY
➜ WEATHERBOT_ACCESS_TOKEN
WEATHERBOT_ACCESS_SECRET
➜ WEATHERBOT_ACCESS_TOKEN_SECRET
Many more tests have been written.
weatherBot 1.2.1
This minor update sets the Heroku runtime to Python 3.5.2.
weatherBot 1.2
This introduces some breaking changes.
- conf files
- A conf file must be passed in as the first and sole argument when running the bot. For example,
python3 weatherBot.py weatherBot.conf
- All fields are optional, and default to the values in
weatherBot.conf
- A conf file must be passed in as the first and sole argument when running the bot. For example,
- Docker
- Docker image can be created by running
./build.sh
- The image can then be spun up by running
docker run --name weatherBot -d -e WEATHERBOT_CONSUMER_KEY=xxx -e WEATHERBOT_CONSUMER_SECRET=xxx -e WEATHERBOT_ACCESS_KEY=xxx -e WEATHERBOT_ACCESS_SECRET=xxx -e WEATHERBOT_FORECASTIO_KEY=xxx weatherbot python weatherBot.py weatherBot.conf
- More information can be found on the Docker Documentation page
- Docker image can be created by running
- HTTP errors are now gracefully excepted if forecast.io returns with an error
weatherBot 1.1
The could be called the precipitation update. Precipitation is now handed properly via the precipIntensity
, precipType
, and precipProbability
fields. Precipitation will be reported within the given throttles for rain, snow, sleet, and hail for varying precipitation rates. The rates are broken into very-light, light, moderate, and heavy, at the suggested rates given by the forecast.io documentation.