package main import ( "git.openpdu.org/OpenPDU/openpdu/syslog" "git.openpdu.org/OpenPDU/openpdu/ups" "git.openpdu.org/OpenPDU/openpdu/webui" "github.com/spf13/viper" ) const version = "0.1" func init() { viper.SetDefault("system.hostname", "openpdu") } func main() { CreateBoards() CreateOutlets() InitBoards() MQTTSetup() go MQTTRefreshLoop() go ups.UpsConnect() go displayLoop() syslog.Info("hostname: " + viper.GetString("system.hostname")) webui.StartServer() } // https://github.com/ColorlibHQ/AdminLTE/archive/v2.4.17.tar.gz /* TODO - config reset gpio - classi per board - classi per outlet - fai funzionare toggle - scan i2c - impostazioni log */