forked from massivebox/ecodash
Added arm builds, improve database
- The program will now be cross-compiled and released for arm as well as x86 - What we previously called "cache" is not actually a cache, as it holds content that can't be always retrieved. Now we're stopping calling it a cache. - Improved history merging - Fixed the README to include the database as a volume, and to fix some errors
This commit is contained in:
parent
52ba0ea4c1
commit
7a1214d492
6 changed files with 52 additions and 34 deletions
4
main.go
4
main.go
|
@ -18,12 +18,12 @@ func main() {
|
|||
|
||||
if !isFirstRun {
|
||||
cr := cron.New()
|
||||
_, err = cr.AddFunc("@hourly", config.updateCache)
|
||||
_, err = cr.AddFunc("@hourly", config.updateHistory)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
cr.Start()
|
||||
config.updateCache()
|
||||
config.updateHistory()
|
||||
}
|
||||
|
||||
engine := html.New("./templates/"+config.Dashboard.Theme, ".html")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue