Skip to content

at-wat/switchweb

Repository files navigation

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)

About

SwitchBot Client on local Web

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors