Skip to content

A golang library for communicating with Ecovacs Deebot robot vacuums

License

Notifications You must be signed in to change notification settings

skburgart/go-vacbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-vacbot

A golang library for communicating with Ecovacs Deebot robot vacuums.

Inspired by sucks from William Pietri.

Quick Start

First create a config file similar to vacbot.example.json.

package main

import (
	"flag"
	"time"

	vacbot "github.com/skburgart/go-vacbot"
)

func main() {
	vacbotConfigFile := flag.String("vacbotconfig", "vacbot.json", "json file containing vacbot configuration")
	flag.Parse()

	v := vacbot.NewFromConfigFile(*vacbotConfigFile)
	v.SpinLeft()
	time.Sleep(2 * time.Second)
	v.StopMoving()

	v.SpinRight()
	time.Sleep(2 * time.Second)
	v.StopMoving()

	v.Forward()
	time.Sleep(2 * time.Second)
	v.StopMoving()

	v.CleanAuto()
	time.Sleep(5 * time.Second)
	v.CleanStop()
}

About

A golang library for communicating with Ecovacs Deebot robot vacuums

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages