Giter Site home page Giter Site logo

go-vacbot's Introduction

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()
}

go-vacbot's People

Contributors

securingsincity avatar skburgart avatar snipem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

go-vacbot's Issues

starttls handshake: x509: certificate has expired or is not yet valid

Recently start seeing TLS verification issues when using vacbot:

2019/01/27 19:45:45 login successful
2019/01/27 19:45:45 get auth code successful
2019/01/27 19:45:46 get user access token successful
2019/01/27 19:45:46 starttls handshake: x509: certificate has expired or is not yet valid

Ecovacs certificates appear to be valid.

* Server certificate:
*  subject: CN=*.ecouser.net
*  start date: Dec 24 00:00:00 2018 GMT
*  expire date: Feb 22 12:00:00 2020 GMT
*  subjectAltName: host "msg-ww.ecouser.net" matched cert's "*.ecouser.net"
*  issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=RapidSSL RSA CA 2018
*  SSL certificate verify ok.
* Server certificate:
*  subject: C=CN; L=\U82CF\U5DDE; O=\U82CF\U5DDE\U79D1\U6C83\U65AF\U673A\U5668\U4EBA\U7535\U5B50\U5546\U52A1\U6709\U9650\U516C\U53F8; OU=\U4FE1\U606F\U6280\U672F\U4E2D\U5FC3; CN=*.ecovacs.com
*  start date: Feb  6 00:00:00 2018 GMT
*  expire date: Dec 26 12:00:00 2020 GMT
*  subjectAltName: host "eco-us-api.ecovacs.com" matched cert's "*.ecovacs.com"
*  issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=GeoTrust RSA CA 2018
*  SSL certificate verify ok.

What could have changed? Is their another endpoint that vacbot connects to?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.