switchweb

command module
v0.0.0-...-17b7c79 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

README

switchweb - SwitchBot Client on local Web

UI screenshot

Environment variables

var description
SWITCHBOT_TOKEN Open Token for SwitchBot API (ref)
SWITCHBOT_CLIENT_SECRET Open Token for SwitchBot API (ref)
ADDR Address and port to listen (Default: ':8080')
CUSTOM_DEVICES Definition of custom buttons
Format of CUSTOM_DEVICES
[
  {
    "id": "01-202301234567-01234567",
    "buttons": [
      {
        "name": "NAME1",
        "icon": "wind"
      },
      {
        "name": "NAME2",
        "icon": "power-off"
      }
    ]
  }
]
key value
.[].id Device ID
.[].buttons[].name Registerd button name
.[].buttons[].icon Fontawesome icon name (find icons)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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