Skip to content

Conversation

@Video-Nomad
Copy link
Contributor

@Video-Nomad Video-Nomad commented Jul 21, 2025

  • Moved api related functionality to utils/widgets/weather/api.py.
  • Moved widgets related functionality to utils/widgets/weather/widgets.py.
  • Weather card will now show scrollable hourly weather data for each day.
  • Daily weather widgets are now clickable and will switch the hourly view.
  • Additional styling is available for weather-card-day class: .active.
  • Curve color can be changed in CSS using background-color style for .weather-card .hourly-data class.
  • Text color can be changed in CSS using color style for .weather-card .hourly-data class.
  • Added .weather-card .hourly-data class to style the hourly data scrollable container.
  • Added optional min/max tooltip for weather widget.

New options for config.yaml weather_card

New options for weather_card:

    weather_card:
      time_format: "24h" # can be 12h or 24h
      hourly_point_spacing: 76
      hourly_icon_size: 32 # better to set 16, 32 or 64 for better quality
      icon_smoothing: true # should be true for smoother icon or false for sharper icon if using 16, 32 or 64 for hourly_icon_size
      temp_line_width: 2 # can be 0 to hide the temperature line
      current_line_color: "#8EAEE8"
      current_line_width: 1 # can be 0 to hide the current hour line
      current_line_style: "dot"

New styles:

.weather-card-day.active {
    background-color: rgba(40, 40, 60, 0.6);
    border: 1px solid rgba(50, 50, 75, 1);
}

.weather-card-day:hover {
    background-color: rgba(40, 40, 60, 0.6);
}

.weather-card .hourly-container {
    border: 1px solid #282936;
    background-color: #3c5fa0;
    border-radius: 8px;
    min-height: 150px;
}

.weather-card .hourly-data {
    /* font-family: 'Segoe UI';*/
    /* color: cyan;*/ /* <- Font color */
    background-color: #FAE93F; /* <- Curve color */
    font-size: 12px;
    font-weight: bold;
}
GvLLaXfDZU

@Video-Nomad Video-Nomad force-pushed the feat/weather-hourly-view branch from eb84fa4 to 3799f13 Compare July 21, 2025 15:40
@amnweb amnweb requested a review from Copilot July 21, 2025 15:47

This comment was marked as resolved.

@Video-Nomad Video-Nomad force-pushed the feat/weather-hourly-view branch from 3799f13 to 550e1a8 Compare July 21, 2025 18:15
- Moved api related functionality to utils/widgets/weather/api.py.
- Moved widget related functionality to utils/widgets/weather/widgets.py.
- Weather card will now show scrollable hourly weather data for each day.
- Daily weather widgets are now clickable and will switch the hourly view.
- Additional styling is available for weather-card-day (.active).
- Curve color can be changed in CSS using background-color style for `.weather-card .hourly-data` class.
- Text color can be changed in CSS using `color` style for `.weather-card .hourly-data` class.
- Added `.weather-card .hourly-data` class to style the hourly data scrollable container.
@Video-Nomad Video-Nomad force-pushed the feat/weather-hourly-view branch from 550e1a8 to 799993d Compare July 21, 2025 18:20
@amnweb amnweb merged commit e2627d8 into amnweb:main Jul 21, 2025
@Video-Nomad Video-Nomad deleted the feat/weather-hourly-view branch July 21, 2025 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants