File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ impl Widget for &WeatherComponent {
151
151
Line :: from( separator. clone( ) ) . centered( ) ,
152
152
Line :: from( "Forecast" . bold( ) ) . centered( ) ,
153
153
Line :: from( format!( "{:6} Min | Max | UV | F Min | F Max" , "Date" ) ) . centered( ) ,
154
+ Line :: from( "-----------|-----|------|-------|------" ) . centered( ) ,
154
155
Line :: from( match forecast. get( self . current_forecast_day as usize ) {
155
156
Some ( f) => format!(
156
157
"{:6} {:3.0} | {:3.0} | {:1.2} | {:3.0} | {:3.0}" ,
@@ -175,6 +176,18 @@ impl Widget for &WeatherComponent {
175
176
) ,
176
177
None => "No forecast available" . to_string( ) ,
177
178
} ) . centered( ) ,
179
+ Line :: from( match forecast. get( ( self . current_forecast_day as usize + 2 ) % 7 ) {
180
+ Some ( f) => format!(
181
+ "{:6} {:3.0} | {:3.0} | {:1.2} | {:3.0} | {:3.0}" ,
182
+ f. time. format( "%a %d" ) ,
183
+ f. temperature_2m_min,
184
+ f. temperature_2m_max,
185
+ f. uv_index_max,
186
+ f. apparent_temperature_min,
187
+ f. apparent_temperature_max
188
+ ) ,
189
+ None => "No forecast available" . to_string( ) ,
190
+ } ) . centered( ) ,
178
191
Line :: from( separator. clone( ) ) . centered( ) ,
179
192
Line :: from( "🌕 Day time ☀️" . bold( ) ) . centered( ) ,
180
193
Line :: from( "" ) ,
You can’t perform that action at this time.
0 commit comments