---
title: "Pretty Weather"
date: 2018-06-02T05:32:04-07:00
draft: false
weight: 10
---
Displays weather information as ASCII art from
[Wttr.in](http://wttr.in).
## Source Code
```bash
wtf/prettyweather/
```
## Configuration
```yaml
prettyweather:
enabled: true
city: "tehran"
position:
top: 3
left: 5
height: 1
width: 1
refreshInterval: 300
unit: "c"
view: 0
language: "en"
```
### Attributes
`city`
_Optional_. It will grab the current location from your IP address if
omitted.
Values: The name of any city supported by [Wttr.in](http://wttr.in).
`enabled`
Determines whether or not this module is executed and if its data displayed onscreen.
Values: `true`, `false`.
`position`
Defines where in the grid this module's widget will be displayed.
`refreshInterval`
How often, in seconds, this module will update its data.
Values: A positive integer, `0..n`.
`unit`
_Optional_. It will use metric if you are out of US and imperial for US.
The temperature scale in which to display temperature values.
Values: `F` for Fahrenheit, `C` for Celcius.
`view`
_Optional_ Wttr.in view configuration.
Values: See `curl wttr.in/:help` for more details.
`language`
_Optional_ Wttr.in language configuration.
Values: See `curl wttr.in/:translation` for more details.