diff --git a/weather/client.go b/weather/client.go index 2424aca2..b478ab1f 100644 --- a/weather/client.go +++ b/weather/client.go @@ -12,7 +12,6 @@ func Fetch() *owm.CurrentWeatherData { panic(err) } - //w.CurrentByName("Toronto,ON") w.CurrentByID(6173331) return w diff --git a/weather/widget.go b/weather/widget.go index 9fc821dd..c6ac3080 100644 --- a/weather/widget.go +++ b/weather/widget.go @@ -25,7 +25,6 @@ func Widget() tview.Primitive { widget.SetDynamicColors(true) widget.SetTitle(fmt.Sprintf(" 🌤 Weather - %s ", data.Name)) - //fmt.Fprintf(widget, " %s", data.Name) var tpl bytes.Buffer tmpl, _ := template.New("weather").Parse(weatherTemplate) if err := tmpl.Execute(&tpl, data); err != nil { diff --git a/wtf.go b/wtf.go index 73060a1b..c6516a82 100644 --- a/wtf.go +++ b/wtf.go @@ -12,8 +12,8 @@ func main() { app := tview.NewApplication() grid := tview.NewGrid() - grid.SetRows(10, 40, 30) // How _high_ the row is, in terminal rows - grid.SetColumns(40, 40) // How _wide_ the column is, in terminal columns + grid.SetRows(10, 40, 4) // How _high_ the row is, in terminal rows + grid.SetColumns(40, 40) // How _wide_ the column is, in terminal columns grid.SetBorder(false) grid.AddItem(bamboohr.Widget(), 0, 0, 1, 1, 0, 0, false)