Skip to content

saar-win/switcher_webapi

 
 

Repository files navigation

Switcher Boiler Unofficial REST API
microbadger-docker-version microbadger-docker-license shields-io-docker-pulls

gh-python-status gh-docker-status
read-the-docs codecov dependabot-status

REST API web server using aioswitcher for integrating with the Switcher Water Heater.
Please check out the documentation.

Docker

docker run -d -p 8000:8000 \
-e CONF_DEVICE_IP_ADDR=192.168.100.157 \
-e CONF_PHONE_ID=1234 \
-e CONF_DEVICE_ID=ab1c2d \
-e CONF_DEVICE_PASSWORD=12345678 \
--name switcher_webapi tomerfi/switcher_webapi:latest"

You can also add another optional environment variable:

-e CONF_THROTTLE=5.0

for setting the throttle time between consecutive requests, this is optional and the default value is 5.0.

Docker Compose

Here's an example of running the container using docker-compose setting the environment variables in a designated file.

# docker-compose.yml
version: "3.7"

services:
    switcher_api:
    image: tomerfi/switcher_webapi:latest
    container_name: "switcher_webapi"
    env_file:
        - .env_vars
    ports:
        - 8000:8000
    restart: unless-stopped
# .env_vars
CONF_DEVICE_IP_ADDR=192.168.100.157
CONF_PHONE_ID=1234
CONF_DEVICE_ID=ab1c2d
CONF_DEVICE_PASSWORD=12345678
CONF_THROTTLE=5.0

Contributing

The contributing guidlines are here

Code of Conduct

The code of conduct is here

About

Switcher Boiler Unofficial Docker-based WebAPI

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 90.6%
  • Makefile 5.7%
  • Dockerfile 2.0%
  • Shell 1.7%