Closed thybag closed 3 months ago
Hi @nathan-gs, I think this should now be good to review. Unsure if the CI issues are anything i need to take note of / address as part of this PR.
The WMS/Layer history feature should support everything the map and entity level ones do, with the addition of needing to set the attribute being used as this could be time/date or something else in theory, as well as a flag to force midnight on dates (days ago uses current time for example so won't work correctly with some WMS/Tile layers if using that to drive them).
I've also now allowed single WMS/Tile layers to be set, rather than them needing to be a lits.
Readme should be updated, so hopefully the added docs all make sense.
Cheers, Carl
@thybag not sure why the HACS validation flow keep running, would you mind testing (it's hard to test for me)
If you pull from main, normally the test failures should disappear.
Looks like that sorted it 👍
Allows WMS/Tile layers to have their time/date driven by the date picker or an external entity as with entity history.
history
on WMS/Tile layer will link it to history mechanism set at map level. This supports specific date/times, entity driven date times and date picker date times. Will use the start point of any time ranges.source
to set custom entity or date to use for layer.suffix
can also be set on source as with other history properties.force_midnight
as some WMS/Maps only return results if date is at midnight e.g. https://geo.irceline.be/rioifdm/wmsSimple example with WMS driven by date_section date range picker
More advanced example with tile_layer
Work todo
source
entity works as expected.Fixes https://github.com/nathan-gs/ha-map-card/issues/44