Compare commits

..

2 Commits
v1.0.0 ... main

Author SHA1 Message Date
02218dfa1a comment out kiosk handling for now 2025-08-31 20:53:47 -05:00
7036096118 make install tools 2024-10-01 21:40:27 -05:00
2 changed files with 12 additions and 9 deletions

View File

@ -10,6 +10,9 @@ init:
go mod download
go mod tidy
install-tools:
grep _ tools.go | awk -F'"' '{print $$2}' | xargs -tI % go install %
generate: init
go generate

View File

@ -9,7 +9,7 @@ import (
"os/signal"
"syscall"
"git.bloy.org/mike/hasshelper/kiosk"
// "git.bloy.org/mike/hasshelper/kiosk"
"git.bloy.org/mike/hasshelper/web"
_ "github.com/joho/godotenv/autoload"
"github.com/lmittmann/tint"
@ -54,7 +54,7 @@ func rootCmdRun(cmd *cobra.Command, args []string) {
}
}()
go web.Run(logger, exitchan, ctx)
go kiosk.Run(logger, exitchan, ctx)
// go kiosk.Run(logger, exitchan, ctx)
logger.Debug("Waiting for exit")
<-done
}
@ -105,13 +105,13 @@ func initConfig() {
"image_dir",
"version",
"webserver_port",
"mqtt_broker_url",
"mqtt_broker_user",
"mqtt_broker_password",
"mqtt_presence_topic",
"kiosk_cmd_shell",
"kiosk_cmd_screen_on",
"kiosk_cmd_screen_off",
// "mqtt_broker_url",
// "mqtt_broker_user",
// "mqtt_broker_password",
// "mqtt_presence_topic",
// "kiosk_cmd_shell",
// "kiosk_cmd_screen_on",
// "kiosk_cmd_screen_off",
}
for _, key := range expected_config {
if !viper.IsSet(key) {