1
0
Fork 0
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:
MassiveBox 2023-01-29 21:16:04 +01:00
parent 52ba0ea4c1
commit 7a1214d492
6 changed files with 52 additions and 34 deletions

View file

@ -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")