From b58279176c3389548278374e966a47ba6789c50f Mon Sep 17 00:00:00 2001 From: Laurent Le Houerou Date: Wed, 27 May 2020 15:39:54 +0400 Subject: [PATCH] nettoyage --- cmd/main.go | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 cmd/main.go diff --git a/cmd/main.go b/cmd/main.go deleted file mode 100644 index 948284f..0000000 --- a/cmd/main.go +++ /dev/null @@ -1,36 +0,0 @@ -package main - -import ( - "context" - - "git.lehouerou.net/laurent/arlo-go" - log "github.com/sirupsen/logrus" -) - -func main() { - a := arlo.NewArlo() - err := a.Login(context.Background(), "hass@lehouerou.net", "TiPXMVLUeZfUg6RrmwzK") - if err != nil { - log.Errorf("login: %v", err) - return - } - - for _, device := range a.Cameras { - log.Infof("%s", device.DeviceName) - } - - for _, b := range a.Basestations { - _, err := b.GetModes() - if err != nil { - log.Error(err) - } - log.Info("ok") - err = b.DeleteMode("mode5") - if err != nil { - log.Error(err) - } - log.Info("ok") - } - select {} - -}