Releases: Pulpyyyy/meteocss-card
v3.1.0
Full Changelog: v3.0.0...v3.1.0
v3.0.0
MeteoCSS Card v3.0.0
Shadow layer
The main addition in this release is a real-time shadow engine driven by a depth map image.
A WebGL shader reads a greyscale depth map and computes per-pixel shadow opacity based on the current sun/moon position, producing dynamic, physically coherent shadows that move as the day progresses.
Configuration
Add shadow to your layer stack and provide a depth map image:
layers:
- shadow
- moon
- sun
- foreground
shadow:
depthmap: /local/shadow/my_depthmap.png
ambient: 0.2 # minimum light level (0 = pitch black, 1 = no shadow)
intensity: 0.7 # shadow strength multiplier
blur: 3 # softness in pixels (0 = hard edge)
bias: 0.003 # depth bias to avoid self-shadowing artefacts
step: 0.002 # ray-march step sizeDepth map format
- Greyscale PNG (white = close to camera, black = far)
- Any resolution — the shader samples it in UV space
depthmapis required, the layer is skipped with a warning if absent- WebGL is required; the layer is silently skipped on unsupported browsers
Tuning guide
| Goal | ambient |
intensity |
|---|---|---|
| Soft, subtle | 0.4–0.5 |
0.7 |
| Balanced | 0.3 |
0.8–0.85 |
| Marked shadows | 0.2 |
0.9 |
| Keep v2 behaviour | 0.5 |
1.0 |
Other changes
- HACS compatibility —
zip_release: trueinhacs.json, card file moved todist/,getStubConfig()added for the card picker UI - Mobile rendering fix — sun and moon position now driven by
transform: translate()instead ofleft/top, eliminating layout thrashing;contain: paintadded to the layer container to prevent GPU layer bleed on mobile - CI — release pipeline refactored as an orchestrator (
pipeline.yml) callingauto-tagandreleaseas reusableworkflow_callcomponents
Full Changelog: v2.0.3...v3.0.0
v2.0.2
v2.0.1
v2.0.0
✨ New Features
-
🔄 Multi-Card Synchronization System (Singleton): Multiple cards on the same screen now share data and animations for perfect synchronization
- Master/Slave election system for optimized performance
- Automatic synchronization of sun/moon positions, weather conditions, and animations
- Configurable with
singleton_idparameter
-
☁️ Intelligent Cloud Distribution: Background ratio system intelligently splits clouds between layers
background_ratioparameter controls cloud placement depth- Consistent cloud distribution across multiple cards via singleton
- Default ratios optimized for each weather condition
-
📊 Enhanced Demo Mode: Improved simulator with real-time statistics
- Live info panel showing time, positions, wind speed, cloud counts
- Play/Pause/Stop controls for time simulation
- Condition dropdown selector for testing
- Visual feedback for playback state
🔧 Improvements
- Better Singleton Documentation: Complete explanation of master/slave system and data sharing
- Cloud Distribution Examples: New examples showing how to customize background ratios
- Accurate Default Values: All configuration defaults verified against source code
🐛 Bug Fixes & Stability
- Fixed cloud count tracking in singleton
- Improved master election reliability
- Better demo UI update timing
- Enhanced entity validation with fallback support
🚀 Performance
- Master/Slave architecture reduces redundant calculations
- Browser resource optimization for multi-card setups
- Efficient cloud distribution algorithm
⚠️ Breaking Changes
- None - fully backward compatible with v1.x configurations
📝 Configuration Changes
New Parameters:
singleton_id- Unique ID for synchronizing multiple cards (default: auto-generated)demo_mode- Enable/disable demo simulator mode (default: false)
Enhanced Parameters:
- Cloud conditions now expose
background_ratiofor customization - Demo state management (running, paused, stopped)
🔄 Migration Guide
From v1.x to v2.0:
- No action required - existing configurations work as-is
- To enable multi-card sync, add
singleton_id: "main_sync"to cards you want synchronized - Demo mode is optional - enable with
demo_mode: true
📦 Dependencies
- Home Assistant 2024.1 or later
- Luna integration (optional, for moon data)
- Sun integration (built-in)