Pivotonian

Radar

Sep 23rd, 2025
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.80 KB | None | 0 0
  1. type: custom:button-card
  2. styles:
  3. grid:
  4. - grid-template-areas: '"forecast radar"'
  5. - grid-template-columns: min-content 1fr
  6. - grid-template-rows: 1fr
  7. card:
  8. - background-color: transparent
  9. border: solid 2px transparent
  10. height: 375px
  11. width: 630px
  12. padding: 0px 0px 0px 0px
  13. margin: 0px 0px 0px 0px
  14. align-content: start
  15. justify-content: start
  16. align-self: start
  17. overflow-y: auto
  18. align-items: start
  19. justify-items: start
  20. custom_fields:
  21. radar:
  22. - justify-self: start
  23. - align-self: start
  24. - width: 635px
  25. - padding: 0px 0px 0px 0px
  26. - margin: '-83px 0px 0px -15px'
  27. show_state: false
  28. show_name: false
  29. show_icon: false
  30. name: Radar
  31. custom_fields:
  32. radar:
  33. card:
  34. type: custom:bom-radar-card
  35. data_source: RainViewer-DarkSky
  36. map_style: Dark
  37. zoom_level: 10
  38. center_latitude:
  39. center_longitude:
  40. show_playback: true
  41. show_zoom: true
  42. show_range: false
  43. extra_labels: true
  44. show_radar_coverage: false
  45. show_radar_location: false
  46. show_scale: true
  47. show_marker: true
  48. square_map: false
  49. show_recenter: true
  50. forecast:
  51. card:
  52. type: custom:button-card
  53. entity: sensor.town_rain_chance_0
  54. icon: mdi:umbrella
  55. show_icon: false
  56. show_state: true
  57. show_label: true
  58. name: Radar
  59. state_display: |
  60. [[[
  61. let chance = states['sensor.town_rain_chance_0'].state;
  62. let amount = states['sensor.town_rain_amount_range_0'].state;
  63. return `${chance}% chance of rain, ${amount}mm expected`;
  64. ]]]
  65. label: |
  66. [[[
  67. return states['sensor.town_extended_text_0'].state;
  68. ]]]
  69. styles:
  70. grid:
  71. - grid-template-areas: '"n" "i s" "l"'
  72. card:
  73. - width: 165px
  74. height: 375px
  75. border-radius: 0px
  76. background-color: rgba(0,0,0,0.4)
  77. padding: 15px
  78. margin: '-83px -150px 0px 0px'
  79. justify-self: start
  80. align-self: start
  81. justify-content: start
  82. align-content: start
  83. justify-items: start
  84. align-items: start
  85. backdrop-filter: blur(1px);
  86. '-webkit-backdrop-filter': blur(1px);
  87. name:
  88. - font-weight: 600
  89. justify-self: start
  90. align-self: start
  91. color: white
  92. label:
  93. - text-align: left
  94. font-size: 12px
  95. font-weight: 400
  96. white-space: normal
  97. width: 100%
  98. justify-self: start
  99. align-self: start
  100. color: white
  101. margin-top: '-90px'
  102. state:
  103. - text-align: left
  104. font-size: 12px
  105. font-weight: 550
  106. white-space: normal
  107. width: 100%
  108. justify-self: start
  109. align-self: start
  110. margin-top: '-130px'
  111. color: var(--label-badge-blue)
  112. card_mod:
  113. style: |
  114. :host {
  115. display: block;
  116. position: relative; margin: 0px 6px 0px 0px
  117. }
  118.  
  119. :host::before {
  120.  
  121. content: "";
  122. position: absolute;
  123. inset: 0;
  124. border-radius: 30px;
  125. -webkit-backdrop-filter: blur(50px);
  126. z-index: -1;
  127. padding: .1rem;
  128. background: linear-gradient(60deg,
  129. rgba(255,255,255,0.0) 0%,
  130. rgba(255,255,255,0.2) 49%,
  131. rgba(255,255,255,0.2) 51%,
  132. rgba(255,255,255,0.0) 100%);
  133. -webkit-mask:
  134. linear-gradient(#fff 0 0) content-box,
  135. linear-gradient(#fff 0 0);
  136. -webkit-mask-composite: xor;
  137. mask-composite: exclude;
  138. z-index: 0; filter: saturate(140%);
  139. }
  140.  
  141. :host::after {
  142. content: "";
  143. background: linear-gradient(180deg, rgba(255,255,255, 0.1) 20%, rgba(255,255,255, 0.0) 100%);
  144. position: absolute;
  145. inset: 0;
  146. border-radius: 30px;
  147. box-shadow: inset -8px 10px 15px rgba(0, 0, 0, 0.1);
  148. z-index: -1;
  149.  
  150. -webkit-backdrop-filter:blur(30px) saturate(110%) brightness(90%);
  151. filter: drop-shadow(3px 3px 10px rgba(0, 0, 0, 0.2)); }
Advertisement
Add Comment
Please, Sign In to add comment