go-powerwall

command module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 1 Imported by: 0

README

go-powerwall

Overview

go-powerwall is a utility designed to act as an api proxy to the tesla energy device protobuf private api.

Starting Powerwall Proxy Server

Usage
go-powerwall proxy [flags]
Flags
  • -l, --listen string: Specifies the host:port to listen on. Default is :8080.
  • -o, --ondemand: Disables periodic refresh.
  • -r, --refresh uint32: Specifies the periodic refresh frequency in seconds. Default is 30.
Global Flags

Global flags can be set using environment variables starting with POWERWALL_, e.g POWERWALL_PASSWORD

  • -e, --endpoint string: Specifies the Powerwall endpoint URL. Default is https://192.168.91.1/.
  • -p, --password string: Specifies the Powerwall installer password.

Examples

  • Start the Powerwall proxy server on the default port:

    go-powerwall proxy -p ABCDEFGHIJ
    
  • Start the Powerwall proxy server on a custom port and disable periodic refresh:

    go-powerwall proxy :8888 -o -p ABCDEFGHIJ
    

Notes

  • Ensure that you have proper connectivity to the tedapi system when starting the proxy

Documentation

Overview

Copyright © 2024 Yuri Gelfand

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis
cmd
internal
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL