Skip to content

Commit

Permalink
add current satellite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-does-weather committed Jul 29, 2024
1 parent 6a4c0e5 commit 996425f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/modules/weather_blocks/weather_blocks.module
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ function weather_blocks_template_preprocess_default_variables_alter(
try {
$grid = $weatherData->getGridFromLatLon($lat, $lon);

$weatherMetadata["grid"] = $grid;

$alerts = $weatherData->getAlerts(
$grid,
SpatialUtility::pointArrayToObject([$lon, $lat]),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@
<div class="wx-tab-container wx-focus-offset-205" id="current" role="tabpanel" aria-labelledby="current-conditions-tab-button" tabindex="0">
{{ drupal_block("weathergov_current_conditions") }}
{% include '@new_weather_theme/partials/radar.html.twig' with { 'point': weather.point } %}


<div class="grid-container margin-top-2 padding-x-0 tablet:padding-x-2" wx-outer-radar-container>
<div class="grid-row tablet-lg:grid-col-8 tablet-lg:grid-offset-2">
<h3 class="visual-h2 text-normal text-primary-darker padding-x-2 tablet:padding-x-0 margin-top-3 margin-bottom-2">{{ "Satellite" | t }}</h3>
</div>

<div class="grid-container padding-0 bg-white shadow-1 grid-col-12 tablet-lg:grid-offset-2 tablet-lg:grid-col-8">
<div class="padding-top-3 text-center">
<img src="https://cdn.star.nesdis.noaa.gov/WFO/{{ weather.grid.wfo | lower }}/GEOCOLOR/GOES16-{{ weather.grid.wfo | upper }}-GEOCOLOR-600x600.gif">
</div>
</div>
</div>
</div>

<div class="wx-tab-container wx-focus-offset-205" id="daily" role="tabpanel" aria-labelledby="daily-tab-button" tabindex="0">
Expand Down

0 comments on commit 996425f

Please sign in to comment.