nathan-gs / ha-map-card

A Map Card for Home Assistant
https://community.home-assistant.io/t/map-card-a-slightly-improved-map-card/693088
MIT License
15 stars 4 forks source link

History: for WMS & TileLayers #44

Closed nathan-gs closed 3 weeks ago

nathan-gs commented 1 month ago

Building on PR #41 add this capability to WMS & TileLayers.

I think connecting the WMS/Tilelayers up to the date change events would be reasonably straight forwards. As you said, suspect it may be better placed in its own PR, but if you have any recommendations on public WMS/TileLayers with history support i could have a play with, I'd be up for having a go. I assume potentially it'd just be passing a time option via WMSTileOptions or similar.

Originally posted by @thybag in https://github.com/nathan-gs/ha-map-card/issues/41#issuecomment-2139302970

Let's do this in a seperate PR!

For WMS layers, it's often just a parameter (almost always called time or timestamp) formatted as a YYYY-MM-DDTHH:MM:SSZ:

Take a look at the GetCapabilities of the IRCELINE WMS maps: https://geo.irceline.be/rio/wms?service=wms&version=1.3.0&request=GetCapabilities you see there's a Dimensiion named time.

Originally posted by @nathan-gs in https://github.com/nathan-gs/ha-map-card/issues/41#issuecomment-2140622658