Pirate-Weather / pirate-weather-ha

Replacement for the default Dark Sky Home Assistant integration using Pirate Weather
https://pirateweather.net/
Apache License 2.0
359 stars 24 forks source link

Device Tracker #295

Open alpha520098 opened 1 month ago

alpha520098 commented 1 month ago

Describe the feature

It would be nice if there was a entity that could take the in the distance and the bearing so this could be plotted onto a map:

so you could see excatly where the heading and the distance would be.

Home Assistant version

No response

Integration version

No response

Acknowledgements

dxmnkd316 commented 1 week ago

This is a really clever idea. I know it can be in bad form to do this, but I really like this and would like to see this at some point.

One thing to consider is capping the number to the nearest 10 storms. Or something like that. But I would be happy with anything here.

That said I wonder if there's a way to implement this using templates in HA Core.

cloneofghosts commented 4 days ago

Looks like this one got missed as well. Just to be clear you're looking to plot the distance/bearing on a map to visualise which way a storm is heading?

I'm not totally sure what is 100% possible in HA so will defer to @alexander0042 to see if this would be possible

dxmnkd316 commented 4 days ago

I assume that's what the OP is saying.

I think it would be one of those things where you'd use the device_tracker and map functionality. You can give a device_tracker entity GPS coordinates. The hard part would be the directional heading.

You can give it an icon that changes based on the severity or threat. Perhaps "mdi:weather-hail" or something like that for hail as an example.

Edit: I think this would be hugely beneficial since mapping API requests tend to be extremely expensive in terms of credits per call. Aeris for example is a huge cost depending how big the map is and what layers you want. Just storm tracking would require a storm layer, a basemap map layer, and additional roads or boundary layers each each with a different cost. See here: https://www.xweather.com/docs/maps/getting-started/accesses

It could look something like this: image image image

alpha520098 commented 4 days ago

Spot on, this is exactly what is required.