Recent Releases of env_canada

env_canada - v0.11.2

Bug Fixes

  • ECMap: Fix multi-instance caching issue where different geographic locations shared cached data
    • Cache keys now include location-specific prefix to prevent data sharing between coordinates
    • Ensures each ECRadar/ECMap instance maintains separate caches for basemap, legend, and radar overlays

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie 23 days ago

env_canada - v0.11.1

Bug Fixes

  • ECWeather: Fix Home Assistant compatibility issue with station ID handling
    • Keep station_id as string for external API compatibility
    • Move one-time initialization from update() to _resolve_station() method for better performance
    • Add station_tuple property for accessing internal tuple representation
    • Update validate_station to return input unchanged instead of extracting digits

Technical Details

This release addresses a TypeError that occurred in Home Assistant integrations when validate_station received a tuple instead of a string. The fix maintains backward compatibility while improving performance by moving expensive initialization operations to run only once per instance.

Migration Notes

  • External API users: No changes required - station_id remains a string
  • Internal library users: Use station_tuple property if you need the (province_code, station_number) tuple

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie 23 days ago

env_canada - Release v0.11.0

env_canada v0.11.0

Major Features

New ECMap Class

Complete weather map functionality using Environment Canada's WMS layers:

  • Support for rain, snow, and precipitation type radar layers
  • Dynamic legend discovery from WMS capabilities
  • Customizable map dimensions, radius, opacity, and overlay options
  • Animated GIF creation for weather loops
  • Full English/French language support

New Features

Flexible Station ID Formats

Support for multiple station ID input formats:

  • Full format: "AB/s0000123" (province code and full station ID)
  • Station ID only: "s0000123" (province resolved automatically)
  • Numeric only: "123" (just the station number)

Dynamic File Discovery

Automatic handling of Environment Canada's new timestamped weather file format (effective June 2025)

Enhanced ECRadar

Now uses ECMap as internal implementation while maintaining full backward compatibility

Improvements

  • Mapbox dependency removed: Now exclusively uses Canadian government data sources (Natural Resources Canada + Environment Canada)
  • Proper logging: Module-specific loggers throughout codebase
  • Enhanced error handling: Robust network failure handling and caching
  • Station ID validation: Improved validation with regex patterns and automatic province resolution
  • Type safety: Full mypy compliance and enhanced type annotations

Infrastructure

  • Automatic adaptation to Environment Canada's infrastructure changes
  • Enhanced test coverage with comprehensive mocking
  • Support for dynamic URL structure discovery

Installation

pip install env-canada==0.11.0

Full Changelog

https://github.com/michaeldavie/env_canada/blob/v0.11.0/CHANGELOG.md

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie 24 days ago

env_canada - Fix alerts growing in size.

What's Changed

New Contributors

Full Changelog: https://github.com/michaeldavie/env_canada/compare/0.10.1...0.10.2

Sustainable Development - Data Catalogs and Interfaces - Python
Published by gwww 2 months ago

env_canada - 0.10.1

What's Changed

  • Fix dependency for geopy

Sustainable Development - Data Catalogs and Interfaces - Python
Published by gwww 3 months ago

env_canada - v0.10.0

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.9.0...0.10.0

Sustainable Development - Data Catalogs and Interfaces - Python
Published by gwww 3 months ago

env_canada - v0.9.0

What's Changed

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.8.0...v0.9.0

Sustainable Development - Data Catalogs and Interfaces - Python
Published by gwww 3 months ago

env_canada - v0.8.0

What's Changed

New Contributors

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.7.2...v0.8.0

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie 6 months ago

env_canada - v0.7.2

What's Changed

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.7.1...v0.7.2

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie 12 months ago

env_canada - v0.7.1

What's Changed

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.7.0...v0.7.1

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie about 1 year ago

env_canada - v0.6.3

What's Changed

New Contributors

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.6.2...v0.6.3

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie about 1 year ago

env_canada - v0.7.0

What's Changed

New Contributors

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.6.2...v0.7.0

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie about 1 year ago

env_canada - v0.6.2

What's Changed

New Contributors

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.6.1...v0.6.2

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie about 1 year ago

env_canada - v0.6.1

Dependency updates

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.6.0...v0.6.1

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 1 year ago

env_canada - v0.6.0

What's Changed

New Contributors

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.37...v0.6.0

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 1 year ago

env_canada - v0.5.37

What's Changed

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.36...v0.5.37

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 1 year ago

env_canada - v0.5.36

What's Changed

New Contributors

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.35...v0.5.36

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie almost 2 years ago

env_canada - v0.5.35

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.34...v0.5.35

  • Add wind speed and direction to hourly forecasts
  • Handle missing AQHI forecasts
  • Fixes for dependency changes

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie about 2 years ago

env_canada - v0.5.34

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.33...v0.5.34

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie about 2 years ago

env_canada - v0.5.33

