UncommonSense.Weather.Format.ps1xml
<Configuration> <ViewDefinitions> <View> <Name>Default</Name> <ViewSelectedBy> <TypeName>UncommonSense.Weather</TypeName> </ViewSelectedBy> <CustomControl> <CustomEntries> <CustomEntry> <CustomItem> <ExpressionBinding> <ScriptBlock>$_ | Format-List -Property Latitude, Longitude, @{n='DateTime'; e={$_.Current.DateTime}}, TimeZone, @{n='Temperature'; e={"$($_.Current.Temperature)$($_.TemperatureUnit); feels like $($_.Current.FeelsLike)$($_.TemperatureUnit)"}}, @{n='Sunrise'; e={$_.Current.Sunrise}}, @{n='Sunset'; e={$_.Current.SunSet}}| Out-String</ScriptBlock> </ExpressionBinding> <ExpressionBinding> <ScriptBlock>$_.Alerts | Format-Table | Out-String</ScriptBlock> </ExpressionBinding> <ExpressionBinding> <ScriptBlock>$_.Hourly | Select-Object -First 8 | Format-Table | Out-String</ScriptBlock> </ExpressionBinding> <ExpressionBinding> <ScriptBlock>$_.Daily | Select-Object -First 3 | Format-Table | Out-String</ScriptBlock> </ExpressionBinding> </CustomItem> </CustomEntry> </CustomEntries> </CustomControl> </View> </ViewDefinitions> </Configuration> |