Australian BOM Rain Radar Card

Don’t worry was brain fade on my part - chose wrong repository type…

:roll_eyes:

1 Like

I have done that before myself and wondered wtf!

Nice work!

When next to the Lovelace map card, it feels a little funny having the re-center icon being different (hass:image-filter-center-focus) and in a different location.

any idea why I’m seeing these errors in the console?
image
Doesn’t seem to cause any issues…

It is just a warning and has no effect on anything. The dev tools tries to load extra crap. Fixed in 1.2.11 anyway.

1 Like

Is there a way to convert this new rain radar to a camera image? its great but I want to be able to display it externally in TileBoard

Unfortunately not. It relies on a javascript library that does everything dynamically. Even if it was possible it would probably get looked down on for webscraping just like the old one that never actually worked properly for me. That was the driver for making something better, but static gifs to use in a camera is not possible.

1 Like

I am using this card in lovelace and it’s great. For my dashboard I use the below, this is for Sydney but from memory you can change the location by station ID:

camera:
  - platform: generic
    name: bom_url_gif
    still_image_url: http://api.flight.org/weather/australia/radar/010/00000/IDR714.gif
    verify_ssl: false
1 Like

all good then, definitely worth the trade-offs

Awesome, thanks for that. Sydney will do fine!

V1.2.12 now uses this icon instead. I am not going to move the playback type icons from the bottom rightt though.

Firstly thanks @theRat for your work on this and @DavidFW1960 for your initial work.

I have found that in my layout the radar card is really big. Which is good when you want it but bad when you don’t need it. So I was wondering if anyone knows of a way that I can somehow hide the card when I don’t want it.

I was thinking something similar to a glance button that I could press to see it and then press it away. I hope this makes sense if anyone has ideas?

You could use an input_boolean with a conditional card…

Thanks @DavidFW1960. That may be a bit beyond what I know. Do you have a basic example of how that would look in lovelace?

You could use browser mod and use the popup function. Have a button or whatever in lovelace with the tap_action as service: browser_mod.popup to bring up the radar card.

eg:

type: button
name: Rain Radar
show_state: false
  tap_action:
    action: call-service
    service: browser_mod.popup
    service_data:
      card:
        type: 'custom:bom-radar-card'
        frame_count: 144
        frame_delay: 100
        marker_latitude: -31.8786
        marker_longitude: 115.9223
        show_marker: true
        show_range: false
      deviceID: this

https://github.com/DavidFW1960/home-assistant/blob/73bdacd45c68bc28dd9136329a68ecc699896cf0/ui-lovelace.yaml Check line 1408 for a conditional card.

Hi All,
This integration looks great, much better than the GIFs. Just one question…
Will HA try to push data from this into InfluxDB? Do I need to exclude something?
Last week I added this and the new BOM integration via HACS and my InfluxDB randomly blew up… could have been coincidence… I removed the two new integrations and fixed InfluxDB
Now I just want to make sure before I try again :slight_smile:
Cheers.

The Frontend Card doesn’t store anything in any databased. It just dynamically pulls tiles it needs from various cdn servers using the Leaflet library.

And yeah… need to exclude entities created by the new integration from recorder (replacing the ones you would have already excluded from the old components)

Any chance of getting it to save to a location as a jpg/gif/png, etc? Or evens imilar to the camera module so its available via the API?