Browse Source

Print all the modules

master
Elis Hirwing 2 years ago
parent
commit
0183d7e07c
Signed by: etu <elis@hirwing.se> GPG Key ID: D57EFA625C9A925F
1 changed files with 17 additions and 2 deletions
  1. +17
    -2
      statusscreen.go

+ 17
- 2
statusscreen.go View File

@@ -6,14 +6,29 @@ import (
"io/ioutil"
"os"
"statusscreen"
"time"
)

func main() {
config := getConfig("status.toml")

sl := statusscreen.SL{Config: &config}

fmt.Println(sl.GetOutput())
clock := statusscreen.Clock{Config: &config}
weather := statusscreen.Weather{Config: &config}

for {
for _, row := range clock.GetOutput() {
fmt.Println(row)
}
for _, row := range weather.GetOutput() {
fmt.Println(row)
}
for _, row := range sl.GetOutput() {
fmt.Println(row)
}

time.Sleep(1 * time.Second)
}
}

func getConfig(configFile string) statusscreen.Config {


Loading…
Cancel
Save