Git Product home page Git Product logo

gridwatcher's Introduction

This program makes heavy use of https://github.com/thorsten-gehrig/alexa-remote-control, found here under ~/github, with some minor modifications.

alexa-remote-control requires sudo install jq for command-line parsing of JSON output.

Getting and saving required cookies was the hardest part. Lots of good advice at https://www.codementor.io/@slavko/controlling-amazon-echo-dot-with-shell-a-bit-of-fun-mz6xxz92n.

Note that in order to get the cookies required by the above onto my RPi, I had to:

sudo apt install vnc4server
sudo apt install lxsession
sudo apt install firefox-esr

After installation of the above, I needed to do a sudo raspi-config to enable VNC through the Interfaces menu item.

I also needed to sudo apt install realvnc-vnc-viewer onto my Ubuntu laptop, as remmina did not work.

Logged in to the Pi desktop via vncviewer 192.168.1.6 from the laptop ('pi'/'B3st')

Once I got to a desktop on the Pi, I started Firefox and installed the Export Cookies add-on, after which I went to https:\\alexa.amazon.com and exported cookies in the amazon.com domain (clear all cookies first). This file was eventually saved to the ~/.alexa-remote-control/.alexa.cookies file for Capcha-free logins through cURL and wget.

The format of the creds.json file for authenticating to the Tesla gateway is:

{"username":"customer","password":"my_password", "email":"my_email","force_sm_off":false}

Note that "username" above is literally "customer" (as opposed to "installer")

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.