Bug fix for handling unexpected strings in numeric conditions.

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.32...v0.5.33

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie about 2 years ago

env_canada - v0.5.32

Generalize handling unexpected string values in numeric fields.

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.31...v0.5.32

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie about 2 years ago

env_canada - v0.5.31

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.30...v0.5.31

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie about 2 years ago

env_canada - v0.5.30

What's Changed

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.29...v0.5.30

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie about 2 years ago

env_canada - v0.5.29

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.28...v0.5.29

  • Handle forecast temperatures of 0ΒΊ

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 2 years ago

env_canada - v0.5.28

Raise an error on old weather data

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.27...v0.5.28

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 2 years ago

env_canada - v0.5.27

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.26...v0.5.27

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 2 years ago

env_canada - v0.5.26

What's Changed

New Contributors

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.25...v0.5.26

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 2 years ago

env_canada - v0.5.25

What's Changed

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.24...v0.5.25

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie almost 3 years ago

env_canada - v0.5.24

What's Changed

New Contributors

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.23...v0.5.24

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie about 3 years ago

env_canada - v0.5.23

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.22...v0.5.23

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie about 3 years ago

env_canada - v0.5.22

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.21...v0.5.22

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie about 3 years ago

env_canada - v0.5.21

What's Changed

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.20...v0.5.21

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 3 years ago

env_canada - v0.5.20

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.19...v0.5.20

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 3 years ago

env_canada - v0.5.19

Work around GeoGratis map service outage

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.18...v0.5.19

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 3 years ago

env_canada - v0.5.18

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.17...v0.5.18

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 3 years ago

env_canada - v0.5.17

What's Changed

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.16...v0.5.17

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 3 years ago

env_canada - v0.5.16

Fixes #52

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.15...v0.5.16

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 3 years ago

env_canada - v0.5.15

What's Changed

New Contributors

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.14...v0.5.15

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 3 years ago

env_canada - v0.5.14

What's Changed

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.5.13...v0.5.14

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 3 years ago

env_canada - v0.2.7

What's Changed

Full Changelog: https://github.com/michaeldavie/env_canada/compare/v0.2.6...v0.2.7

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 3 years ago

env_canada - v0.5.13

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie almost 4 years ago

env_canada - v0.5.12

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie almost 4 years ago

env_canada - v0.5.11

Add attribution to weather metadata

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie almost 4 years ago

env_canada - v0.5.10

Adds normal high and low temperatures

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie almost 4 years ago

env_canada - v0.5.9

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie almost 4 years ago

env_canada - v0.5.8

Raise an exception when XML decoding fails

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie almost 4 years ago

env_canada - v0.5.7

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie almost 4 years ago

env_canada - v0.5.6

Fix radar precip_type setter

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie almost 4 years ago

env_canada - v0.5.5

Make precip_type a property in ECRadar

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie almost 4 years ago

env_canada - v0.5.4

Support precip_type=None in ECRadar

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie almost 4 years ago

env_canada - v0.5.3

Accept None for optional parameters

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie almost 4 years ago

env_canada - Input validation

Validate init arguments, raise HTTP errors

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie almost 4 years ago

env_canada - Faster weather server

Switch weather to a faster server

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie almost 4 years ago

env_canada - Maintenance - Faster weather server

Switch weather to a faster server

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie almost 4 years ago

env_canada - Add historical climate data

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie almost 4 years ago

env_canada - Fix radar options

  • Fixes disabling legend and timestamp for radar πŸ›
  • Handles previous day's precipitation value of "Trace" πŸ™„

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie almost 4 years ago

env_canada - Make weather data more Pythonic

Return values as int, float, or timezone-awaredatetime as appropriate.

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie about 4 years ago

env_canada - Updates to radar GIF

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 4 years ago

env_canada - Fix for Python 3.9

Remove getchildren()

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 4 years ago

env_canada - AQHI region name

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 4 years ago

env_canada - Async and tests

  • Make fetching methods asynchronous
  • Add tests
  • Rename data to weather
  • Separate AQHI from weather

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 4 years ago

env_canada - Switch to bitmap font

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 4 years ago

env_canada - Update setup.py

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 4 years ago

env_canada - Add font to library

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 4 years ago

env_canada - Remove OpenCV

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 4 years ago

env_canada - Move NRCan basemap to HTTP

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie almost 5 years ago

env_canada - Add legend and timestamp to radar

Overlays a legend and timestamp on the radar image

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie almost 5 years ago

env_canada -

Adds legend and timestamp to radar map
Fixes #24

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie almost 5 years ago

env_canada - v0.0.39

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie about 5 years ago

env_canada -

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 5 years ago

env_canada -

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 5 years ago

env_canada -

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 5 years ago

env_canada - v0.0.30

Sustainable Development - Data Catalogs and Interfaces - Python
Published by michaeldavie over 5 years ago