Skip to content

3.0.0 Weather Entity Support & Entity Caching

Choose a tag to compare

@DTekNOdev DTekNOdev released this 12 Sep 10:45

Highlights:

  • Weather Entity Support:
    You can now use any Home Assistant weather entity as the data source for the meteogram.
    Set entity_id in your card config. See README.md for details and limitations.
  • Entity Caching:
    Forecasts from weather entities are cached in localStorage keyed by entity ID. Multiple entities can be cached and retrieved independently.
  • Met.no API remains supported:
    If no entity_id is specified, the card uses the Met.no API as before.
  • Focus Mode:
    New focussed option for a minimal chart display. When enabled, the card hides the title and attribution, showing only the chart—ideal for dashboards and kiosk views.
  • Improved error handling and diagnostics.
  • No more fillContainer option:
    The card now automatically sizes to its container.

Additional Changes:

  • Chart Sizing & Margin Fixes:
    The chart now fills the card correctly in all configurations, especially when pressure is not shown. Previous issues with excessive gaps or margins have been resolved.
  • Responsive Rendering:
    Improved logic for chart width and margins ensures the meteogram adapts smoothly to all container sizes and modes.
  • Bug Fixes:
    • Fixed chart layout issues when pressure is not displayed.
    • Improved handling of edge cases for chart rendering and data availability.
  • Codebase Improvements:
    • Refactored margin and sizing logic for clarity and maintainability.
    • Enhanced error reporting and diagnostics for easier troubleshooting.
  • Theme & Style Support:
    • Continued support for CSS variables and dark mode.
    • Improved handling of custom properties for better compatibility with Home Assistant themes.
  • Documentation Updates:
    • README and STYLES.md updated to reflect new features, options, and usage examples.